Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
liguangyu06
Browse files
Options
Download
Email Patches
Plain Diff
用例优化
parent
06e7f3fe
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
air_case/cmdc_order_list/推送功能验证_jde配货.air/推送功能验证_jde配货.py
+12
-5
air_case/cmdc_order_list/推送功能验证_jde配货.air/推送功能验证_jde配货.py
data/cmdc_order_list/data
+1
-0
data/cmdc_order_list/data
with
13 additions
and
5 deletions
+13
-5
air_case/cmdc_order_list/推送功能验证_jde配货.air/推送功能验证_jde配货.py
+
12
-
5
View file @
790bcd79
...
...
@@ -52,9 +52,16 @@ api_time = float(result.elapsed.total_seconds())
result
=
json
.
loads
(
result
.
content
)
result
[
"api_time"
]
=
api_time
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict29"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
if
result
[
"success"
]:
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict29"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
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
)
This diff is collapsed.
Click to expand it.
data/cmdc_order_list/data
+
1
-
0
View file @
790bcd79
...
...
@@ -232,6 +232,7 @@ checkDict28: {"distributionJdeDsCode":"%s"}
"payload29": {"distributionJdeDsId":"%s"}
#预期结果
checkDict29: {"success":true,"code":"200","message":"OK","data":"fail"}
checkDict29_1: {"success":false,"code":"ERROR","message":"该订单禁止手动推送!请联系管理员"}
#测试场景三十:必填字段校验_jde配货推送
"url30": "/order/distributiondsJdeDs/push"
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets