Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
泰斯特Test
testcase-automaker
提交
062a74c6
T
testcase-automaker
项目概览
泰斯特Test
/
testcase-automaker
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
testcase-automaker
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
062a74c6
编写于
10月 13, 2019
作者:
泰斯特Test
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Lets go
上级
bb6b5319
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
9 deletion
+6
-9
README.md
README.md
+4
-4
setup.py
setup.py
+1
-1
testcase_automaker/interface/http_params_generator.py
testcase_automaker/interface/http_params_generator.py
+0
-3
testcase_automaker/interface/http_tester.py
testcase_automaker/interface/http_tester.py
+1
-1
未找到文件。
README.md
浏览文件 @
062a74c6
...
...
@@ -2,13 +2,13 @@
testcase-automaker can be used to create interface testcase with different params combo base on pairwise strategy.
i
nstallation
## I
nstallation
pip install testcase-automaker
b
est practice
## B
est 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
setup.py
浏览文件 @
062a74c6
...
...
@@ -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"
,
...
...
autotest_tools
/interface/http_params_generator.py
→
testcase_automaker
/interface/http_params_generator.py
浏览文件 @
062a74c6
...
...
@@ -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
# 生成参数
...
...
autotest_tools
/interface/http_tester.py
→
testcase_automaker
/interface/http_tester.py
浏览文件 @
062a74c6
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录