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
0c4906fc
Commit
0c4906fc
authored
Jan 15, 2024
by
liguangyu06
Browse files
增加响应时间获取
parent
1af763ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_demand/商城草稿订单创建-查询-删除.air/商城草稿订单创建-查询-删除.py
View file @
0c4906fc
...
@@ -52,6 +52,8 @@ url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3")
...
@@ -52,6 +52,8 @@ url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3")
request_body3
=
commonFuc
().
get_business_data
(
module
,
"payload3"
,
demand_parent_id
)
request_body3
=
commonFuc
().
get_business_data
(
module
,
"payload3"
,
demand_parent_id
)
# 发送请求
# 发送请求
result3
=
requests
.
get
(
url3
,
params
=
request_body3
,
headers
=
headers1
)
result3
=
requests
.
get
(
url3
,
params
=
request_body3
,
headers
=
headers1
)
# 获取接口响应时间
api_time
=
result3
.
elapsed
.
total_seconds
()
result3
=
json
.
loads
(
result3
.
content
)
result3
=
json
.
loads
(
result3
.
content
)
# 获取预期结果
# 获取预期结果
check_dict3
=
commonFuc
().
get_business_data
(
module
,
"checkDict3"
)
check_dict3
=
commonFuc
().
get_business_data
(
module
,
"checkDict3"
)
...
...
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