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
f4921951
Commit
f4921951
authored
Jun 07, 2024
by
liguangyu06
Browse files
用例优化
parent
1c7325bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_33st/a_商品包装信息新增验证.air/a_商品包装信息新增验证.py
View file @
f4921951
...
...
@@ -34,10 +34,8 @@ request_body = commonFuc().get_business_data(module, "payload5")
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
# 判断商品信息是否已维护
result
=
json
.
loads
(
result
.
content
)
if
result
[
"success"
]:
if
result
.
json
()[
"success"
]:
result
=
json
.
loads
(
result
.
content
)
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
...
...
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