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
f927cd63
Commit
f927cd63
authored
Jun 19, 2024
by
liguangyu06
Browse files
用例优化
parent
8d9338d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_product/商品限购明细导出验证.air/商品限购明细导出验证.py
View file @
f927cd63
...
...
@@ -27,7 +27,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url41"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload41"
)
# 发送请求
result
=
requests
.
ge
t
(
url
,
params
=
request_body
,
headers
=
headers
)
result
=
requests
.
pos
t
(
url
,
json
=
request_body
,
headers
=
headers
)
result
=
json
.
loads
(
result
.
content
)
# 生成随机数
...
...
data/cmdc_product/data
View file @
f927cd63
...
...
@@ -325,7 +325,7 @@ checkDict44: {"success":true,"code":"200","message":"OK"}
#测试场景四十五:商品限购明细导出验证
"url45": "/product/productLimitBuy/excel"
"payload45": {"productName":null,"productCode":"%s","customerCode":null,"customerName":null,"specifications":null,"filialeCode":null,"productLineName":null,"manufacturer":null,"materialCode":null,"startTime":null,"pageNum":1,"pageSize":8,"total":1}
"payload45": {"productName":null,"productCode":"%s","customerCode":null,"customerName":null,"specifications":null,"filialeCode":null,"productLineName":null,"manufacturer":null,"materialCode":null,"startTime":null,"pageNum":1,"pageSize":8,"total":1
,"limitType":"0"
}
#预期结果
checkDict45: {"productCode":"%s"}
...
...
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