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
58586362
Commit
58586362
authored
Mar 12, 2024
by
liguangyu06
Browse files
优化
parent
60f6d0bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_handle/商品金额调整验证_下单_e.air/商品金额调整验证_下单_e.py
View file @
58586362
...
...
@@ -62,8 +62,14 @@ if result["success"]:
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
elif
result
[
"code"
]
==
"30461"
:
# 获取预期结果//商品证照校验错误
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict_30461"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
else
:
# 获取预期结果
# 获取预期结果
//商品无效
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDictInvalid"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
...
...
data/cmdc_order_handle/data
View file @
58586362
...
...
@@ -217,6 +217,7 @@ checkDict23: {"companyId":"%s"}
#商品无效断言结果
checkDictInvalid: {"success":false,"code":"ERROR","message":"当前订单无有效商品","data":null,"freshToken":null}
checkDict_30461: {"success":false,"code":"30461","message":"商品证照校验错误"}
# 打印出存在问题的需求单信息
checkDict_code: {"demandCode":"%s"}
\ No newline at end of file
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