Commit 4ac48e75 authored by liguangyu06's avatar liguangyu06
Browse files

代码优化

parent 6cf83b65
...@@ -28,7 +28,7 @@ request_body = commonFuc().get_business_data(module, "payload_demand_list") ...@@ -28,7 +28,7 @@ request_body = commonFuc().get_business_data(module, "payload_demand_list")
# 发送请求 # 发送请求
result = requests.post(url, json=request_body, headers=headers) result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content) result = json.loads(result.content)
print(result) # print(result)
# 生成随机数字,用于后续获取需求单 # 生成随机数字,用于后续获取需求单
random_demand = random.randint(0, len(result["data"]["list"]) - 1) random_demand = random.randint(0, len(result["data"]["list"]) - 1)
...@@ -42,7 +42,7 @@ request_body = commonFuc().get_business_data(module, "payload18", demand_id) ...@@ -42,7 +42,7 @@ request_body = commonFuc().get_business_data(module, "payload18", demand_id)
""" """
场景: 验证再来一单功能获取原订单信息接口连通性 场景: 验证再来一单功能获取原订单信息接口连通性
用例名称:获取原订单信息接口验证_再来一单 用例名称:获取原订单信息接口验证_再来一单
输出:{"success":true,"code":"200","message":"OK"} 输出:{"success":true,"code":"200","message":"ok"}
""" """
# 发送请求 # 发送请求
......
...@@ -167,7 +167,7 @@ checkDict17: {"success":true,"code":"200","message":"OK"} ...@@ -167,7 +167,7 @@ checkDict17: {"success":true,"code":"200","message":"OK"}
"url18": "/order/public/saveSameOrder" "url18": "/order/public/saveSameOrder"
"payload18": {"demandId":"%s"} "payload18": {"demandId":"%s"}
#预期结果 #预期结果
checkDict18: {"success":true,"code":"200","message":"OK"} checkDict18: {"success":true,"code":"200","message":"ok"}
......
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