From 1af763ee28d382ba8011c9ebc554c296a30789fd Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Mon, 15 Jan 2024 14:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=93=8D=E5=BA=94=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...56\241\345\256\241\346\240\270\346\213\222\347\273\235.py" | 2 ++ ...5\225-\344\272\214\345\256\241\351\200\232\350\277\207.py" | 2 ++ ...5\225-\345\256\241\346\240\270\346\213\222\347\273\235.py" | 4 +++- ...7\267\345\217\226\346\266\210-\345\256\241\346\240\270.py" | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.py" "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.py" index 5babec26..5152602c 100644 --- "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.py" +++ "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\345\256\241\346\240\270\346\213\222\347\273\235.py" @@ -65,6 +65,8 @@ url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url82" request_body3 = commonFuc().get_business_data(module, "payload82", demand_id, demand_code) # 发送请求 result3 = requests.post(url3, json=request_body3, headers=headers) +# 获取接口响应时间 +api_time = result3.elapsed.total_seconds() result3 = json.loads(result3.content) # print(result3) # 获取预期结果 diff --git "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.py" "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.py" index b5dc476f..cb412e5c 100644 --- "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.py" +++ "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.air/\345\277\253\351\200\237\344\270\213\345\215\225-\344\272\214\345\256\241\351\200\232\350\277\207.py" @@ -65,6 +65,8 @@ url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url81" request_body3 = commonFuc().get_business_data(module, "payload81", demand_id, demand_code) # 发送请求 result3 = requests.post(url3, json=request_body3, headers=headers) +# 获取接口响应时间 +api_time = result3.elapsed.total_seconds() result3 = json.loads(result3.content) # print(result3) # 获取预期结果 diff --git "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.py" "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.py" index c6ffdee8..e1182022 100644 --- "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.py" +++ "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.air/\345\277\253\351\200\237\344\270\213\345\215\225-\345\256\241\346\240\270\346\213\222\347\273\235.py" @@ -59,11 +59,13 @@ commonFuc().check_result(check_dict2, result2) demand_id = result2["data"]["list"][0]["demandId"] # print(demand_id) -# 步骤五对新创建的需求单订单进行删除操作 +# 步骤五对新创建的需求单订单进行审核拒绝操作 url3 = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url6") request_body3 = commonFuc().get_business_data(module, "payload6", demand_id) # 发送请求 result3 = requests.post(url3, json=request_body3, headers=headers) +# 获取接口响应时间 +api_time = result3.elapsed.total_seconds() result3 = json.loads(result3.content) # print(result3) # 获取预期结果 diff --git "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.air/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.py" "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.air/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.py" index 09206e9c..1ef277b5 100644 --- "a/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.air/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.py" +++ "b/air_case/cmdc_demand/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.air/\345\277\253\351\200\237\344\270\213\345\215\225-\347\224\263\350\257\267\345\217\226\346\266\210-\345\256\241\346\240\270.py" @@ -76,6 +76,8 @@ request_body5 = commonFuc().get_business_data(module, "payload84", demand_id) # 发送请求 result5 = requests.post(url5, json=request_body5, headers=headers) +# 获取接口响应时间 +api_time = result5.elapsed.total_seconds() result5 = json.loads(result5.content) # print(result5) if result5["code"] == "200": -- GitLab