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
790bcd79
Commit
790bcd79
authored
Jun 19, 2024
by
liguangyu06
Browse files
用例优化
parent
06e7f3fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_list/推送功能验证_jde配货.air/推送功能验证_jde配货.py
View file @
790bcd79
...
@@ -52,9 +52,16 @@ api_time = float(result.elapsed.total_seconds())
...
@@ -52,9 +52,16 @@ api_time = float(result.elapsed.total_seconds())
result
=
json
.
loads
(
result
.
content
)
result
=
json
.
loads
(
result
.
content
)
result
[
"api_time"
]
=
api_time
result
[
"api_time"
]
=
api_time
# 获取预期结果
if
result
[
"success"
]:
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict29"
)
# 获取预期结果
# print(check_dict)
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict29"
)
# 断言实际结果中是否包含预期结果的内容
# print(check_dict)
commonFuc
().
check_result
(
check_dict
,
result
)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
else
:
# 获取预期结果 //该订单禁止手动推送!请联系管理员
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict29_1"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
data/cmdc_order_list/data
View file @
790bcd79
...
@@ -232,6 +232,7 @@ checkDict28: {"distributionJdeDsCode":"%s"}
...
@@ -232,6 +232,7 @@ checkDict28: {"distributionJdeDsCode":"%s"}
"payload29": {"distributionJdeDsId":"%s"}
"payload29": {"distributionJdeDsId":"%s"}
#预期结果
#预期结果
checkDict29: {"success":true,"code":"200","message":"OK","data":"fail"}
checkDict29: {"success":true,"code":"200","message":"OK","data":"fail"}
checkDict29_1: {"success":false,"code":"ERROR","message":"该订单禁止手动推送!请联系管理员"}
#测试场景三十:必填字段校验_jde配货推送
#测试场景三十:必填字段校验_jde配货推送
"url30": "/order/distributiondsJdeDs/push"
"url30": "/order/distributiondsJdeDs/push"
...
...
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