Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
63c475d1
Commit
63c475d1
authored
Dec 19, 2023
by
liguangyu06
Browse files
用例优化
parent
643cdf6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_demand_mall/模糊查询生产厂家列表接口验证.air/模糊查询生产厂家列表接口验证.py
View file @
63c475d1
...
@@ -47,7 +47,7 @@ if result["data"]:
...
@@ -47,7 +47,7 @@ if result["data"]:
commonFuc
().
check_result
(
check_dict
,
result
)
commonFuc
().
check_result
(
check_dict
,
result
)
else
:
else
:
# 获取预期结果
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict7
"
,
manufacturer
)
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict7
_1"
)
# print(check_dict)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
commonFuc
().
check_result
(
check_dict
,
result
)
data/cmdc_demand_mall/data
View file @
63c475d1
...
@@ -67,6 +67,7 @@ checkDict6: {"success":true,"code":"200","message":"OK"}
...
@@ -67,6 +67,7 @@ checkDict6: {"success":true,"code":"200","message":"OK"}
"payload7": {"sign":1,"inputValue":"%s"}
"payload7": {"sign":1,"inputValue":"%s"}
#预期结果
#预期结果
checkDict7: {"data":"%s"}
checkDict7: {"data":"%s"}
checkDict7_1: {"success":true,"code":"200","message":"OK","data":[]}
#测试场景八:获取需求单详情验证
#测试场景八:获取需求单详情验证
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment