diff --git a/README.md b/README.md index 77e27e7b3ffbb858b9ec536f2baf2891780b8cc2..36a91741074c5952bf4cc971cc84e4a89efc4f62 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 9120cbd1b7db7a9217eb045b49e0129538c4421a..e211376ac7d5627a03a0861d967225b5054ebb98 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 1e4d32dd0d16334f87b97bb04cb45bb95b79c4b0..fdc6724064b06d2c29246fa4fdd0fba4174cad54 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 872e51217d984c4f788e55b517a4b46e8c24ab86..1beee14b34fd500ca5210abb7427186ec35a1e3b 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