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
3829d3f4
Commit
3829d3f4
authored
Oct 07, 2023
by
liguangyu06
Browse files
用例优化
parent
ddbf2f85
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_buyercar_list/通过Excel复制添加商品-添加成功.air/通过Excel复制添加商品-添加成功.py
View file @
3829d3f4
...
@@ -61,7 +61,7 @@ request_body = commonFuc().get_business_data(module, "payload23", product_code,
...
@@ -61,7 +61,7 @@ request_body = commonFuc().get_business_data(module, "payload23", product_code,
"""
"""
场景:通过Excel复制添加商品,选择正确的站点以及对应的产品信息,添加成功
场景:通过Excel复制添加商品,选择正确的站点以及对应的产品信息,添加成功
用例名称:通过Excel复制添加商品,选择正确的站点以及对应的产品信息,添加成功
用例名称:通过Excel复制添加商品,选择正确的站点以及对应的产品信息,添加成功
输出:
{
"success":false,"code":"200","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"
}
输出:"success":false,"code":"200
1
","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"
"""
"""
# 发送请求
# 发送请求
result
=
requests
.
post
(
url_batch
,
json
=
request_body
,
headers
=
headers
)
result
=
requests
.
post
(
url_batch
,
json
=
request_body
,
headers
=
headers
)
...
...
data/cmdc_buyercar_list/data
View file @
3829d3f4
...
@@ -224,4 +224,4 @@ checkDict24: {"success":false,"code":"999","message":"找不到该公司的首
...
@@ -224,4 +224,4 @@ checkDict24: {"success":false,"code":"999","message":"找不到该公司的首
#测试场景四:添加商品成功
#测试场景四:添加商品成功
"payload23": {"currentCompanyId":"","buyerCartList":[{"productCode":"%s","materialCode":"","quantity":"1"}],"excelCopySort":0,"companyId":"%s"}
"payload23": {"currentCompanyId":"","buyerCartList":[{"productCode":"%s","materialCode":"","quantity":"1"}],"excelCopySort":0,"companyId":"%s"}
#预期结果
#预期结果
checkDict23: {"success":false,"code":"200","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"}
checkDict23: {"success":false,"code":"200
1
","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"}
data/cmdc_userinfo_query/data
View file @
3829d3f4
...
@@ -7,7 +7,7 @@ json_headers: {
...
@@ -7,7 +7,7 @@ json_headers: {
"Sourcetype": "mall"
"Sourcetype": "mall"
}
}
#获取
站点
信息接口地址
#获取
用户
信息接口地址
"url1": "/user/mall/queryUserInfo"
"url1": "/user/mall/queryUserInfo"
"payload1": {}
"payload1": {}
#预期结果
#预期结果
...
...
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