From e2e38f040265a18cbf8773c3e1afc6d84984cca4 Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Tue, 16 Jan 2024 21:08:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E6=97=B6=E9=97=B4=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\201\345\212\237\350\203\275\351\252\214\350\257\201.py" | 3 ++- ...201_\350\256\242\345\215\225\344\277\256\346\224\271.py" | 1 + ...\216\345\212\237\350\203\275\351\252\214\350\257\201.py" | 3 ++- ...\200\346\261\202\345\215\225\345\210\227\350\241\250.py" | 1 + ...\200\346\261\202\345\215\225\345\210\227\350\241\250.py" | 1 + ...\200\346\261\202\345\215\225\345\210\227\350\241\250.py" | 1 + ...\267\344\277\241\346\201\257\351\252\214\350\257\201.py" | 1 + ...\270\344\277\241\346\201\257\351\252\214\350\257\201.py" | 2 +- ...26\345\205\254\345\217\270id\351\252\214\350\257\201.py" | 2 +- ...\250\346\216\245\345\217\243\351\252\214\350\257\201.py" | 3 ++- ...\271\346\216\245\345\217\243\351\252\214\350\257\201.py" | 2 +- ...\202\350\257\246\346\203\205\351\252\214\350\257\201.py" | 1 + ...\230\345\210\227\350\241\250\351\252\214\350\257\201.py" | 2 +- ...201_\346\224\257\344\273\230\351\241\265\351\235\242.py" | 1 + ...214\350\257\201_\351\234\200\346\261\202\345\215\225.py" | 1 + ...\277\350\256\242\345\215\225\350\257\246\346\203\205.py" | 1 + ...\206\345\210\227\350\241\250\351\252\214\350\257\201.py" | 3 ++- ...\206\351\207\221\351\242\235\351\252\214\350\257\201.py" | 1 + ...\250\346\230\216\347\273\206\351\252\214\350\257\201.py" | 1 + ...\230\351\207\221\351\242\235\351\252\214\350\257\201.py" | 1 + ...201_\350\256\242\345\215\225\344\277\256\346\224\271.py" | 1 + ...\213\346\216\245\345\217\243\351\252\214\350\257\201.py" | 4 +++- ...\214\351\205\215\347\275\256\351\252\214\350\257\201.py" | 4 +++- ...206_\346\224\257\344\273\230\351\241\265\351\235\242.py" | 5 ++++- ...\225\345\210\227\350\241\250\351\252\214\350\257\201.py" | 5 ++++- ...\225\350\257\246\346\203\205\351\252\214\350\257\201.py" | 4 ++++ ...\225\344\277\241\346\201\257\351\252\214\350\257\201.py" | 4 +++- ...\225\350\257\246\346\203\205\351\252\214\350\257\201.py" | 5 ++++- ...\250\345\212\237\350\203\275\351\252\214\350\257\201.py" | 4 +++- ...\271\345\212\237\350\203\275\351\252\214\350\257\201.py" | 4 +++- ...\200\346\261\202\345\215\225\345\210\227\350\241\250.py" | 5 ++++- ...\226\346\216\245\345\217\243\351\252\214\350\257\201.py" | 4 +++- ...\210\345\212\237\350\203\275\351\252\214\350\257\201.py" | 5 ++++- ...\206\350\216\267\345\217\226\351\252\214\350\257\201.py" | 4 +++- ...\275\345\212\237\350\203\275\351\252\214\350\257\201.py" | 6 ++++-- ...\225\345\215\240\347\224\250\345\212\237\350\203\275.py" | 4 +++- ...\257\345\220\246\345\267\262\346\224\257\344\273\230.py" | 4 +++- ...\257\345\220\246\350\242\253\345\215\240\347\224\250.py" | 4 +++- 38 files changed, 83 insertions(+), 25 deletions(-) diff --git "a/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" index 57240769..bc12b520 100644 --- "a/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.air/\344\270\212\344\274\240\346\224\257\344\273\230\345\207\255\350\257\201\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -43,8 +43,9 @@ files = {"file": file} # 发送请求 result = requests.post(url, files=files, headers=headers) # 获取接口响应时间 -api_time = result.elapsed.total_seconds() +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict34") diff --git "a/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" "b/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" index 8a1becdb..a304a268 100644 --- "a/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" +++ "b/air_case/cmdc_demand_mall/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\345\225\206\345\223\201\344\270\213\346\236\266\346\213\246\346\210\252\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" @@ -49,6 +49,7 @@ result = json.loads(result.content) # print(result) # 获取message result = {"errMessage": result["data"][0]["errMessage"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict39") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" index 0d372ec0..e61ede20 100644 --- "a/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.air/\346\217\220\344\272\244\350\256\242\345\215\225\346\224\257\344\273\230\350\257\201\346\230\216\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -51,10 +51,11 @@ request_body = commonFuc().get_business_data(module, "payload35", file_aliyun) """ # 发送请求 -result = result = requests.post(url, json=request_body, headers=headers) +result = requests.post(url, json=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict35") diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" index a373fb9f..423ef1f6 100644 --- "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\345\256\241\346\240\270\345\217\230\345\212\250\350\256\242\345\215\225_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -40,6 +40,7 @@ result = json.loads(result.content) # print(result) # 获取查询结果中是否审核变动标识 result = {"changeSign": result["data"]["list"][0]["changeSign"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict3") diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" index 6f03c2d3..c7d61d51 100644 --- "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\347\212\266\346\200\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -40,6 +40,7 @@ result = json.loads(result.content) # print(result) # 获取查询结果中是否审核变动标识 result = {"orderStatus": result["data"]["list"][0]["orderStatus"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict4") diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" index 5bf0dcde..2bcaef31 100644 --- "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\346\237\245\350\257\242\346\235\241\344\273\266\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -71,6 +71,7 @@ result = json.loads(result.content) # print(result) # 获取查询结果中订单编号 result = {"orderNum": result["data"]["list"][0]["demandCode"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict2", order_num) diff --git "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" index bad5b6b7..c074dada 100644 --- "a/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\237\245\350\257\242\347\272\277\344\270\213\346\224\257\344\273\230\350\264\246\345\217\267\344\277\241\346\201\257\351\252\214\350\257\201.py" @@ -41,6 +41,7 @@ result = json.loads(result.content) # 获取账号数量 result = {"total": result["data"]["total"]} +result["api_time"] = api_time # 数据库操作 mysql_handle = mySql() # 获取conf.ini文件中配置的数据库信息 diff --git "a/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" index 0b0f6f97..ed768524 100644 --- "a/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.air/\346\240\271\346\215\256\347\224\250\346\210\267\346\237\245\350\257\242\345\205\254\345\217\270\344\277\241\346\201\257\351\252\214\350\257\201.py" @@ -37,7 +37,7 @@ result = requests.get(url, params=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) -print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict30") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" index 6180c92d..c446cc0e 100644 --- "a/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.air/\346\240\271\346\215\256\351\234\200\346\261\202id\350\216\267\345\217\226\345\205\254\345\217\270id\351\252\214\350\257\201.py" @@ -51,7 +51,7 @@ result = requests.get(url, params=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) -print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict32") diff --git "a/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" index e50ab1ff..af34d7de 100644 --- "a/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.air/\346\250\241\347\263\212\346\237\245\350\257\242\347\224\237\344\272\247\345\216\202\345\256\266\345\210\227\350\241\250\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -38,10 +38,11 @@ result = requests.post(url, json=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) -# print(result) +result["api_time"] = api_time if result["data"]: # 获取查询结果中厂家信息 result = {"data": result["data"][0][0]} + result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict7", manufacturer) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" index 8d24dd8c..aa160a99 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\205\254\345\217\270\347\253\231\347\202\271\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -26,7 +26,7 @@ result = requests.get(url) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict5") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" index c6071f61..ef07e211 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\216\237\345\247\213\351\234\200\346\261\202\350\257\246\346\203\205\351\252\214\350\257\201.py" @@ -52,6 +52,7 @@ result = json.loads(result.content) # print(result) # 获取原始需求单中demandCode result = {"demandCode": result["data"]["demandSkuList"]["list"][0]["demandCode"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict10", demand_code) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" index 153a4362..796ab59d 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\345\256\241\346\240\270\344\272\272\345\221\230\345\210\227\350\241\250\351\252\214\350\257\201.py" @@ -49,7 +49,7 @@ result = requests.post(url, json=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict9") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" index 4180dac6..cf4046f2 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\346\224\257\344\273\230\344\277\241\346\201\257\351\252\214\350\257\201_\346\224\257\344\273\230\351\241\265\351\235\242.py" @@ -53,6 +53,7 @@ result = json.loads(result.content) print(result) # 获取需求单对应的客户折扣 result = {"customerCharge": result["data"]["customerCharge"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict28", customer_charge) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" index 5e0a501b..7c37c2a2 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.air/\350\216\267\345\217\226\347\253\231\347\202\271\344\277\241\346\201\257\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225.py" @@ -29,6 +29,7 @@ api_time = result.elapsed.total_seconds() result = json.loads(result.content) # 获取站点信息中公司id result = {"companyId": result["data"]["companyId"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict11") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" index 95adf73e..4cc3dbb1 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.air/\350\216\267\345\217\226\350\215\211\347\250\277\350\256\242\345\215\225\350\257\246\346\203\205.py" @@ -52,6 +52,7 @@ result = json.loads(result.content) # print(result) # 获取草稿订单详情中id result = {"id": result["data"]["id"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict38", version) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" index ebca32f2..14019cf5 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\345\210\227\350\241\250\351\252\214\350\257\201.py" @@ -51,10 +51,11 @@ result = requests.get(url, params=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) -print(result) +result["api_time"] = api_time if result["data"]: # 获取订单明细列表中demandCode result = {"demandCode": result["data"][0]["demandCode"]} + result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict16", demand_code) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" index 4051de99..141f49de 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\207\221\351\242\235\351\252\214\350\257\201.py" @@ -54,6 +54,7 @@ result = json.loads(result.content) print(result) # 获取订单明细列表中isChange result = {"isChange": result["data"]["isChange"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict18") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" index 1b6466c5..35441027 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\345\217\230\345\212\250\346\230\216\347\273\206\351\252\214\350\257\201.py" @@ -65,6 +65,7 @@ result = json.loads(result.content) # print(result) # 获取明细demandChangeId result = {"demandChangeId": result["data"]["list"][0]["demandChangeId"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict17", demand_change_id) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" index 30d60f08..18495a78 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\224\257\344\273\230\351\207\221\351\242\235\351\252\214\350\257\201.py" @@ -53,6 +53,7 @@ result = json.loads(result.content) # print(result) # 获取需求单对应的客户折扣 result = {"customerCharge": result["data"]["customerCharge"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict28", customer_charge) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" index 9e9d613d..9f2f2f68 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.air/\350\216\267\345\217\226\350\256\242\345\215\225\346\225\260\346\215\256\351\252\214\350\257\201_\350\256\242\345\215\225\344\277\256\346\224\271.py" @@ -51,6 +51,7 @@ result = requests.get(url, params=request_body, headers=headers) # 获取接口响应时间 api_time = result.elapsed.total_seconds() result = json.loads(result.content) +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict20") diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" index 0364fa09..d6805ab9 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.air/\350\216\267\345\217\226\350\256\242\345\215\225\347\261\273\345\236\213\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -23,8 +23,10 @@ request_body = commonFuc().get_business_data(module, "payload6") # 发送请求 result = requests.get(url, params=request_body) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict6") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" index a5a8ab86..87fd295f 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\224\200\345\224\256\350\256\242\345\215\225\345\220\210\345\220\214\351\205\215\347\275\256\351\252\214\350\257\201.py" @@ -48,8 +48,10 @@ request_body = commonFuc().get_business_data(module, "payload15", demand_id) # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict15") diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" index 6f157403..607150da 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\210\227\350\241\250\346\230\216\347\273\206_\346\224\257\344\273\230\351\241\265\351\235\242.py" @@ -46,10 +46,13 @@ request_body = commonFuc().get_business_data(module, "payload27", demand_parent_ # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) + # 获取需求单详情中demandParentCode result = {"demandParentCode": result["data"]["list"][0]["demandParentCode"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict27", demand_parent_code) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" index 07becf65..aa929004 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\345\210\227\350\241\250\351\252\214\350\257\201.py" @@ -49,10 +49,13 @@ request_body = commonFuc().get_business_data(module, "payload13", demand_code, d # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time if result["data"]["list"]: result = {"demandSubCode": result["data"]["list"][0]["demandSubCode"]} + result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict13", demand_parent_code) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" index 716aaa8c..4bf9bfd1 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\345\255\220\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" @@ -48,10 +48,14 @@ request_body = commonFuc().get_business_data(module, "payload14", demand_id) # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) +result["api_time"] = api_time print(result) if result["data"]: result = {"demandId": result["data"][0]["demandId"]} + result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict14", demand_id) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" index 1b9c51d4..7ac54018 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\346\223\215\344\275\234\350\256\260\345\275\225\344\277\241\346\201\257\351\252\214\350\257\201.py" @@ -49,8 +49,10 @@ request_body = commonFuc().get_business_data(module, "payload12", demand_code, d # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict12") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" index ef0b693a..eab08e0b 100644 --- "a/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.air/\350\216\267\345\217\226\351\234\200\346\261\202\345\215\225\350\257\246\346\203\205\351\252\214\350\257\201.py" @@ -47,10 +47,13 @@ request_body = commonFuc().get_business_data(module, "payload8", demand_parent_c # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) + # 获取需求单详情中订单编号 result = {"demandCode": result["data"]["demandHead"]["demandCode"]} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict8", demand_code) diff --git "a/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" index 5b75e259..a616f8f8 100644 --- "a/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\247\243\351\231\244\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -48,8 +48,10 @@ request_body = commonFuc().get_business_data(module, "payload24", demand_id) # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict24") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" index c12523de..6a655c0d 100644 --- "a/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.air/\350\256\242\345\215\225\344\277\256\346\224\271\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -33,8 +33,10 @@ request_body = commonFuc().get_business_data(module, "payload25") # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict25") diff --git "a/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" index bffd36d8..0d78988e 100644 --- "a/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" +++ "b/air_case/cmdc_demand_mall/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.air/\350\256\242\345\215\225\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250.py" @@ -49,7 +49,9 @@ request_body = commonFuc().get_business_data(module, "payload21", order_num) # 发送请求 result = requests.post(url, json=request_body, headers=headers) -# result = json.loads(result.content) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) + # print(result) # 获取文件 @@ -63,6 +65,7 @@ with open(file_path, 'wb') as f: # 获取文件中订单编号 excel = HandleExcel(file_path, "Sheet1") result = {"demandCode": excel.read_data()[0].get("订单编号")} +result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict21", order_num) diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" index a9af44b7..409bb1f5 100644 --- "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\210\227\350\241\250\350\216\267\345\217\226\346\216\245\345\217\243\351\252\214\350\257\201.py" @@ -33,8 +33,10 @@ request_body = commonFuc().get_business_data(module, "payload1") # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict1") # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" index a757421a..33502f20 100644 --- "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\217\226\346\266\210\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -39,12 +39,15 @@ request_body = commonFuc().get_business_data(module, "payload23") # 发送请求 result = requests.post(url, json=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -print(result) +result["api_time"] = api_time if result["success"]: # 查询需求单状态 sql = "SELECT t.orderStatus FROM `cmdc-order`.tc_demand t WHERE t.demandId = 40213" result = {"orderStatus": mysql_handle.selectSql(host, port, user, pwd, "cmdc-order", sql)[0][0]} + result["api_time"] = api_time # print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict23") diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" index 539b9079..e4961733 100644 --- "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\345\225\206\345\223\201\350\277\224\345\210\251\346\230\216\347\273\206\350\216\267\345\217\226\351\252\214\350\257\201.py" @@ -47,10 +47,12 @@ request_body = commonFuc().get_business_data(module, "payload26", demand_code) # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) # 获取返利明细中demandCode result = {"demandCode": result["data"][0]["demandCode"]} +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict26", demand_code) # print(check_dict) diff --git "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" index 88812b77..c1d7099d 100644 --- "a/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" +++ "b/air_case/cmdc_demand_mall/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.air/\351\234\200\346\261\202\345\215\225\351\224\200\345\224\256\345\220\210\345\220\214\344\270\213\350\275\275\345\212\237\350\203\275\351\252\214\350\257\201.py" @@ -52,8 +52,9 @@ request_body = commonFuc().get_business_data(module, "payload22", demand_id) # 发送请求 result = requests.post(url, json=request_body, headers=headers) -# result = json.loads(result.content) -# print(result) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) + # 获取文件 BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) @@ -67,6 +68,7 @@ with open(file_path, 'wb') as f: excel = HandleExcel(file_path, "Sheet1") result = {"demandCode": excel.read_data()[0].get("医疗器械产品销售合同 ")[-17:]} print(excel.read_data()[0].get("医疗器械产品销售合同 ")) +result["api_time"] = api_time print(result) # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict22", demand_code) diff --git "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" index 7b8aee52..5f72fdbd 100644 --- "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" +++ "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.air/\351\252\214\350\257\201\350\256\242\345\215\225\345\215\240\347\224\250\345\212\237\350\203\275.py" @@ -48,8 +48,10 @@ request_body = commonFuc().get_business_data(module, "payload19", demand_id) # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict19") diff --git "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" index 467fcf36..4486c710 100644 --- "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" +++ "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\345\267\262\346\224\257\344\273\230.py" @@ -47,8 +47,10 @@ request_body = commonFuc().get_business_data(module, "payload36", demand_parent_ # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time if proof_sign: # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict36") diff --git "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" index e9b49d23..4b26ba93 100644 --- "a/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" +++ "b/air_case/cmdc_demand_mall/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.air/\351\252\214\350\257\201\350\256\242\345\215\225\346\230\257\345\220\246\350\242\253\345\215\240\347\224\250.py" @@ -48,8 +48,10 @@ request_body = commonFuc().get_business_data(module, "payload37", demand_id) # 发送请求 result = requests.get(url, params=request_body, headers=headers) +# 获取接口响应时间 +api_time = float(result.elapsed.total_seconds()) result = json.loads(result.content) -# print(result) +result["api_time"] = api_time # 获取预期结果 check_dict = commonFuc().get_business_data(module, "checkDict37") # print(check_dict) -- GitLab