Commit bf5fa380 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent ba4026dc
...@@ -21,8 +21,8 @@ cmdc_access_token = CmdcDoLogin(username, password).get_token() ...@@ -21,8 +21,8 @@ cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token) headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
# 第二步发货同步 # 第二步发货同步
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url30") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url31")
request_body = commonFuc().get_business_data(module, "payload30") request_body = commonFuc().get_business_data(module, "payload31")
# print(request_body) # print(request_body)
""" """
...@@ -41,7 +41,7 @@ result = json.loads(result.content) ...@@ -41,7 +41,7 @@ result = json.loads(result.content)
result["api_time"] = api_time result["api_time"] = api_time
# 获取预期结果 # 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict30") check_dict = commonFuc().get_business_data(module, "checkDict31")
# print(check_dict) # print(check_dict)
# 断言实际结果中是否包含预期结果的内容 # 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result) commonFuc().check_result(check_dict, result)
...@@ -216,10 +216,10 @@ checkDict30: {"demandCode":"%s"} ...@@ -216,10 +216,10 @@ checkDict30: {"demandCode":"%s"}
#测试场景三十一:发货同步_发货单管理 #测试场景三十一:发货同步_发货单管理
"url30": "/order/public/getFlowSync" "url31": "/order/public/getFlowSync"
"payload30": {"companyCode":"00111"} "payload31": {"companyCode":"00111"}
#预期结果 #预期结果
checkDict30: {"success":true,"code":"200","message":null,"data":null,"freshToken":null} checkDict31: {"success":true,"code":"200","message":null,"data":null,"freshToken":null}
......
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