Commit 33b857d2 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent d44042e2
......@@ -42,7 +42,13 @@ request_body = result["data"]["list"][0]
result = requests.post(url, json=request_body, headers=headers)
result = json.loads(result.content)
# print(result)
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict17")
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
if result["success"]:
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict17")
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
else:
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict17_1")
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
\ No newline at end of file
......@@ -136,6 +136,7 @@ checkDict16_1: {"success":true,"code":"200","message":"OK","data":true}
#预期结果
checkDict17: {"success":true,"code":"200","message":"OK","data":true,"freshToken":null}
checkDict17_1: {"success":true,"code":"200","message":"OK","data":true,"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