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
75f98ac8
Commit
75f98ac8
authored
Mar 06, 2024
by
liguangyu06
Browse files
优化
parent
4d2bde0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_special_fresenius_group/获取特殊套包详情.air/获取特殊套包详情.py
View file @
75f98ac8
...
...
@@ -44,11 +44,11 @@ api_time = float(result.elapsed.total_seconds())
result
=
json
.
loads
(
result
.
content
)
# print(result)
result
=
{
"productCode"
:
result
[
"data"
][
0
][
"productCode"
]}
#
result = {"productCode": result["data"][0]["productCode"]}
result
[
"api_time"
]
=
api_time
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict38"
)
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict38
_1
"
)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
data/cmdc_special_fresenius_group/data
View file @
75f98ac8
...
...
@@ -252,6 +252,7 @@ checkDict31: {"groupCode": "%s"}
"payload38": {"productCode":"10145853","companyCode":"00102"}
#预期结果
checkDict38: {"productCode": "10145853"}
checkDict38_1: {"success":true,"code":"200","message":"OK"}
#切换站点信息
"url_website": "/user/mall/switchWebsite"
...
...
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