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
ab0227b6
Commit
ab0227b6
authored
Jan 15, 2024
by
liguangyu06
Browse files
增加响应时间获取
parent
a0887366
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_demand_creation/需求单创建.air/需求单创建.py
View file @
ab0227b6
...
...
@@ -33,6 +33,8 @@ request_body = commonFuc().get_business_data(module, "payload1")
"""
# 发送请求
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
result
.
elapsed
.
total_seconds
()
result
=
json
.
loads
(
result
.
content
)
# print(result)
# 获取预期结果
...
...
air_case/cmdc_demand_creation/需求草稿订单创建.air/需求草稿订单创建.py
View file @
ab0227b6
...
...
@@ -33,6 +33,8 @@ request_body = commonFuc().get_business_data(module, "payload2")
# 发送请求
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
result
.
elapsed
.
total_seconds
()
result
=
json
.
loads
(
result
.
content
)
# print(result)
# 获取预期结果
...
...
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