Commit 0c4906fc authored by liguangyu06's avatar liguangyu06
Browse files

增加响应时间获取

parent 1af763ee
...@@ -52,6 +52,8 @@ url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3") ...@@ -52,6 +52,8 @@ url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url3")
request_body3 = commonFuc().get_business_data(module, "payload3", demand_parent_id) request_body3 = commonFuc().get_business_data(module, "payload3", demand_parent_id)
# 发送请求 # 发送请求
result3 = requests.get(url3, params=request_body3, headers=headers1) result3 = requests.get(url3, params=request_body3, headers=headers1)
# 获取接口响应时间
api_time = result3.elapsed.total_seconds()
result3 = json.loads(result3.content) result3 = json.loads(result3.content)
# 获取预期结果 # 获取预期结果
check_dict3 = commonFuc().get_business_data(module, "checkDict3") check_dict3 = commonFuc().get_business_data(module, "checkDict3")
......
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