diff --git a/.DS_Store b/.DS_Store old mode 100644 new mode 100755 index 62971a7..a62dfd2 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.idea/.gitignore b/.idea/.gitignore old mode 100644 new mode 100755 diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml old mode 100644 new mode 100755 diff --git a/.idea/jiekou-python3.iml b/.idea/jiekou-python3.iml old mode 100644 new mode 100755 index 6a9a812..4f2c9af --- a/.idea/jiekou-python3.iml +++ b/.idea/jiekou-python3.iml @@ -2,7 +2,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml old mode 100644 new mode 100755 index 8656114..6649a8c --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml old mode 100644 new mode 100755 diff --git a/.idea/vcs.xml b/.idea/vcs.xml old mode 100644 new mode 100755 diff --git a/Interface/.DS_Store b/Interface/.DS_Store old mode 100644 new mode 100755 diff --git a/Interface/__init__.py b/Interface/__init__.py old mode 100644 new mode 100755 diff --git a/Interface/__pycache__/__init__.cpython-37.pyc b/Interface/__pycache__/__init__.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Interface/__pycache__/__init__.cpython-38.pyc b/Interface/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..3638e6d Binary files /dev/null and b/Interface/__pycache__/__init__.cpython-38.pyc differ diff --git a/Interface/__pycache__/testFengzhuang.cpython-37.pyc b/Interface/__pycache__/testFengzhuang.cpython-37.pyc old mode 100644 new mode 100755 index f75cd10..1d44738 Binary files a/Interface/__pycache__/testFengzhuang.cpython-37.pyc and b/Interface/__pycache__/testFengzhuang.cpython-37.pyc differ diff --git a/Interface/__pycache__/testFengzhuang.cpython-38.pyc b/Interface/__pycache__/testFengzhuang.cpython-38.pyc new file mode 100644 index 0000000..8ce505d Binary files /dev/null and b/Interface/__pycache__/testFengzhuang.cpython-38.pyc differ diff --git a/Interface/dubbo_feng.py b/Interface/dubbo_feng.py old mode 100644 new mode 100755 diff --git a/Interface/testFengzhuang.py b/Interface/testFengzhuang.py old mode 100644 new mode 100755 diff --git a/Interface/test_requests.py b/Interface/test_requests.py old mode 100644 new mode 100755 diff --git a/Public/.DS_Store b/Public/.DS_Store old mode 100644 new mode 100755 diff --git a/Public/BSTestRunner.py b/Public/BSTestRunner.py old mode 100644 new mode 100755 diff --git a/Public/Dingtalk.py b/Public/Dingtalk.py old mode 100644 new mode 100755 diff --git a/Public/__init__.py b/Public/__init__.py old mode 100644 new mode 100755 diff --git a/Public/__pycache__/BSTestRunner.cpython-37.pyc b/Public/__pycache__/BSTestRunner.cpython-37.pyc old mode 100644 new mode 100755 index d3a49b4..2fc0f43 Binary files a/Public/__pycache__/BSTestRunner.cpython-37.pyc and b/Public/__pycache__/BSTestRunner.cpython-37.pyc differ diff --git a/Public/__pycache__/BSTestRunner.cpython-38.pyc b/Public/__pycache__/BSTestRunner.cpython-38.pyc new file mode 100644 index 0000000..5f69e68 Binary files /dev/null and b/Public/__pycache__/BSTestRunner.cpython-38.pyc differ diff --git a/Public/__pycache__/Dingtalk.cpython-37.pyc b/Public/__pycache__/Dingtalk.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/Dingtalk.cpython-38.pyc b/Public/__pycache__/Dingtalk.cpython-38.pyc new file mode 100644 index 0000000..c335dba Binary files /dev/null and b/Public/__pycache__/Dingtalk.cpython-38.pyc differ diff --git a/Public/__pycache__/__init__.cpython-37.pyc b/Public/__pycache__/__init__.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/__init__.cpython-38.pyc b/Public/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..56277aa Binary files /dev/null and b/Public/__pycache__/__init__.cpython-38.pyc differ diff --git a/Public/__pycache__/create_report.cpython-37.pyc b/Public/__pycache__/create_report.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/create_report.cpython-38.pyc b/Public/__pycache__/create_report.cpython-38.pyc new file mode 100644 index 0000000..639254c Binary files /dev/null and b/Public/__pycache__/create_report.cpython-38.pyc differ diff --git a/Public/__pycache__/fengzhuang_dict.cpython-37.pyc b/Public/__pycache__/fengzhuang_dict.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/fengzhuang_dict.cpython-38.pyc b/Public/__pycache__/fengzhuang_dict.cpython-38.pyc new file mode 100644 index 0000000..1dceef8 Binary files /dev/null and b/Public/__pycache__/fengzhuang_dict.cpython-38.pyc differ diff --git a/Public/__pycache__/get_excel.cpython-37.pyc b/Public/__pycache__/get_excel.cpython-37.pyc old mode 100644 new mode 100755 index 8f2a7bf..56de472 Binary files a/Public/__pycache__/get_excel.cpython-37.pyc and b/Public/__pycache__/get_excel.cpython-37.pyc differ diff --git a/Public/__pycache__/get_excel.cpython-38.pyc b/Public/__pycache__/get_excel.cpython-38.pyc new file mode 100644 index 0000000..bc27902 Binary files /dev/null and b/Public/__pycache__/get_excel.cpython-38.pyc differ diff --git a/Public/__pycache__/log.cpython-37.pyc b/Public/__pycache__/log.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/log.cpython-38.pyc b/Public/__pycache__/log.cpython-38.pyc new file mode 100644 index 0000000..a60351a Binary files /dev/null and b/Public/__pycache__/log.cpython-38.pyc differ diff --git a/Public/__pycache__/panduan.cpython-37.pyc b/Public/__pycache__/panduan.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/panduan.cpython-38.pyc b/Public/__pycache__/panduan.cpython-38.pyc new file mode 100644 index 0000000..8b495e0 Binary files /dev/null and b/Public/__pycache__/panduan.cpython-38.pyc differ diff --git a/Public/__pycache__/py_Html.cpython-37.pyc b/Public/__pycache__/py_Html.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/py_Html.cpython-38.pyc b/Public/__pycache__/py_Html.cpython-38.pyc new file mode 100644 index 0000000..1143b3e Binary files /dev/null and b/Public/__pycache__/py_Html.cpython-38.pyc differ diff --git a/Public/__pycache__/pyreport_excel.cpython-37.pyc b/Public/__pycache__/pyreport_excel.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/Public/__pycache__/test_requests.cpython-37-pytest-7.0.1.pyc b/Public/__pycache__/test_requests.cpython-37-pytest-7.0.1.pyc new file mode 100755 index 0000000..89afe07 Binary files /dev/null and b/Public/__pycache__/test_requests.cpython-37-pytest-7.0.1.pyc differ diff --git a/Public/__pycache__/test_requests.cpython-37.pyc b/Public/__pycache__/test_requests.cpython-37.pyc old mode 100644 new mode 100755 index 3b4e473..63334ea Binary files a/Public/__pycache__/test_requests.cpython-37.pyc and b/Public/__pycache__/test_requests.cpython-37.pyc differ diff --git a/Public/__pycache__/test_requests.cpython-38.pyc b/Public/__pycache__/test_requests.cpython-38.pyc new file mode 100644 index 0000000..c7e0a5b Binary files /dev/null and b/Public/__pycache__/test_requests.cpython-38.pyc differ diff --git a/Public/create_report.py b/Public/create_report.py old mode 100644 new mode 100755 diff --git a/Public/emmail.py b/Public/emmail.py old mode 100644 new mode 100755 diff --git a/Public/fengzhuang_dict.py b/Public/fengzhuang_dict.py old mode 100644 new mode 100755 diff --git a/Public/get_excel.py b/Public/get_excel.py old mode 100644 new mode 100755 diff --git a/Public/get_excel_new.py b/Public/get_excel_new.py old mode 100644 new mode 100755 diff --git a/Public/log.py b/Public/log.py old mode 100644 new mode 100755 diff --git a/Public/panduan.py b/Public/panduan.py old mode 100644 new mode 100755 diff --git a/Public/py_Html.py b/Public/py_Html.py old mode 100644 new mode 100755 diff --git a/Public/pyreport_excel.py b/Public/pyreport_excel.py old mode 100644 new mode 100755 diff --git a/Public/test_requests.py b/Public/test_requests.py old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/config/.DS_Store b/config/.DS_Store old mode 100644 new mode 100755 diff --git a/config/__init__.py b/config/__init__.py old mode 100644 new mode 100755 diff --git a/config/__pycache__/__init__.cpython-37.pyc b/config/__pycache__/__init__.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/config/__pycache__/__init__.cpython-38.pyc b/config/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..74eedf3 Binary files /dev/null and b/config/__pycache__/__init__.cpython-38.pyc differ diff --git a/config/__pycache__/config.cpython-37.pyc b/config/__pycache__/config.cpython-37.pyc new file mode 100755 index 0000000..843b56d Binary files /dev/null and b/config/__pycache__/config.cpython-37.pyc differ diff --git a/config/__pycache__/config.cpython-38.pyc b/config/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..c8efbe9 Binary files /dev/null and b/config/__pycache__/config.cpython-38.pyc differ diff --git a/config/__pycache__/config_T.cpython-37.pyc b/config/__pycache__/config_T.cpython-37.pyc deleted file mode 100644 index fe5e3bf..0000000 Binary files a/config/__pycache__/config_T.cpython-37.pyc and /dev/null differ diff --git a/config/config.py b/config/config.py old mode 100644 new mode 100755 diff --git a/config/email.yaml b/config/email.yaml old mode 100644 new mode 100755 diff --git a/config/test_report.yaml b/config/test_report.yaml old mode 100644 new mode 100755 diff --git a/history/2022_01_15_14_26_21.txt b/history/2022_01_15_14_26_21.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_15_14_26_21.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_36_13.txt b/history/2022_01_16_09_36_13.txt new file mode 100755 index 0000000..0fe7ef7 --- /dev/null +++ b/history/2022_01_16_09_36_13.txt @@ -0,0 +1 @@ +0_2_0 \ No newline at end of file diff --git a/history/2022_01_16_09_38_16.txt b/history/2022_01_16_09_38_16.txt new file mode 100755 index 0000000..0fe7ef7 --- /dev/null +++ b/history/2022_01_16_09_38_16.txt @@ -0,0 +1 @@ +0_2_0 \ No newline at end of file diff --git a/history/2022_01_16_09_39_12.txt b/history/2022_01_16_09_39_12.txt new file mode 100755 index 0000000..0fe7ef7 --- /dev/null +++ b/history/2022_01_16_09_39_12.txt @@ -0,0 +1 @@ +0_2_0 \ No newline at end of file diff --git a/history/2022_01_16_09_39_32.txt b/history/2022_01_16_09_39_32.txt new file mode 100755 index 0000000..0fe7ef7 --- /dev/null +++ b/history/2022_01_16_09_39_32.txt @@ -0,0 +1 @@ +0_2_0 \ No newline at end of file diff --git a/history/2022_01_16_09_39_51.txt b/history/2022_01_16_09_39_51.txt new file mode 100755 index 0000000..0fe7ef7 --- /dev/null +++ b/history/2022_01_16_09_39_51.txt @@ -0,0 +1 @@ +0_2_0 \ No newline at end of file diff --git a/history/2022_01_16_09_41_00.txt b/history/2022_01_16_09_41_00.txt new file mode 100755 index 0000000..0fe7ef7 --- /dev/null +++ b/history/2022_01_16_09_41_00.txt @@ -0,0 +1 @@ +0_2_0 \ No newline at end of file diff --git a/history/2022_01_16_09_41_37.txt b/history/2022_01_16_09_41_37.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_41_37.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_42_37.txt b/history/2022_01_16_09_42_37.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_42_37.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_43_15.txt b/history/2022_01_16_09_43_15.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_43_15.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_43_50.txt b/history/2022_01_16_09_43_50.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_43_50.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_43_56.txt b/history/2022_01_16_09_43_56.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_43_56.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_44_26.txt b/history/2022_01_16_09_44_26.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_44_26.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_44_35.txt b/history/2022_01_16_09_44_35.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_44_35.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_45_12.txt b/history/2022_01_16_09_45_12.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_45_12.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_01_16_09_46_33.txt b/history/2022_01_16_09_46_33.txt new file mode 100755 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_01_16_09_46_33.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/history/2022_04_22_17_22_51.txt b/history/2022_04_22_17_22_51.txt new file mode 100644 index 0000000..3ad8fe8 --- /dev/null +++ b/history/2022_04_22_17_22_51.txt @@ -0,0 +1 @@ +2_0_0 \ No newline at end of file diff --git a/img/cebaogaotu.png b/img/cebaogaotu.png old mode 100644 new mode 100755 diff --git a/img/excel.png b/img/excel.png old mode 100644 new mode 100755 diff --git a/img/excel2.png b/img/excel2.png old mode 100644 new mode 100755 diff --git a/img/kongzhitai.PNG b/img/kongzhitai.PNG old mode 100644 new mode 100755 diff --git a/img/log.png b/img/log.png old mode 100644 new mode 100755 diff --git a/img/weixin.png b/img/weixin.png old mode 100644 new mode 100755 diff --git a/img/xiangmujiegoutu.png b/img/xiangmujiegoutu.png old mode 100644 new mode 100755 diff --git a/img/xinbanbenlog.png b/img/xinbanbenlog.png old mode 100644 new mode 100755 diff --git a/img/公众号海报.jpeg b/img/公众号海报.jpeg old mode 100644 new mode 100755 diff --git a/img/新版本测试报告.png b/img/新版本测试报告.png old mode 100644 new mode 100755 diff --git a/log/jiekou-2022-01-15-13.log b/log/jiekou-2022-01-15-13.log old mode 100644 new mode 100755 diff --git a/log/jiekou-2022-01-15-14.log b/log/jiekou-2022-01-15-14.log new file mode 100755 index 0000000..d83554f --- /dev/null +++ b/log/jiekou-2022-01-15-14.log @@ -0,0 +1,22 @@ +[2022-01-15 14:27:09.437035] INFO: jiekou: 当前模块 生成数据驱动所用数据 +[2022-01-15 14:27:09.437977] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-15 14:27:09.438118] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-01-15 14:27:09.438263] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-01-15 14:27:09.438360] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-01-15 14:27:09.438552] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-01-15 14:27:09.455070] INFO: jiekou: 测试用例开始执行 +[2022-01-15 14:27:09.455222] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:POST +[2022-01-15 14:27:09.455321] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:None +[2022-01-15 14:27:09.456489] INFO: jiekou: 返回结果:{'code': 1, 'result': "请求异常:Invalid URL '/openapi/api': No schema supplied. Perhaps you meant http:///openapi/api?"} +[2022-01-15 14:27:09.456612] INFO: jiekou: 当前模块 断言测试结果 +[2022-01-15 14:27:09.456709] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-15 14:27:09.456797] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40001'} +[2022-01-15 14:27:09.456898] INFO: jiekou: 测试用例执行完毕 +[2022-01-15 14:27:09.457025] INFO: jiekou: 测试用例开始执行 +[2022-01-15 14:27:09.457124] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:POST +[2022-01-15 14:27:09.457211] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:None +[2022-01-15 14:27:09.457530] INFO: jiekou: 返回结果:{'code': 1, 'result': "请求异常:Invalid URL '/openapi/api': No schema supplied. Perhaps you meant http:///openapi/api?"} +[2022-01-15 14:27:09.457637] INFO: jiekou: 当前模块 断言测试结果 +[2022-01-15 14:27:09.457731] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-15 14:27:09.457816] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40002'} +[2022-01-15 14:27:09.457914] INFO: jiekou: 测试用例执行完毕 diff --git a/log/jiekou-2022-01-15-17.log b/log/jiekou-2022-01-15-17.log new file mode 100755 index 0000000..cb90a23 --- /dev/null +++ b/log/jiekou-2022-01-15-17.log @@ -0,0 +1,22 @@ +[2022-01-15 17:13:18.278787] INFO: jiekou: 当前模块 生成数据驱动所用数据 +[2022-01-15 17:13:18.279456] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-15 17:13:18.279559] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-01-15 17:13:18.279680] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-01-15 17:13:18.279771] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-01-15 17:13:18.279854] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-01-15 17:13:18.329953] INFO: jiekou: 测试用例开始执行 +[2022-01-15 17:13:18.330178] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:POST +[2022-01-15 17:13:18.330315] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:None +[2022-01-15 17:13:18.332452] INFO: jiekou: 返回结果:{'code': 1, 'result': "请求异常:Invalid URL '/openapi/api': No schema supplied. Perhaps you meant http:///openapi/api?"} +[2022-01-15 17:13:18.332630] INFO: jiekou: 当前模块 断言测试结果 +[2022-01-15 17:13:18.332736] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-15 17:13:18.332829] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40001'} +[2022-01-15 17:13:18.332943] INFO: jiekou: 测试用例执行完毕 +[2022-01-15 17:13:18.333088] INFO: jiekou: 测试用例开始执行 +[2022-01-15 17:13:18.333234] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:POST +[2022-01-15 17:13:18.333332] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:None +[2022-01-15 17:13:18.333739] INFO: jiekou: 返回结果:{'code': 1, 'result': "请求异常:Invalid URL '/openapi/api': No schema supplied. Perhaps you meant http:///openapi/api?"} +[2022-01-15 17:13:18.334014] INFO: jiekou: 当前模块 断言测试结果 +[2022-01-15 17:13:18.334274] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-15 17:13:18.334553] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40002'} +[2022-01-15 17:13:18.334695] INFO: jiekou: 测试用例执行完毕 diff --git a/log/jiekou-2022-01-16-09.log b/log/jiekou-2022-01-16-09.log new file mode 100755 index 0000000..08508c9 --- /dev/null +++ b/log/jiekou-2022-01-16-09.log @@ -0,0 +1,22 @@ +[2022-01-16 09:46:33.662871] INFO: jiekou: 当前模块 生成数据驱动所用数据 +[2022-01-16 09:46:33.664217] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-16 09:46:33.664333] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-01-16 09:46:33.664468] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-01-16 09:46:33.664560] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-01-16 09:46:33.664642] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-01-16 09:46:33.685922] INFO: jiekou: 测试用例开始执行 +[2022-01-16 09:46:33.686171] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:POST +[2022-01-16 09:46:33.686288] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:None +[2022-01-16 09:46:33.750325] INFO: jiekou: 返回结果:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}} +[2022-01-16 09:46:33.750550] INFO: jiekou: 当前模块 断言测试结果 +[2022-01-16 09:46:33.750662] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-16 09:46:33.750769] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40001'} +[2022-01-16 09:46:33.750898] INFO: jiekou: 测试用例执行完毕 +[2022-01-16 09:46:33.751105] INFO: jiekou: 测试用例开始执行 +[2022-01-16 09:46:33.751315] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:POST +[2022-01-16 09:46:33.751432] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:None +[2022-01-16 09:46:33.782704] INFO: jiekou: 返回结果:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}} +[2022-01-16 09:46:33.782947] INFO: jiekou: 当前模块 断言测试结果 +[2022-01-16 09:46:33.783049] INFO: jiekou: 全部args参数参数信息 , () +[2022-01-16 09:46:33.783166] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40002'} +[2022-01-16 09:46:33.783281] INFO: jiekou: 测试用例执行完毕 diff --git a/log/jiekou-2022-02-20-12.log b/log/jiekou-2022-02-20-12.log new file mode 100755 index 0000000..f21e48a --- /dev/null +++ b/log/jiekou-2022-02-20-12.log @@ -0,0 +1,6 @@ +[2022-02-20 12:44:50.852541] INFO: jiekou: 当前模块 生成数据驱动所用数据 +[2022-02-20 12:44:50.853016] INFO: jiekou: 全部args参数参数信息 , () +[2022-02-20 12:44:50.853153] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-02-20 12:44:50.853307] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-02-20 12:44:50.853429] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-02-20 12:44:50.853548] INFO: jiekou: 全部kwargs参数信息 , {} diff --git a/log/jiekou-2022-04-22-17.log b/log/jiekou-2022-04-22-17.log new file mode 100644 index 0000000..cce9ba8 --- /dev/null +++ b/log/jiekou-2022-04-22-17.log @@ -0,0 +1,202 @@ +[2022-04-22 17:22:26.778477] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:22:26.779237] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:22:26.779387] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:26.808260] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:22:26.808395] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:22:26.808481] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:26.810404] INFO: jiekou: 当前模块 测试 +[2022-04-22 17:22:26.810539] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:26.810632] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:27.978962] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:27.979365] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:27.979631] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:27.979823] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:27.980186] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:29.027990] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:29.028269] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.028377] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.028485] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.028589] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:29.517642] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:29.517913] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.518078] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.518180] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.518281] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:29.565773] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:29.566054] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.566236] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.566417] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.566569] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:29.617091] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:29.617275] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.617365] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.617448] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.617572] INFO: jiekou: 失败重试中次数用完,最后结果 +[2022-04-22 17:22:29.658466] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:29.658649] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.658794] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.658921] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.659075] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:29.718410] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:29.718615] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.718748] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.718871] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.719069] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:29.764296] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:29.764482] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:29.764568] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:29.764668] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:29.764762] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:30.043375] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:30.043620] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:30.043769] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:30.043919] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:30.044074] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:30.084180] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:30.084505] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:30.084735] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:30.085204] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:30.085420] INFO: jiekou: 失败重试中次数用完,最后结果 +[2022-04-22 17:22:30.121341] INFO: jiekou: 当前模块 保存测试结果 +[2022-04-22 17:22:30.121531] INFO: jiekou: 全部args参数参数信息 , (datetime.datetime(2022, 4, 22, 17, 22, 26, 808171), 2, 0, 2) +[2022-04-22 17:22:30.121620] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:39.860783] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:22:39.861259] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:22:39.861564] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:39.905848] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:22:39.905982] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:22:39.906066] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:39.909608] INFO: jiekou: 当前模块 测试 +[2022-04-22 17:22:39.909832] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:39.910029] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:41.004003] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:41.004618] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.004731] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.005038] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.005245] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.051783] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:41.052116] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.052288] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.052487] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.052711] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.130454] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:41.130701] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.130830] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.130956] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.131090] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.186415] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:41.186592] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.186722] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.186853] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.186999] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.233924] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:22:41.234352] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.234507] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.234719] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.234871] INFO: jiekou: 失败重试中次数用完,最后结果 +[2022-04-22 17:22:41.272654] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:41.272862] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.272952] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.273059] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.273154] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.526629] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:41.526898] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.527091] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.527286] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.527400] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.569143] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:41.569320] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.569405] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.569489] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.569577] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.874665] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:41.874856] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.874956] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.875056] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.875163] INFO: jiekou: 失败重试中 +[2022-04-22 17:22:41.927251] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:22:41.927429] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:41.927514] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:41.927658] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:22:41.927899] INFO: jiekou: 失败重试中次数用完,最后结果 +[2022-04-22 17:22:51.360831] INFO: jiekou: 当前模块 生成数据驱动所用数据 +[2022-04-22 17:22:51.361251] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:51.361493] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:51.361759] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:22:51.361910] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:22:51.362018] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:22:51.394227] INFO: jiekou: 测试用例开始执行 +[2022-04-22 17:22:51.394482] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:POST +[2022-04-22 17:22:51.394603] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:None +[2022-04-22 17:22:51.468211] INFO: jiekou: 返回结果:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}} +[2022-04-22 17:22:51.469211] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:51.469445] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:51.469881] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40001'} +[2022-04-22 17:22:51.470383] INFO: jiekou: 测试用例执行完毕 +[2022-04-22 17:22:51.470590] INFO: jiekou: 测试用例开始执行 +[2022-04-22 17:22:51.470859] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:POST +[2022-04-22 17:22:51.471181] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:None +[2022-04-22 17:22:51.740290] INFO: jiekou: 返回结果:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}} +[2022-04-22 17:22:51.740483] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:22:51.740633] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:22:51.740823] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40002'} +[2022-04-22 17:22:51.741116] INFO: jiekou: 测试用例执行完毕 +[2022-04-22 17:23:10.825644] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:23:10.826130] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:23:10.826281] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:23:10.844207] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-04-22 17:23:10.844426] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/test_case_data/case.xlsx',) +[2022-04-22 17:23:10.844568] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:23:10.848621] INFO: jiekou: 当前模块 测试 +[2022-04-22 17:23:10.848959] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:10.849201] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-04-22 17:23:10.908771] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:23:10.909005] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:10.909138] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:10.909263] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:10.909399] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:10.953665] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:23:10.953987] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:10.954213] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:10.954469] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:10.954692] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:12.007731] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:23:12.007973] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:12.008097] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:12.008217] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:12.008345] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:14.132112] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:23:14.132436] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:14.132636] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:14.132843] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:14.133061] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:14.185738] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40001 +[2022-04-22 17:23:14.186162] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:14.186387] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:14.186584] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40001', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:14.186800] INFO: jiekou: 失败重试中次数用完,最后结果 +[2022-04-22 17:23:14.230780] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:23:14.231898] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:14.232281] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:14.232543] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:14.232718] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:14.282157] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:23:14.282379] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:14.282497] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:14.282610] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:14.282731] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:14.323761] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:23:14.324123] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:14.324292] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:14.324428] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:14.324564] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:14.374812] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:23:14.375129] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:14.376257] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:14.376474] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:14.376783] INFO: jiekou: 失败重试中 +[2022-04-22 17:23:15.423984] INFO: jiekou: inputdata> 参数:{'password':'1222'}, url:/openapi/api ,返回:{'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}},预期:code=40002 +[2022-04-22 17:23:15.424470] INFO: jiekou: 当前模块 断言测试结果 +[2022-04-22 17:23:15.424739] INFO: jiekou: 全部args参数参数信息 , () +[2022-04-22 17:23:15.425322] INFO: jiekou: 全部kwargs参数信息 , {'asserqiwang': 'code=40002', 'fanhuijson': {'code': 0, 'result': {'code': 40007, 'text': '您的请求内容为空。'}}} +[2022-04-22 17:23:15.425623] INFO: jiekou: 失败重试中次数用完,最后结果 diff --git a/result.txt b/result.txt old mode 100644 new mode 100755 index 047586f..2d84510 --- a/result.txt +++ b/result.txt @@ -11,3 +11,4 @@ 2022-01-15 13:39:41.019636=2=0=2 2022-01-15 13:39:51.378087=2=0=2 2022-01-15 13:40:33.036679=2=0=2 +2022-04-22 17:22:26.808171=2=0=2 diff --git a/run_excel_re.py b/run_excel_re.py old mode 100644 new mode 100755 diff --git a/run_html.py b/run_html.py old mode 100644 new mode 100755 diff --git a/run_http_html.py b/run_http_html.py old mode 100644 new mode 100755 diff --git a/run_new.py b/run_new.py old mode 100644 new mode 100755 diff --git a/testCase/__init__.py b/testCase/__init__.py old mode 100644 new mode 100755 diff --git a/testCase/__pycache__/__init__.cpython-37.pyc b/testCase/__pycache__/__init__.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/testCase/__pycache__/__init__.cpython-38.pyc b/testCase/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..411d662 Binary files /dev/null and b/testCase/__pycache__/__init__.cpython-38.pyc differ diff --git a/testCase/__pycache__/case.cpython-37.pyc b/testCase/__pycache__/case.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/testCase/__pycache__/case.cpython-38.pyc b/testCase/__pycache__/case.cpython-38.pyc new file mode 100644 index 0000000..8da6c21 Binary files /dev/null and b/testCase/__pycache__/case.cpython-38.pyc differ diff --git a/testCase/__pycache__/ddt_case.cpython-37.pyc b/testCase/__pycache__/ddt_case.cpython-37.pyc old mode 100644 new mode 100755 index f03559a..4c7b952 Binary files a/testCase/__pycache__/ddt_case.cpython-37.pyc and b/testCase/__pycache__/ddt_case.cpython-37.pyc differ diff --git a/testCase/__pycache__/ddt_case.cpython-38.pyc b/testCase/__pycache__/ddt_case.cpython-38.pyc new file mode 100644 index 0000000..f56f095 Binary files /dev/null and b/testCase/__pycache__/ddt_case.cpython-38.pyc differ diff --git a/testCase/__pycache__/pytestCasetest.cpython-37-pytest-7.0.1.pyc b/testCase/__pycache__/pytestCasetest.cpython-37-pytest-7.0.1.pyc new file mode 100755 index 0000000..0517c7a Binary files /dev/null and b/testCase/__pycache__/pytestCasetest.cpython-37-pytest-7.0.1.pyc differ diff --git a/testCase/case.py b/testCase/case.py old mode 100644 new mode 100755 diff --git a/testCase/ddt_case.py b/testCase/ddt_case.py old mode 100644 new mode 100755 index dc4f93a..63b9f2c --- a/testCase/ddt_case.py +++ b/testCase/ddt_case.py @@ -60,10 +60,6 @@ class MyTest(unittest.TestCase): except: self.assertTrue(False,msg="参数格式不对") - # try: - #parem=eval(data_test['coneent']) - # except: - # self.assertTrue(False, msg="参数格式不对") api = TestApi(url=TestPlanUrl+data_test['url'], parame=parem, method=data_test['fangshi']) diff --git a/testCase/dubbocase.py b/testCase/dubbocase.py old mode 100644 new mode 100755 diff --git a/testCase/log/jiekou-2022-02-19-14.log b/testCase/log/jiekou-2022-02-19-14.log new file mode 100755 index 0000000..ad1ba2e --- /dev/null +++ b/testCase/log/jiekou-2022-02-19-14.log @@ -0,0 +1,7 @@ +[2022-02-19 14:48:50.453153] INFO: jiekou: 当前模块 生成数据驱动所用数据 +[2022-02-19 14:48:50.454468] INFO: jiekou: 全部args参数参数信息 , () +[2022-02-19 14:48:50.454722] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-02-19 14:48:50.454956] INFO: jiekou: 当前模块 解析测试用例文件 +[2022-02-19 14:48:50.455119] INFO: jiekou: 全部args参数参数信息 , ('/Users/lileilei/Desktop/testplan/jiekou-python3/testCase/test_case_data/case.xlsx',) +[2022-02-19 14:48:50.455266] INFO: jiekou: 全部kwargs参数信息 , {} +[2022-02-19 14:48:50.455514] INFO: jiekou: 打开测试用例失败,原因是:[Errno 2] No such file or directory: '/Users/lileilei/Desktop/testplan/jiekou-python3/testCase/test_case_data/case.xlsx' diff --git a/testCase/pytestCasetest.py b/testCase/pytestCasetest.py new file mode 100755 index 0000000..32946ba --- /dev/null +++ b/testCase/pytestCasetest.py @@ -0,0 +1,64 @@ +''' + @Description + @auther leizi +''' +from Interface.testFengzhuang import TestApi +from Public.log import LOG +from Public.panduan import assertre +from config.config import TestPlanUrl +import pytest +import os +import yaml +from Public.get_excel import makedata +file_dir = os.path.join(os.getcwd(), 'test_Report') +file_reslut = os.path.join(file_dir, 'caseresult.yaml') + +def write(data): + with open(file_reslut, 'a', encoding='utf-8') as f: + yaml.dump(data, f, allow_unicode=True) +def read(data): + f = open(file_reslut, 'r', encoding='utf-8') + d = yaml.load(f, Loader=yaml.FullLoader) + return d[data] + +data_test = makedata() +@pytest.mark.parametrize(data_test) +class TestParametrize(object): + def test_parame(self): + parem = {'key': data_test['key']} + try: + parem_dict = eval(data_test['coneent']) + for key, value in parem_dict.items(): + if str(value).startswith("&"): + try: + reply_key_id = str(value).split("&")[-1].split("=") + reply_keyid = reply_key_id[0] + reply_key_key = reply_key_id[1] + reslut = read(reply_keyid) + if reslut is None: + assert False + get_value = reslut[reply_key_key] + if get_value is None: + assert False + parem_dict[key] = get_value + except Exception as e: + LOG.info("用例依赖执行失败:" + str(e)) + assert False + parem.update({'info': parem_dict}) + except: + assert False + + api = TestApi(url=TestPlanUrl + data_test['url'], + parame=parem, + method=data_test['fangshi']) + LOG.info('输入参数:url:%s,key:%s,参数:%s,请求方式:%s' % (data_test['url'], data_test['key'], data_test['coneent'], + LOG.info('输入参数:url:%s,key:%s,参数:%s,请求方式:%s' % ( + data_test['url'], data_test['key'], data_test['coneent'], + data_test['fangshi'])))) + apijson = api.getJson() + reslut = {} + reslut[data_test['id']] = apijson + LOG.info('返回结果:%s' % apijson) + assertall = assertre(asserqingwang=data_test['qiwang']) + + assert dict(assertall) == dict(apijson) diff --git a/test_Report/201710162054-result.html b/test_Report/201710162054-result.html old mode 100644 new mode 100755 diff --git a/test_Report/2022-0116.html b/test_Report/2022-0116.html new file mode 100755 index 0000000..50b4fb1 --- /dev/null +++ b/test_Report/2022-0116.html @@ -0,0 +1,264 @@ + + + + + + + + 报告 + + + + + + + + + + + + +
+ +
+
+

报告

+

开始时间: 2022-01-16 09:46:33

+

持续时间: 0:00:00.097623

+

状态: 通过 2

+ +

测试报告

+
+ +
+
+
+
+ + +

+公用 +失败 +所有 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
测试组/测试用例 + 数量 + 失败 + 通过 + 错误 + 查看 +
testCase.ddt_case.MyTest2200详情
test_api_1: 1.处理参数
通过
test_api_2: 1.处理参数
通过
总计2200 
+ +
 
+
+ + + + + diff --git a/test_Report/2022-0422.html b/test_Report/2022-0422.html new file mode 100644 index 0000000..1c9f668 --- /dev/null +++ b/test_Report/2022-0422.html @@ -0,0 +1,264 @@ + + + + + + + + 报告 + + + + + + + + + + + + +
+ +
+
+

报告

+

开始时间: 2022-04-22 17:22:51

+

持续时间: 0:00:00.347419

+

状态: 通过 2

+ +

测试报告

+
+ +
+
+
+
+ + +

+公用 +失败 +所有 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
测试组/测试用例 + 数量 + 失败 + 通过 + 错误 + 查看 +
testCase.ddt_case.MyTest2200详情
test_api_1: 1.处理参数
通过
test_api_2: 1.处理参数
通过
总计2200 
+ +
 
+
+ + + + + diff --git a/test_Report/20220115-result.xls b/test_Report/20220115-result.xls old mode 100644 new mode 100755 diff --git a/test_Report/202204221722-result.html b/test_Report/202204221722-result.html new file mode 100644 index 0000000..37b4c7b --- /dev/null +++ b/test_Report/202204221722-result.html @@ -0,0 +1,117 @@ + + + + http接口自动化测试报告 + + + + + + + + + + + +
+

接口测试的结果

+ + + + + + + + + +
开始时间: 2022-04-22 17:22:39.905752
结束时间: 2022-04-22 17:22:41.928059
耗时: 0:00:02.022307
结果: + Pass: 0 + Fail: 2 + exception: 0 + weizhicuowu : 0
+
+
+
+ + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
用例ID 用例名字key请求内容url请求方式预期实际返回结果
1.0图灵api接口aaaa{'password':'1222'}/openapi/apiPOSTcode=40001{'code': 40007, 'text': '您的请求内容为空。'}fail
2.0图灵api接口dfeb1cc8125943d29764a2f2f5c33739{'password':'1222'}/openapi/apiPOSTcode=40002{'code': 40007, 'text': '您的请求内容为空。'}fail
+ + + \ No newline at end of file diff --git a/test_Report/202204221723-result.html b/test_Report/202204221723-result.html new file mode 100644 index 0000000..31729f8 --- /dev/null +++ b/test_Report/202204221723-result.html @@ -0,0 +1,117 @@ + + + + http接口自动化测试报告 + + + + + + + + + + + +
+

接口测试的结果

+ + + + + + + + + +
开始时间: 2022-04-22 17:23:10.844057
结束时间: 2022-04-22 17:23:15.444389
耗时: 0:00:04.600332
结果: + Pass: 0 + Fail: 2 + exception: 0 + weizhicuowu : 0
+
+
+
+ + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
用例ID 用例名字key请求内容url请求方式预期实际返回结果
1.0图灵api接口aaaa{'password':'1222'}/openapi/apiPOSTcode=40001{'code': 40007, 'text': '您的请求内容为空。'}fail
2.0图灵api接口dfeb1cc8125943d29764a2f2f5c33739{'password':'1222'}/openapi/apiPOSTcode=40002{'code': 40007, 'text': '您的请求内容为空。'}fail
+ + + \ No newline at end of file diff --git a/test_Report/caseresult.yaml b/test_Report/caseresult.yaml new file mode 100644 index 0000000..96923ae --- /dev/null +++ b/test_Report/caseresult.yaml @@ -0,0 +1,10 @@ +1.0: + code: 0 + result: + code: 40007 + text: 您的请求内容为空。 +2.0: + code: 0 + result: + code: 40007 + text: 您的请求内容为空。 diff --git a/test_case_data/case.xlsx b/test_case_data/case.xlsx old mode 100644 new mode 100755 diff --git a/test_case_data/dubbocase.xlsx b/test_case_data/dubbocase.xlsx old mode 100644 new mode 100755