Commit 3829d3f4 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent ddbf2f85
...@@ -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":"2001","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"
""" """
# 发送请求 # 发送请求
result = requests.post(url_batch, json=request_body, headers=headers) result = requests.post(url_batch, json=request_body, headers=headers)
......
...@@ -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":"2001","message":"商品添加完毕,本次添加商品【1】条,成功【1】条,失败【0】条。"}
...@@ -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": {}
#预期结果 #预期结果
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment