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
d49c9d29
Commit
d49c9d29
authored
Nov 10, 2023
by
liguangyu06
Browse files
用例优化
parent
1a33728e
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_special_fresenius_group/新老编码组停用.air/新老编码组停用.py
View file @
d49c9d29
...
@@ -24,7 +24,7 @@ headers = commonFuc().get_business_data(module, "json_headers2", cmdc_access_tok
...
@@ -24,7 +24,7 @@ headers = commonFuc().get_business_data(module, "json_headers2", cmdc_access_tok
# 获取新老商品关系编码列表
# 获取新老商品关系编码列表
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url_product_code"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url_product_code"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload_product_code"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload_product_code
_1
"
)
# 发送请求
# 发送请求
result
=
requests
.
post
(
url
,
headers
=
headers
,
json
=
request_body
)
result
=
requests
.
post
(
url
,
headers
=
headers
,
json
=
request_body
)
result
=
json
.
loads
(
result
.
content
)
result
=
json
.
loads
(
result
.
content
)
...
...
data/cmdc_special_fresenius_group/data
View file @
d49c9d29
...
@@ -178,7 +178,7 @@ checkDict20: {"success":true,"code":"200","message":"OK"}
...
@@ -178,7 +178,7 @@ checkDict20: {"success":true,"code":"200","message":"OK"}
#新老商品关系编码维护列表接口地址和请求报文
#新老商品关系编码维护列表接口地址和请求报文
"url_product_code": "/order/public/queryProductCodeMaintainPage"
"url_product_code": "/order/public/queryProductCodeMaintainPage"
"payload_product_code": {"groupCode":"","groupName":"","productCode":"","productInfo":"","materialCode":"","manufacturerList":[],"productLineName":"","description":"","manufacturerGroupCode":"","manufacturerGroupName":"","customerCode":"","customerName":"","manufacturerUserNo":"","manufacturerUserDesc":"","documentNo":"","groupType":2,"status":null,"pageStart":1,"pageSize":8}
"payload_product_code": {"groupCode":"","groupName":"","productCode":"","productInfo":"","materialCode":"","manufacturerList":[],"productLineName":"","description":"","manufacturerGroupCode":"","manufacturerGroupName":"","customerCode":"","customerName":"","manufacturerUserNo":"","manufacturerUserDesc":"","documentNo":"","groupType":2,"status":null,"pageStart":1,"pageSize":8}
"payload_product_code_1": {"groupCode":"","groupName":"","productCode":"","productInfo":"","materialCode":"","manufacturerList":[],"productLineName":"","description":"","manufacturerGroupCode":"","manufacturerGroupName":"","customerCode":"","customerName":"","manufacturerUserNo":"","manufacturerUserDesc":"","documentNo":"","groupType":2,"status":"1","pageStart":1,"pageSize":8}
#新老编码组停用接口
#新老编码组停用接口
"url20": "/order/public/enableOrDisableProductMaintain"
"url20": "/order/public/enableOrDisableProductMaintain"
#预期结果
#预期结果
...
...
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