From bb6b5319d5fbd538b65280dc6d095550a0d57b02 Mon Sep 17 00:00:00 2001 From: shaoyuyishiwo <523314409@qq.com> Date: Sun, 13 Oct 2019 09:08:22 +0100 Subject: [PATCH] Lets go --- README.md | 7 +++---- Utils/amazingutils/randoms.py | 1 + .../interface/http_params_generator.py | 0 .../interface/http_tester.py | 2 +- setup.py | 21 +++++++++++++++++++ src/__init__.py | 0 6 files changed, 26 insertions(+), 5 deletions(-) rename {src/autotest_tools => autotest_tools}/interface/http_params_generator.py (100%) rename {src/autotest_tools => autotest_tools}/interface/http_tester.py (97%) create mode 100644 setup.py delete mode 100644 src/__init__.py diff --git a/README.md b/README.md index 45cc0b6..77e27e7 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ # testcase-automaker -测试用例自动生成器 testcase-automaker can be used to create interface testcase with different params combo base on pairwise strategy. installation - pip install allpairspy + pip install testcase-automaker best practice - from src.autotest_tools.interface.http_params_generator import http_params_generator + from testcase-automaker.autotest_tools.interface.http_params_generator import http_params_generator params_structure = { 'name': { @@ -86,4 +85,4 @@ which is a list that contains the params combo base on pairwise and the given pa Contact me -523314409@qq.com \ No newline at end of file +For information and suggestions you can contact me at 523314409@qq.com \ No newline at end of file diff --git a/Utils/amazingutils/randoms.py b/Utils/amazingutils/randoms.py index bfb3de9..6378756 100644 --- a/Utils/amazingutils/randoms.py +++ b/Utils/amazingutils/randoms.py @@ -2,6 +2,7 @@ import string import random + def get_random_phone_num(): num_start = ['134', '135', '136', '137', '138', '139', '150', '151', '152', '158', '159', '157', '182', '187', '188', '147', '130', '131', '132', '155', '156', '185', '186', '133', '153', '180', '189'] diff --git a/src/autotest_tools/interface/http_params_generator.py b/autotest_tools/interface/http_params_generator.py similarity index 100% rename from src/autotest_tools/interface/http_params_generator.py rename to autotest_tools/interface/http_params_generator.py diff --git a/src/autotest_tools/interface/http_tester.py b/autotest_tools/interface/http_tester.py similarity index 97% rename from src/autotest_tools/interface/http_tester.py rename to autotest_tools/interface/http_tester.py index bebf3e3..872e512 100644 --- a/src/autotest_tools/interface/http_tester.py +++ b/autotest_tools/interface/http_tester.py @@ -1,6 +1,6 @@ import sys sys.path.append("../..") -from src.autotest_tools.interface.http_params_generator import http_params_generator +from autotest_tools.interface.http_params_generator import http_params_generator from Utils import httptools from ptest.plogger import preporter import requests diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9120cbd --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +import setuptools + +with open("README.md", "r", encoding='utf-8') as fh: + long_description = fh.read() + +setuptools.setup( + name="testcase-automaker", + version="1.0.0", + author="Yuyi Shao", + author_email="523314409@qq.com", + description="testcase-automake base on pairwise", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/amazingTest/testcase-automaker", + packages=setuptools.find_packages(), + classifiers=( + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", + "Operating System :: OS Independent", + ), +) \ No newline at end of file diff --git a/src/__init__.py b/src/__init__.py deleted file mode 100644 index e69de29..0000000 -- GitLab