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
33b857d2
Commit
33b857d2
authored
Dec 28, 2023
by
liguangyu06
Browse files
优化
parent
d44042e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_fresenius_group/套包更新验证.air/套包更新验证.py
View file @
33b857d2
...
...
@@ -42,7 +42,13 @@ request_body = result["data"]["list"][0]
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
result
=
json
.
loads
(
result
.
content
)
# print(result)
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict17"
)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
if
result
[
"success"
]:
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict17"
)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
else
:
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict17_1"
)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
\ No newline at end of file
data/cmdc_fresenius_group/data
View file @
33b857d2
...
...
@@ -136,6 +136,7 @@ checkDict16_1: {"success":true,"code":"200","message":"OK","data":true}
#预期结果
checkDict17: {"success":true,"code":"200","message":"OK","data":true,"freshToken":null}
checkDict17_1: {"success":true,"code":"200","message":"OK","data":true,"freshToken":null}
#测试场景十八:套包批量新增
...
...
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