Commit e22ed5ec authored by liguangyu06's avatar liguangyu06
Browse files

增加响应时间

parent 25128fa4
......@@ -48,6 +48,8 @@ request_body = commonFuc().get_business_data(module, "payload20", demand_id)
# 发送请求
result = requests.get(url, params=request_body, headers=headers)
# 获取接口响应时间
api_time = result.elapsed.total_seconds()
result = json.loads(result.content)
# print(result)
# 获取预期结果
......
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