From 062a74c6221262cfc4e37f700a4a6de588c5025a Mon Sep 17 00:00:00 2001 From: shaoyuyishiwo <523314409@qq.com> Date: Sun, 13 Oct 2019 09:25:05 +0100 Subject: [PATCH] Lets go --- README.md | 8 ++++---- setup.py | 2 +- .../interface/http_params_generator.py | 3 --- .../interface/http_tester.py | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) rename {autotest_tools => testcase_automaker}/interface/http_params_generator.py (97%) rename {autotest_tools => testcase_automaker}/interface/http_tester.py (97%) diff --git a/README.md b/README.md index 77e27e7..36a9174 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ testcase-automaker can be used to create interface testcase with different params combo base on pairwise strategy. -installation +## Installation pip install testcase-automaker -best practice +## Best practice - from testcase-automaker.autotest_tools.interface.http_params_generator import http_params_generator + from testcase_automaker.interface.http_params_generator import http_params_generator params_structure = { 'name': { @@ -83,6 +83,6 @@ run the script then u may get output like this: which is a list that contains the params combo base on pairwise and the given params structure -Contact me +## Contact me For information and suggestions you can contact me at 523314409@qq.com \ No newline at end of file diff --git a/setup.py b/setup.py index 9120cbd..e211376 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r", encoding='utf-8') as fh: setuptools.setup( name="testcase-automaker", - version="1.0.0", + version="1.0.3", author="Yuyi Shao", author_email="523314409@qq.com", description="testcase-automake base on pairwise", diff --git a/autotest_tools/interface/http_params_generator.py b/testcase_automaker/interface/http_params_generator.py similarity index 97% rename from autotest_tools/interface/http_params_generator.py rename to testcase_automaker/interface/http_params_generator.py index 1e4d32d..fdc6724 100644 --- a/autotest_tools/interface/http_params_generator.py +++ b/testcase_automaker/interface/http_params_generator.py @@ -64,9 +64,6 @@ class http_params_generator(object): prepared_params_list_false = http_params_generator.get_value_dic(raw_params_list_false) params_combo_list.append(prepared_params_list_true) params_combo_list.append(prepared_params_list_false) - # params_combo_set = [el.replace("'", "\"") for el in set(map(str, params_combo_list))] - # print(params_combo_set) - # params_combo_set = list(map(json.loads, params_combo_set)) self.generated_params_list = params_combo_list # 生成参数 diff --git a/autotest_tools/interface/http_tester.py b/testcase_automaker/interface/http_tester.py similarity index 97% rename from autotest_tools/interface/http_tester.py rename to testcase_automaker/interface/http_tester.py index 872e512..1beee14 100644 --- a/autotest_tools/interface/http_tester.py +++ b/testcase_automaker/interface/http_tester.py @@ -1,6 +1,6 @@ import sys sys.path.append("../..") -from autotest_tools.interface.http_params_generator import http_params_generator +from testcase_automaker.interface.http_params_generator import http_params_generator from Utils import httptools from ptest.plogger import preporter import requests -- GitLab