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
52510de6
Commit
52510de6
authored
Apr 08, 2024
by
liguangyu06
Browse files
优化
parent
290171d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_32st/登录接口新增雅培配置字段验证.air/登录接口新增雅培配置字段验证.py
View file @
52510de6
...
...
@@ -56,12 +56,15 @@ result = requests.post(cmdc_url, params=request_body)
# 获取接口响应时间
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
#
将接口响应时间添加至result
#
获取登录接口返回内容
result
=
json
.
loads
(
result
.
content
)
result
=
result
[
"data"
]
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
# 新增雅培配置字段
check_list
=
[
"exceedSign"
,
"examineSign"
,
"materialSign"
,
"purchaseSign"
]
# 断言实际结果中是否包含预期结果的内容
# commonFuc().check_result(cmdc_access_token, result)
commonFuc
().
check_variable_exist
(
check_list
,
result
[
"data"
]
)
commonFuc
().
check_variable_exist
(
check_list
,
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