提交 062a74c6 编写于 作者: 泰斯特Test's avatar 泰斯特Test

Lets go

上级 bb6b5319
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
testcase-automaker can be used to create interface testcase with different params combo base on pairwise strategy. testcase-automaker can be used to create interface testcase with different params combo base on pairwise strategy.
installation ## Installation
pip install testcase-automaker 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 = { params_structure = {
'name': { 'name': {
...@@ -83,6 +83,6 @@ run the script then u may get output like this: ...@@ -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 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 For information and suggestions you can contact me at 523314409@qq.com
\ No newline at end of file
...@@ -5,7 +5,7 @@ with open("README.md", "r", encoding='utf-8') as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
setuptools.setup( setuptools.setup(
name="testcase-automaker", name="testcase-automaker",
version="1.0.0", version="1.0.3",
author="Yuyi Shao", author="Yuyi Shao",
author_email="523314409@qq.com", author_email="523314409@qq.com",
description="testcase-automake base on pairwise", description="testcase-automake base on pairwise",
......
...@@ -64,9 +64,6 @@ class http_params_generator(object): ...@@ -64,9 +64,6 @@ class http_params_generator(object):
prepared_params_list_false = http_params_generator.get_value_dic(raw_params_list_false) 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_true)
params_combo_list.append(prepared_params_list_false) 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 self.generated_params_list = params_combo_list
# 生成参数 # 生成参数
......
import sys import sys
sys.path.append("../..") 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 Utils import httptools
from ptest.plogger import preporter from ptest.plogger import preporter
import requests import requests
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册