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
f26cf6f4
Commit
f26cf6f4
authored
Jan 15, 2024
by
liguangyu06
Browse files
增加响应时间获取
parent
14393cb9
Changes
4
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_demand_fail/审核不存在的需求单.air/审核不存在的需求单.py
View file @
f26cf6f4
...
...
@@ -37,6 +37,8 @@ request_body = commonFuc().get_business_data(module, "payload3", demand_id)
# 发送请求
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_fail/审核其他状态的需求单.air/审核其他状态的需求单.py
View file @
f26cf6f4
...
...
@@ -44,6 +44,8 @@ request_body1 = commonFuc().get_business_data(module, "payload4", demand_id)
# 发送请求
result1
=
requests
.
post
(
url1
,
json
=
request_body1
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
result
.
elapsed
.
total_seconds
()
result1
=
json
.
loads
(
result1
.
content
)
# print(result1)
# 获取预期结果
...
...
air_case/cmdc_demand_fail/重复审核.air/重复审核.py
View file @
f26cf6f4
...
...
@@ -49,6 +49,8 @@ request_body3 = commonFuc().get_business_data(module, "payload2", demand_id)
"""
# 发送请求
result3
=
requests
.
post
(
url3
,
json
=
request_body3
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
result3
.
elapsed
.
total_seconds
()
result3
=
json
.
loads
(
result3
.
content
)
# print(result3)
# 获取预期结果
...
...
air_case/cmdc_demand_fail/需求单审核不通过.air/需求单审核不通过.py
View file @
f26cf6f4
...
...
@@ -42,6 +42,8 @@ request_body1 = commonFuc().get_business_data(module, "payload1", demand_id)
# 发送请求
result1
=
requests
.
post
(
url1
,
json
=
request_body1
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
result1
.
elapsed
.
total_seconds
()
result1
=
json
.
loads
(
result1
.
content
)
# print(result1)
# 获取预期结果
...
...
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