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
4ac48e75
Commit
4ac48e75
authored
Dec 06, 2023
by
liguangyu06
Browse files
代码优化
parent
6cf83b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_order_handle/获取原订单信息接口验证_再来一单.air/获取原订单信息接口验证_再来一单.py
View file @
4ac48e75
...
...
@@ -28,7 +28,7 @@ request_body = commonFuc().get_business_data(module, "payload_demand_list")
# 发送请求
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
result
=
json
.
loads
(
result
.
content
)
print
(
result
)
#
print(result)
# 生成随机数字,用于后续获取需求单
random_demand
=
random
.
randint
(
0
,
len
(
result
[
"data"
][
"list"
])
-
1
)
...
...
@@ -42,7 +42,7 @@ request_body = commonFuc().get_business_data(module, "payload18", demand_id)
"""
场景: 验证再来一单功能获取原订单信息接口连通性
用例名称:获取原订单信息接口验证_再来一单
输出:{"success":true,"code":"200","message":"
OK
"}
输出:{"success":true,"code":"200","message":"
ok
"}
"""
# 发送请求
...
...
data/cmdc_order_handle/data
View file @
4ac48e75
...
...
@@ -167,7 +167,7 @@ checkDict17: {"success":true,"code":"200","message":"OK"}
"url18": "/order/public/saveSameOrder"
"payload18": {"demandId":"%s"}
#预期结果
checkDict18: {"success":true,"code":"200","message":"
OK
"}
checkDict18: {"success":true,"code":"200","message":"
ok
"}
...
...
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