From 669469ea20468bf901b1a0fd9331a9cffd9b898f Mon Sep 17 00:00:00 2001 From: xiao-hesheng <xhs89@sina.com> Date: Thu, 28 Dec 2023 09:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E9=80=81=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...25\345\205\245\346\237\245\350\257\242.py" | 4 +- ...27\350\241\250\346\237\245\350\257\242.py" | 2 +- ...25\345\205\245\346\237\245\350\257\242.py" | 53 +++++++++++++++++++ ...25\345\205\245\346\237\245\350\257\242.py" | 53 +++++++++++++++++++ ...23\345\215\260\346\237\245\350\257\242.py" | 53 +++++++++++++++++++ ...21\347\245\250\346\237\245\350\257\242.py" | 53 +++++++++++++++++++ ...73\351\231\242\344\277\241\346\201\257.py" | 11 ++-- report/summary.html | 6 +-- 8 files changed, 226 insertions(+), 9 deletions(-) create mode 100644 "air_case/a6_mdm3_si/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" create mode 100644 "air_case/a6_mdm3_si/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" create mode 100644 "air_case/a6_mdm3_si/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.air/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.py" create mode 100644 "air_case/a6_mdm3_si/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.air/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.py" diff --git "a/air_case/a6_mdm3_si/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" "b/air_case/a6_mdm3_si/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" index d7fec883..34ea19ee 100644 --- "a/air_case/a6_mdm3_si/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" +++ "b/air_case/a6_mdm3_si/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a2\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" @@ -24,8 +24,8 @@ def select1(): # from a1缁撶畻鍗曟煡璇鍒楄〃鏁版嵁鏌ヨ import select1 # id1 = select1() """ - 鍦烘櫙:a1缁撶畻鍗曟煡璇�-缁撶畻鍗曡鎯� - 鐢ㄤ緥鍚嶇О锛歛1缁撶畻鍗曟煡璇�-缁撶畻鍗曡鎯� + 鍦烘櫙:a2缁撶畻绠$悊-鍙戠エ褰曞叆鏌ヨ + 鐢ㄤ緥鍚嶇О锛歛2缁撶畻绠$悊-鍙戠エ褰曞叆鏌ヨ 杈撳叆锛氭棤 杈撳嚭锛�"rtn_msg": 0 """ diff --git "a/air_case/a6_mdm3_si/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.air/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.py" "b/air_case/a6_mdm3_si/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.air/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.py" index 5226ecb0..bd577685 100644 --- "a/air_case/a6_mdm3_si/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.air/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.py" +++ "b/air_case/a6_mdm3_si/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.air/a3\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\347\241\256\350\256\244\345\210\227\350\241\250\346\237\245\350\257\242.py" @@ -36,7 +36,7 @@ def select1(): """ # module = "a6_mdm3_si" #a1璁㈠崟閰嶉€佸垪琛ㄦ暟鎹煡璇鍏ㄩ儴 - url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listVoPage_url") + url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listVoPage_url1") # 鑾峰彇璇锋眰澶翠俊鎭� headers = commonFuc().get_business_data(module, "json_headers2", commonFuc().get_business_data(module, "json_contentType"), token, diff --git "a/air_case/a6_mdm3_si/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" "b/air_case/a6_mdm3_si/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" new file mode 100644 index 00000000..8fc04b81 --- /dev/null +++ "b/air_case/a6_mdm3_si/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_3\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" @@ -0,0 +1,53 @@ +# -*- encoding=utf8 -*- +from common.fileUtls import FileUtils + +__author__ = "xiaohesheng" + +""" +case_tag:api,mdm-web,a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ,id2293,id2292-9,sit,on +涓绘暟鎹钩鍙�:a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ +""" + +from common.common_func import commonFuc +from airtest.core.api import using +import sys +module = "a6_mdm3_si" +def select1(): + pro_path = commonFuc().get_pro_path() + sys.path.append(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + using(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + from a1浼佷笟鐧诲綍 import e_login + token, projectCode, uxid, corpId, e_name = e_login() + # # 鑾峰彇鍙戠エ淇℃伅 + # sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # using(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # from a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ import select1 + # id1 = select1() + """ + 鍦烘櫙:a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + 鐢ㄤ緥鍚嶇О锛歛4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + 杈撳叆锛氭棤 + 杈撳嚭锛�"rtn_msg": 0 + """ + # module = "a6_mdm3_si" + #a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listDetailByPage_url") + # 鑾峰彇璇锋眰澶翠俊鎭� + headers = commonFuc().get_business_data(module, "json_headers2", + commonFuc().get_business_data(module, "json_contentType"), token, + projectCode) + + request_body = commonFuc().get_business_data(module, "payload4") + + # 鍙戦€佽姹� + result = commonFuc().http_post(url, request_body, headers) + print('result', result) + #鏂█ + code=commonFuc().analysis_json('code',result) + data=commonFuc().analysis_json('data',result) + if code==0: + commonFuc().check_text_exist(code,result) + else: + commonFuc().check_text_exist('error', result) +select1() + diff --git "a/air_case/a6_mdm3_si/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" "b/air_case/a6_mdm3_si/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" new file mode 100644 index 00000000..359056ad --- /dev/null +++ "b/air_case/a6_mdm3_si/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.air/a4_4\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\347\273\223\347\256\227\345\215\225\345\217\221\347\245\250\345\275\225\345\205\245\346\237\245\350\257\242.py" @@ -0,0 +1,53 @@ +# -*- encoding=utf8 -*- +from common.fileUtls import FileUtils + +__author__ = "xiaohesheng" + +""" +case_tag:api,mdm-web,a4_4缁撶畻绠$悊_缁撶畻鍗曞紑绁╛缁撶畻鍗曞彂绁ㄥ綍鍏ユ煡璇�,id2293,id2292-10,sit,on +涓绘暟鎹钩鍙�:a4_4缁撶畻绠$悊_缁撶畻鍗曞紑绁╛缁撶畻鍗曞彂绁ㄥ綍鍏ユ煡璇� +""" + +from common.common_func import commonFuc +from airtest.core.api import using +import sys +module = "a6_mdm3_si" +def select1(): + pro_path = commonFuc().get_pro_path() + sys.path.append(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + using(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + from a1浼佷笟鐧诲綍 import e_login + token, projectCode, uxid, corpId, e_name = e_login() + # # 鑾峰彇鍙戠エ淇℃伅 + # sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # using(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # from a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ import select1 + # id1 = select1() + """ + 鍦烘櫙:a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + 鐢ㄤ緥鍚嶇О锛歛4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + 杈撳叆锛氭棤 + 杈撳嚭锛�"rtn_msg": 0 + """ + # module = "a6_mdm3_si" + #a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listDetailByPageDetailJnsy_url") + # 鑾峰彇璇锋眰澶翠俊鎭� + headers = commonFuc().get_business_data(module, "json_headers2", + commonFuc().get_business_data(module, "json_contentType"), token, + projectCode) + + request_body = commonFuc().get_business_data(module, "payload4_1") + + # 鍙戦€佽姹� + result = commonFuc().http_post(url, request_body, headers) + print('result', result) + #鏂█ + code=commonFuc().analysis_json('code',result) + data=commonFuc().analysis_json('data',result) + if code==0: + commonFuc().check_text_exist(code,result) + else: + commonFuc().check_text_exist('error', result) +select1() + diff --git "a/air_case/a6_mdm3_si/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.air/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.py" "b/air_case/a6_mdm3_si/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.air/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.py" new file mode 100644 index 00000000..f44cea3e --- /dev/null +++ "b/air_case/a6_mdm3_si/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.air/a4_5\347\273\223\347\256\227\347\256\241\347\220\206_\347\273\223\347\256\227\345\215\225\345\274\200\347\245\250_\345\217\221\347\245\250\346\230\216\347\273\206\346\211\223\345\215\260\346\237\245\350\257\242.py" @@ -0,0 +1,53 @@ +# -*- encoding=utf8 -*- +from common.fileUtls import FileUtils + +__author__ = "xiaohesheng" + +""" +case_tag:api,mdm-web,a4_5缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ鏄庣粏鎵撳嵃鏌ヨ,id2293,id2292-11,sit,on +涓绘暟鎹钩鍙�:a4_5缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ鏄庣粏鎵撳嵃鏌ヨ +""" + +from common.common_func import commonFuc +from airtest.core.api import using +import sys +module = "a6_mdm3_si" +def select1(): + pro_path = commonFuc().get_pro_path() + sys.path.append(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + using(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + from a1浼佷笟鐧诲綍 import e_login + token, projectCode, uxid, corpId, e_name = e_login() + # # 鑾峰彇鍙戠エ淇℃伅 + # sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # using(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # from a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ import select1 + # id1 = select1() + """ + 鍦烘櫙:a4_5缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ鏄庣粏鎵撳嵃鏌ヨ + 鐢ㄤ緥鍚嶇О锛歛4_5缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ鏄庣粏鎵撳嵃鏌ヨ + 杈撳叆锛氭棤 + 杈撳嚭锛�"rtn_msg": 0 + """ + # module = "a6_mdm3_si" + #a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "invoiceDetailList_url") + # 鑾峰彇璇锋眰澶翠俊鎭� + headers = commonFuc().get_business_data(module, "json_headers2", + commonFuc().get_business_data(module, "json_contentType"), token, + projectCode) + + request_body = commonFuc().get_business_data(module, "payload4_2") + + # 鍙戦€佽姹� + result = commonFuc().http_post(url, request_body, headers) + print('result', result) + #鏂█ + code=commonFuc().analysis_json('code',result) + data=commonFuc().analysis_json('data',result) + if code==0: + commonFuc().check_text_exist(code,result) + else: + commonFuc().check_text_exist('error', result) +select1() + diff --git "a/air_case/a6_mdm3_si/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.air/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.py" "b/air_case/a6_mdm3_si/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.air/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.py" new file mode 100644 index 00000000..f8a6181f --- /dev/null +++ "b/air_case/a6_mdm3_si/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.air/a4_6\347\273\223\347\256\227\347\256\241\347\220\206_\345\217\221\347\245\250\346\237\245\350\257\242.py" @@ -0,0 +1,53 @@ +# -*- encoding=utf8 -*- +from common.fileUtls import FileUtils + +__author__ = "xiaohesheng" + +""" +case_tag:api,mdm-web,a4_6缁撶畻绠$悊_鍙戠エ鏌ヨ,id2293,id2292-12,sit,on +涓绘暟鎹钩鍙�:a4_6缁撶畻绠$悊_鍙戠エ鏌ヨ +""" + +from common.common_func import commonFuc +from airtest.core.api import using +import sys +module = "a6_mdm3_si" +def select1(): + pro_path = commonFuc().get_pro_path() + sys.path.append(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + using(pro_path + r'\\air_case\\a6_mdm3_dp\\a1浼佷笟鐧诲綍.air') + from a1浼佷笟鐧诲綍 import e_login + token, projectCode, uxid, corpId, e_name = e_login() + # # 鑾峰彇鍙戠エ淇℃伅 + # sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # using(pro_path + r'\\air_case\\a6_mdm3_si\\a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ.air') + # from a3缁撶畻绠$悊_鍙戠エ纭鍒楄〃鏌ヨ import select1 + # id1 = select1() + """ + 鍦烘櫙:a4_6缁撶畻绠$悊_鍙戠エ鏌ヨ + 鐢ㄤ緥鍚嶇О锛歛4_6缁撶畻绠$悊_鍙戠エ鏌ヨ + 杈撳叆锛氭棤 + 杈撳嚭锛�"rtn_msg": 0 + """ + # module = "a6_mdm3_si" + #a4_3缁撶畻绠$悊_缁撶畻鍗曞紑绁╛鍙戠エ褰曞叆鏌ヨ + url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "listVoPage_url1") + # 鑾峰彇璇锋眰澶翠俊鎭� + headers = commonFuc().get_business_data(module, "json_headers2", + commonFuc().get_business_data(module, "json_contentType"), token, + projectCode) + + request_body = commonFuc().get_business_data(module, "payload4_3") + + # 鍙戦€佽姹� + result = commonFuc().http_post(url, request_body, headers) + print('result', result) + #鏂█ + code=commonFuc().analysis_json('code',result) + data=commonFuc().analysis_json('data',result) + if code==0: + commonFuc().check_text_exist(code,result) + else: + commonFuc().check_text_exist('error', result) +select1() + diff --git "a/air_case/b2_herp3_bs/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.air/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.py" "b/air_case/b2_herp3_bs/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.air/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.py" index 83140a87..fca7224d 100644 --- "a/air_case/b2_herp3_bs/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.air/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.py" +++ "b/air_case/b2_herp3_bs/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.air/a2_\347\274\226\350\276\221\345\214\273\351\231\242\344\277\241\346\201\257.py" @@ -38,9 +38,14 @@ def h_edit_info(): # 鍙戦€佽姹� result = commonFuc().http_get(url, headers, params="") - # print('result', result) + print('result', result) #鏂█ - checkDict=commonFuc().get_business_data(module,'checkDict1') - commonFuc().check_result(checkDict,result) + code=commonFuc().analysis_json('code',result) + if code==0: + commonFuc().check_text_exist(code,result) + else: + commonFuc().check_text_exist('error', result) + # checkDict=commonFuc().get_business_data(module,'checkDict1') + # commonFuc().check_result(checkDict,result) h_edit_info() \ No newline at end of file diff --git a/report/summary.html b/report/summary.html index c1523451..fd201ea5 100644 --- a/report/summary.html +++ b/report/summary.html @@ -56,7 +56,7 @@ <tr width="600"> <td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td> - <td class='details-col-elapsed'>0鍒�5绉�</td> + <td class='details-col-elapsed'>0鍒�0绉�</td> <td class="details-col-elapsed">100.0%</td> </tr> </table> @@ -72,9 +72,9 @@ </tr> <tr width="600"> - <td class="details-col-elapsed"><a href='../log/a2缁撶畻鍗曟煡璇�-缁撶畻鍗曡鎯�/log.html' target='_blank'>a2缁撶畻鍗曟煡璇�-缁撶畻鍗曡鎯�</a></td> + <td class="details-col-elapsed"><a href='../log/a2_缂栬緫鍖婚櫌淇℃伅/log.html' target='_blank'>a2_缂栬緫鍖婚櫌淇℃伅</a></td> <td class="success">鎴愬姛</td> - <td class="details-col-elapsed">5.232</td> + <td class="details-col-elapsed">0.696</td> <td class="details-col-elapsed">xiaohesheng</td> </tr> -- GitLab