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
cc995f33
Commit
cc995f33
authored
May 13, 2024
by
liguangyu06
Browse files
优化
parent
544e07de
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_hospital/获取医院账单详情.air/获取医院账单详情.py
View file @
cc995f33
...
...
@@ -51,12 +51,15 @@ api_time = float(result.elapsed.total_seconds())
# 获取上报植入信息
result
=
json
.
loads
(
result
.
content
)
result
=
{
"soCode"
:
result
[
"data"
][
"soCode"
]}
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict2"
,
soCode
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
# 判断医院账单信息
if
result
[
"data"
]:
result
=
{
"soCode"
:
result
[
"data"
][
"soCode"
]}
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict2"
,
soCode
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
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