Commit f927cd63 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent 8d9338d4
......@@ -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.get(url, params=request_body, headers=headers)
result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content)
# 生成随机数
......
......@@ -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"}
......
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