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
abab72b2
Commit
abab72b2
authored
Jan 31, 2024
by
liguangyu06
Browse files
优化
parent
ce1409e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_trade/查询物流信息_发票清单列表.air/查询物流信息_发票清单列表.py
View file @
abab72b2
...
@@ -51,10 +51,18 @@ result = requests.get(url, params=request_body, headers=headers)
...
@@ -51,10 +51,18 @@ result = requests.get(url, params=request_body, headers=headers)
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
result
=
json
.
loads
(
result
.
content
)
result
=
json
.
loads
(
result
.
content
)
# 将接口响应时间添加至result
result
[
"api_time"
]
=
api_time
result
[
"api_time"
]
=
api_time
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict37"
)
if
result
[
"data"
]:
# print(check_dict)
# 获取预期结果
# 断言实际结果中是否包含预期结果的内容
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict37_1"
)
commonFuc
().
check_result
(
check_dict
,
result
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
else
:
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict37"
)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
data/cmdc_trade/data
View file @
abab72b2
...
@@ -256,6 +256,7 @@ checkDict36: {"invoiceNo":"%s"}
...
@@ -256,6 +256,7 @@ checkDict36: {"invoiceNo":"%s"}
"url37": "/order/public/invoice/express"
"url37": "/order/public/invoice/express"
"payload37": {"invoiceNo":"%s"}
"payload37": {"invoiceNo":"%s"}
checkDict37: {"success":true,"code":"200","message":"未查询到数据","data":null,"freshToken":null}
checkDict37: {"success":true,"code":"200","message":"未查询到数据","data":null,"freshToken":null}
checkDict37_1: {"success":true,"code":"200","message":"操作成功"}
#测试场景三十八:获取库存上报列表
#测试场景三十八:获取库存上报列表
"url38": "/cms/public/ls/getCustomerStockReportList"
"url38": "/cms/public/ls/getCustomerStockReportList"
...
...
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