c765d9b1 by 付孟奇

自动化框架初始化,完成话术变量场景模拟

0 parents
No preview for this file type
1 # Default ignored files
2 /shelf/
3 /workspace.xml
4 # Datasource local storage ignored files
5 /dataSources/
6 /dataSources.local.xml
7 # Editor-based HTTP Client requests
8 /httpRequests/
1 <?xml version="1.0" encoding="UTF-8"?>
2 <module type="PYTHON_MODULE" version="4">
3 <component name="NewModuleRootManager">
4 <content url="file://$MODULE_DIR$" />
5 <orderEntry type="inheritedJdk" />
6 <orderEntry type="sourceFolder" forTests="false" />
7 </component>
8 </module>
...\ No newline at end of file ...\ No newline at end of file
1 <component name="InspectionProjectProfileManager">
2 <profile version="1.0">
3 <option name="myName" value="Project Default" />
4 <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
5 <Languages>
6 <language minSize="111" name="Python" />
7 </Languages>
8 </inspection_tool>
9 </profile>
10 </component>
...\ No newline at end of file ...\ No newline at end of file
1 <component name="InspectionProjectProfileManager">
2 <settings>
3 <option name="USE_PROJECT_PROFILE" value="false" />
4 <version value="1.0" />
5 </settings>
6 </component>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4">
3 <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
4 </project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4">
3 <component name="ProjectModuleManager">
4 <modules>
5 <module fileurl="file://$PROJECT_DIR$/.idea/SituApiSupport.iml" filepath="$PROJECT_DIR$/.idea/SituApiSupport.iml" />
6 </modules>
7 </component>
8 </project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project version="4">
3 <component name="VcsDirectoryMappings">
4 <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 </component>
6 </project>
...\ No newline at end of file ...\ No newline at end of file
1 # @Time : 2022/8/23 15:13
2 # @Author : 付孟奇
3
4 from unittestreport import TestRunner
5 from util.HandleJenkins import handle_jenkins
6 from util.HandleData import handle_data
7 from config.VendorPath import base_path
8 import unittest
9
10 # 执行的项目文件目录
11 pro = handle_jenkins()['pro']
12 email_data = handle_jenkins()['email']
13 email = str(email_data).split(',')
14 if len(email) > 1:
15 email = ','.join(email)
16 title = handle_jenkins()['title']
17 env = handle_jenkins()['env']
18
19 # 执行数据库初始化
20 # TODO
21 # handle_data.db_ini()
22 # handle_data.handle_global()
23
24 # 执行文件地址
25 # TODO
26 suite_case = unittest.defaultTestLoader.discover(base_path + '/case/', pattern='*.py')
27
28 runner = TestRunner(suite_case,
29 filename="report.html",
30 report_dir='./report',
31 title=title,
32 tester='测试组',
33 desc='接口自动化测试报告',
34 templates=1,
35 pro=pro,
36 env=env
37 )
38 runner.run()
39 # runner.send_email(host="smtp.exmail.qq.com",
40 # port=465,
41 # user="fumengqi@situdata.com",
42 # password="Fz315824",
43 # to_addrs=email)
44
45 # 执行数据库清理
46 # TODO
1 # @Time : 2022/8/23 11:15
2 # @Author : 付孟奇
3 from ddt import ddt, data
4 from config.VendorPath import excel_path, global_path
5 from util.HandleJenkins import handle_jenkins
6 from util.HandleData import handle_data
7 from util.HandleSpeech import handle_speech
8 from util.HandleRequest import DealRequest
9 from util.HandleLog import logger
10 from util.HandleFile import file_read_save
11 import unittest
12 import json
13 import re
14 import operator
15
16 # 获取配置信息
17 vendor_name = handle_jenkins()['pro']
18 # 获取项目所有测试用例
19 data_list = handle_data.load_excel(excel_path, '话术变量验证')
20
21
22 @ddt
23 class DDTTest(unittest.TestCase):
24
25 @data(*data_list)
26 def test_case(self, data_list):
27 logger.info('***************【' + str(data_list['desc']) + '】接口测试开始***************')
28 logger.info('接口测试用例为:' + str(data_list))
29
30 # 1、设置报告的接口信息
31 self._testMethodName = data_list['uri']
32 if data_list['positive_case'] == '正向':
33 self._testMethodDoc = '正向case--' + data_list['desc']
34 elif data_list['positive_case'] == '反向':
35 self._testMethodDoc = '正向case--' + data_list['desc']
36 else:
37 self._testMethodDoc = data_list['desc']
38
39 # 2、参数整理
40 re_headers = handle_data.handle_params(data_list['headers'])
41 logger.info('请求头为:' + str(re_headers))
42
43 re_method = data_list['method']
44 re_url = handle_jenkins()['host'] + data_list['uri']
45 re_params = handle_data.handle_params(data_list['params'])
46 logger.info('请求参数为:' + str(re_params))
47
48 # 3、进行接口请求
49 res = DealRequest(re_method, re_url, re_headers, re_params).return_response()
50 logger.info('接口测试结果为:' + str(res))
51
52 # 4、响应断言
53 assert_num = str(data_list['response_assert']).count('话术变量验证') # 判断是否是话术场景
54 if assert_num == 0:
55 assert_data = json.loads(data_list['response_assert'])
56 for k in assert_data:
57 self.assertEqual(handle_data.get_value(res, k)[0], assert_data[k])
58 else: # 话术变量验证
59 orderRecordId = res.get('result').get('orderRecordId')
60 if orderRecordId is not None:
61 assert_msg = handle_speech.getAssert(orderRecordId)
62 if assert_msg['code'] ==0:
63 logger.info(assert_msg['msg'])
64 else:
65 raise Exception(assert_msg['msg'])
66
67 # 5、判断是否需要保存响应信息:正向case且有相应需要保存的
68 if res['code'] == 0:
69 if data_list['save_args'] != '' and data_list['positive_case'] == '正向':
70 list_args = re.split(r'[,,;;、.。]', data_list['save_args'])
71 dic_args = {}
72 for i in list_args:
73 res_args = handle_data.get_value(res, i)[0]
74 dic_args[i] = res_args
75 file_read_save(global_path, str(int(data_list['id'])), dic_args)
76
77 logger.info('***************【' + str(data_list['desc']) + '】接口测试结束***************')
78
79
80 if __name__ == '__main__':
81 unittest.main()
No preview for this file type
1 # @Time : 2022/8/22 15:39
2 # @Author : 付孟奇
3
4 import os
5 import time
6
7 # 项目根路径
8 base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9
10 # 日志路径
11 log_path = os.path.join(base_path, 'log/{}.log'.format(time.strftime('%Y-%m-%d')))
12
13 # 公共参数文件路径
14 global_path = os.path.join(base_path, 'config/global_params.json')
15
16 # Excel数据路径
17 excel_path = os.path.join(base_path, 'data/自动化接口测试.xlsx')
18
19 # 生成报告文件路径
20 report_path = os.path.join(base_path, 'report/report.html')
No preview for this file type
1 [mysql]
2 ;mysql_host = localhost
3 ;mysql_port = 3306
4 ;mysql_user = root
5 ;mysql_passwd = fumengqi
6 ;mysql_db = automation
7
8
9 mysql_host = rm-2zen60zh797n662w4lo.mysql.rds.aliyuncs.com
10 mysql_port = 3306
11 mysql_user = sanheyi_stg
12 mysql_passwd = x39l&Cgid150t4kvfKA
13 mysql_db = sanheyi_stg
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "1": {
3 "md5": "d003784d3e6dbc116efcb6d550440465"
4 },
5 "2": {
6 "token": "28fbd3f975224bb995403d1bb3d36acb"
7 },
8 "3": {
9 "orderRecordId": 157
10 }
11 }
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 2022-09-19 17:17:54,346 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2 2022-09-19 17:17:54,348 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
3 2022-09-19 17:18:24,535 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
4 2022-09-19 17:18:24,537 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
5 2022-09-19 17:18:24,768 - root - INFO - ***************【查询表单配置】接口测试开始***************
6 2022-09-19 17:18:24,768 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '是', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
7 2022-09-19 17:18:24,769 - root - INFO - 请求头为:
8 2022-09-19 17:18:24,770 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
9 2022-09-19 17:18:24,958 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/520ba7b14fdb46399bad7a667cab20b8.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/ede6445cf3dc44f4a7292c7250c18c14.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/6fca88ed2e6b4ffe8104638cb18ee343.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/2d909e5db39145d2a202485f18d62335.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
10 2022-09-19 17:18:24,959 - root - INFO - 断言处理结束!!!
11 2022-09-19 17:18:24,962 - root - INFO - 响应信息存储完毕!!!
12 2022-09-19 17:18:24,963 - root - INFO - ***************【查询表单配置】接口测试结束***************
13 2022-09-19 17:18:24,963 - root - INFO - ***************【APP登录】接口测试开始***************
14 2022-09-19 17:18:24,964 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 1.0, 'positive_case': '是', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"}', 'params': '{"type": 1,"platformType": "1","md5": "#1.md5","username": "1200002681","password": "12345678"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
15 2022-09-19 17:18:24,964 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
16 2022-09-19 17:18:24,964 - root - INFO - 需要替换的变量信息为:['#1.md5']
17 2022-09-19 17:18:24,965 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
18 2022-09-19 17:18:24,966 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
19 2022-09-19 17:18:24,966 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
20 2022-09-19 17:18:25,565 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': 'a75eeaf02c2f4331878a261b05600691', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
21 2022-09-19 17:18:25,566 - root - INFO - 断言处理结束!!!
22 2022-09-19 17:18:25,567 - root - INFO - 响应信息存储完毕!!!
23 2022-09-19 17:18:25,568 - root - INFO - ***************【APP登录】接口测试结束***************
24 2022-09-19 17:18:25,570 - root - INFO - ***************【扫码入件】接口测试开始***************
25 2022-09-19 17:18:25,570 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '是', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "orderSource": "1",\n "data": "{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":1662536957045,\\"sysType\\":\\"1\\"}"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
26 2022-09-19 17:18:25,571 - root - INFO - 需要替换的变量信息为:['#2.token']
27 2022-09-19 17:18:25,573 - root - INFO - 可变参数的信息为:{'#2.token': 'a75eeaf02c2f4331878a261b05600691'}
28 2022-09-19 17:18:25,574 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'a75eeaf02c2f4331878a261b05600691'}
29 2022-09-19 17:18:25,575 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'a75eeaf02c2f4331878a261b05600691'}
30 2022-09-19 17:18:25,576 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
31 2022-09-19 17:18:26,525 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'taskId': '7cb1ebbf266b48688ecd157166838d4e', 'orderSource': 1, 'systemSource': '', 'orderDetails': [{'title': '销售人员信息', 'key': '', 'content': [{'title': '销售人员姓名', 'key': '', 'content': '天津测试', 'show': 1}, {'title': '销售人员工号', 'key': '', 'content': '1200002681', 'show': 1}, {'title': '销售人员所属机构名称', 'key': '', 'content': '天津', 'show': 1}, {'title': '机构类型', 'key': '', 'content': '保险公司', 'show': 1}, {'title': '保险公司名称', 'key': '', 'content': '光大永明人寿保险有限公司', 'show': 1}, {'title': '公司名称', 'key': '', 'content': '光大永明人寿保险有限公司天津分公司', 'show': 1}], 'show': 0}, {'title': '投保人信息', 'key': '', 'content': [{'title': '投保人姓名', 'key': '', 'content': '天津测试', 'show': 1}, {'title': '投保人性别', 'key': '', 'content': '男', 'show': 1}, {'title': '投保人尊称', 'key': '', 'content': '先生', 'show': 1}, {'title': '投保人年龄', 'key': '', 'content': 60, 'show': 1}, {'title': '投保人职业', 'key': '', 'content': '党政机关、企事业单位负责人和行政管理人员', 'show': 1}, {'title': '投保人出生日期', 'key': '', 'content': '1962-06-01', 'show': 1}, {'title': '投保人证件类型', 'key': '', 'content': '身份证', 'show': 1}, {'title': '投保人证件号码', 'key': '', 'content': '120101196206010017', 'show': 1}, {'title': '投保人有效通讯地址', 'key': '', 'content': '天津天津市和平233水电费规范化234', 'show': 1}, {'title': '投保人电话号码', 'key': '', 'content': '15236547788', 'show': 1}], 'show': 0}, {'title': '订单基本信息', 'key': '', 'content': [{'title': '投保单号', 'key': '', 'content': 'M1201F0002454A88', 'show': 1}, {'title': '保单类型', 'key': '', 'content': '非自保件', 'show': 1}, {'title': '订单来源', 'key': '', 'content': '扫码入件', 'show': 1}, {'title': '双录创建时间', 'key': '', 'content': '2022-09-19', 'show': 1}, {'title': '销售渠道', 'key': '', 'content': '个险渠道', 'show': 1}, {'title': '机构名称', 'key': '', 'content': '天津', 'show': 1}, {'title': '第一年末现金价值', 'key': '', 'content': '0', 'show': 1}, {'title': '机构代码', 'key': '', 'content': '861200', 'show': 1}, {'title': '签名方式', 'key': '', 'content': '电子签名', 'show': 1}], 'show': 0}, {'title': '投保基本信息1', 'key': '', 'content': [{'title': '产品名称', 'key': '', 'content': '光大永明增利宝(庆典版)终身寿险(万能型)', 'show': 1}, {'title': '产品代码', 'key': '', 'content': 'LWU006', 'show': 1}, {'title': '产品种类', 'key': '', 'content': '主险', 'show': 1}, {'title': '缴费方式', 'key': '', 'content': '趸缴', 'show': 1}, {'title': '缴费期限', 'key': '', 'content': '趸交', 'show': 1}, {'title': '保险期限', 'key': '', 'content': '保终身', 'show': 1}, {'title': '每期缴费金额', 'key': '', 'content': '', 'show': 1}, {'title': '产品类型', 'key': '', 'content': '万能型', 'show': 1}, {'title': '缴费频次', 'key': '', 'content': '趸', 'show': 1}, {'title': '首年保费总计', 'key': '', 'content': '100.00', 'show': 1}, {'title': '保费', 'key': '', 'content': '100.00', 'show': 1}, {'title': '被保人姓名', 'key': '', 'content': '天津测试', 'show': 1}, {'title': '被保人性别', 'key': '', 'content': '男', 'show': 1}, {'title': '被保人尊称', 'key': '', 'content': '先生', 'show': 1}, {'title': '被保人出生日期', 'key': '', 'content': '1962-06-01', 'show': 1}, {'title': '被保人年龄', 'key': '', 'content': '60', 'show': 1}, {'title': '被保人职业', 'key': '', 'content': '党政机关、企事业单位负责人和行政管理人员', 'show': 1}, {'title': '被保人证件类型', 'key': '', 'content': '身份证', 'show': 1}, {'title': '被保人证件号码', 'key': '', 'content': '120101196206010017', 'show': 1}, {'title': '被保人电话号码', 'key': '', 'content': '15236547788', 'show': 1}, {'title': '被保人有效通讯地址', 'key': '', 'content': '天津天津市和平233水电费规范化234', 'show': 1}, {'title': '被保人与投保人关系', 'key': '', 'content': '本人', 'show': 1}], 'show': 0}]}}
32 2022-09-19 17:18:26,528 - root - INFO - 断言处理结束!!!
33 2022-09-19 17:18:26,529 - root - INFO - 响应信息存储完毕!!!
34 2022-09-19 17:18:26,529 - root - INFO - ***************【扫码入件】接口测试结束***************
35 2022-09-19 17:18:26,531 - root - INFO - ***************【创建订单】接口测试开始***************
36 2022-09-19 17:18:26,531 - root - INFO - 接口测试用例为:{'id': 4.0, 'depend_id': 3.0, 'positive_case': '是', 'desc': '创建订单', 'uri': '/cl/order/add', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "taskId": "#3.taskId",\n "orderSource": "#3.orderSource",\n "systemSource": "#3.systemSource"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
37 2022-09-19 17:18:26,532 - root - INFO - 需要替换的变量信息为:['#2.token']
38 2022-09-19 17:18:26,533 - root - INFO - 可变参数的信息为:{'#2.token': 'a75eeaf02c2f4331878a261b05600691'}
39 2022-09-19 17:18:26,535 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'a75eeaf02c2f4331878a261b05600691'}
40 2022-09-19 17:18:26,536 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'a75eeaf02c2f4331878a261b05600691'}
41 2022-09-19 17:18:26,538 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
42 2022-09-19 17:18:26,541 - root - INFO - 可变参数的信息为:{'#3.taskId': '7cb1ebbf266b48688ecd157166838d4e', '#3.orderSource': 1, '#3.systemSource': ''}
43 2022-09-19 17:18:26,541 - root - INFO - 可变参数替换完毕:{'taskId': '7cb1ebbf266b48688ecd157166838d4e', 'orderSource': 1, 'systemSource': ''}
44 2022-09-19 17:18:26,542 - root - INFO - 请求参数为:{'taskId': '7cb1ebbf266b48688ecd157166838d4e', 'orderSource': 1, 'systemSource': ''}
45 2022-09-19 17:18:27,240 - root - INFO - 接口测试结果为:{'code': 2969, 'msg': '话术未上架', 'success': False, 'result': None}
46 2022-09-19 17:18:49,455 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
47 2022-09-19 17:18:49,456 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
48 2022-09-19 17:18:49,547 - root - INFO - ***************【查询表单配置】接口测试开始***************
49 2022-09-19 17:18:49,548 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '是', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
50 2022-09-19 17:18:49,548 - root - INFO - 请求头为:
51 2022-09-19 17:18:49,549 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
52 2022-09-19 17:18:49,748 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/520ba7b14fdb46399bad7a667cab20b8.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/ede6445cf3dc44f4a7292c7250c18c14.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/6fca88ed2e6b4ffe8104638cb18ee343.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/2d909e5db39145d2a202485f18d62335.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
53 2022-09-19 17:18:49,749 - root - INFO - 断言处理结束!!!
54 2022-09-19 17:18:49,751 - root - INFO - 响应信息存储完毕!!!
55 2022-09-19 17:18:49,751 - root - INFO - ***************【查询表单配置】接口测试结束***************
56 2022-09-19 17:18:49,751 - root - INFO - ***************【APP登录】接口测试开始***************
57 2022-09-19 17:18:49,752 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 1.0, 'positive_case': '是', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"}', 'params': '{"type": 1,"platformType": "1","md5": "#1.md5","username": "1200002681","password": "12345678"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
58 2022-09-19 17:18:49,752 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
59 2022-09-19 17:18:49,752 - root - INFO - 需要替换的变量信息为:['#1.md5']
60 2022-09-19 17:18:49,752 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
61 2022-09-19 17:18:49,753 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
62 2022-09-19 17:18:49,753 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
63 2022-09-19 17:18:50,408 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': 'b30ff875522e48358d79833deba738e0', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
64 2022-09-19 17:18:50,408 - root - INFO - 断言处理结束!!!
65 2022-09-19 17:18:50,410 - root - INFO - 响应信息存储完毕!!!
66 2022-09-19 17:18:50,410 - root - INFO - ***************【APP登录】接口测试结束***************
67 2022-09-19 17:18:50,411 - root - INFO - ***************【扫码入件】接口测试开始***************
68 2022-09-19 17:18:50,411 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '是', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "orderSource": "1",\n "data": "{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":1662536957045,\\"sysType\\":\\"1\\"}"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
69 2022-09-19 17:18:50,412 - root - INFO - 需要替换的变量信息为:['#2.token']
70 2022-09-19 17:18:50,412 - root - INFO - 可变参数的信息为:{'#2.token': 'b30ff875522e48358d79833deba738e0'}
71 2022-09-19 17:18:50,413 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'b30ff875522e48358d79833deba738e0'}
72 2022-09-19 17:18:50,413 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'b30ff875522e48358d79833deba738e0'}
73 2022-09-19 17:18:50,414 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
74 2022-09-19 17:18:50,851 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': '', 'orderDetails': [{'title': '销售人员信息', 'key': '', 'content': [{'title': '销售人员姓名', 'key': '', 'content': '天津测试', 'show': 1}, {'title': '销售人员工号', 'key': '', 'content': '1200002681', 'show': 1}, {'title': '销售人员所属机构名称', 'key': '', 'content': '天津', 'show': 1}, {'title': '机构类型', 'key': '', 'content': '保险公司', 'show': 1}, {'title': '保险公司名称', 'key': '', 'content': '光大永明人寿保险有限公司', 'show': 1}, {'title': '公司名称', 'key': '', 'content': '光大永明人寿保险有限公司天津分公司', 'show': 1}], 'show': 0}, {'title': '投保人信息', 'key': '', 'content': [{'title': '投保人姓名', 'key': '', 'content': '天津测试', 'show': 1}, {'title': '投保人性别', 'key': '', 'content': '男', 'show': 1}, {'title': '投保人尊称', 'key': '', 'content': '先生', 'show': 1}, {'title': '投保人年龄', 'key': '', 'content': 60, 'show': 1}, {'title': '投保人职业', 'key': '', 'content': '党政机关、企事业单位负责人和行政管理人员', 'show': 1}, {'title': '投保人出生日期', 'key': '', 'content': '1962-06-01', 'show': 1}, {'title': '投保人证件类型', 'key': '', 'content': '身份证', 'show': 1}, {'title': '投保人证件号码', 'key': '', 'content': '120101196206010017', 'show': 1}, {'title': '投保人有效通讯地址', 'key': '', 'content': '天津天津市和平233水电费规范化234', 'show': 1}, {'title': '投保人电话号码', 'key': '', 'content': '15236547788', 'show': 1}], 'show': 0}, {'title': '订单基本信息', 'key': '', 'content': [{'title': '投保单号', 'key': '', 'content': 'M1201F0002454A88', 'show': 1}, {'title': '保单类型', 'key': '', 'content': '非自保件', 'show': 1}, {'title': '订单来源', 'key': '', 'content': '扫码入件', 'show': 1}, {'title': '双录创建时间', 'key': '', 'content': '2022-09-19', 'show': 1}, {'title': '销售渠道', 'key': '', 'content': '个险渠道', 'show': 1}, {'title': '机构名称', 'key': '', 'content': '天津', 'show': 1}, {'title': '第一年末现金价值', 'key': '', 'content': '0', 'show': 1}, {'title': '机构代码', 'key': '', 'content': '861200', 'show': 1}, {'title': '签名方式', 'key': '', 'content': '电子签名', 'show': 1}], 'show': 0}, {'title': '投保基本信息1', 'key': '', 'content': [{'title': '产品名称', 'key': '', 'content': '光大永明增利宝(庆典版)终身寿险(万能型)', 'show': 1}, {'title': '产品代码', 'key': '', 'content': 'LWU006', 'show': 1}, {'title': '产品种类', 'key': '', 'content': '主险', 'show': 1}, {'title': '缴费方式', 'key': '', 'content': '趸缴', 'show': 1}, {'title': '缴费期限', 'key': '', 'content': '趸交', 'show': 1}, {'title': '保险期限', 'key': '', 'content': '保终身', 'show': 1}, {'title': '每期缴费金额', 'key': '', 'content': '', 'show': 1}, {'title': '产品类型', 'key': '', 'content': '万能型', 'show': 1}, {'title': '缴费频次', 'key': '', 'content': '趸', 'show': 1}, {'title': '首年保费总计', 'key': '', 'content': '100.00', 'show': 1}, {'title': '保费', 'key': '', 'content': '100.00', 'show': 1}, {'title': '被保人姓名', 'key': '', 'content': '天津测试', 'show': 1}, {'title': '被保人性别', 'key': '', 'content': '男', 'show': 1}, {'title': '被保人尊称', 'key': '', 'content': '先生', 'show': 1}, {'title': '被保人出生日期', 'key': '', 'content': '1962-06-01', 'show': 1}, {'title': '被保人年龄', 'key': '', 'content': '60', 'show': 1}, {'title': '被保人职业', 'key': '', 'content': '党政机关、企事业单位负责人和行政管理人员', 'show': 1}, {'title': '被保人证件类型', 'key': '', 'content': '身份证', 'show': 1}, {'title': '被保人证件号码', 'key': '', 'content': '120101196206010017', 'show': 1}, {'title': '被保人电话号码', 'key': '', 'content': '15236547788', 'show': 1}, {'title': '被保人有效通讯地址', 'key': '', 'content': '天津天津市和平233水电费规范化234', 'show': 1}, {'title': '被保人与投保人关系', 'key': '', 'content': '本人', 'show': 1}], 'show': 0}]}}
75 2022-09-19 17:18:50,872 - root - INFO - 断言处理结束!!!
76 2022-09-19 17:18:50,909 - root - INFO - 响应信息存储完毕!!!
77 2022-09-19 17:18:50,910 - root - INFO - ***************【扫码入件】接口测试结束***************
78 2022-09-19 17:18:50,911 - root - INFO - ***************【创建订单】接口测试开始***************
79 2022-09-19 17:18:50,911 - root - INFO - 接口测试用例为:{'id': 4.0, 'depend_id': 3.0, 'positive_case': '是', 'desc': '创建订单', 'uri': '/cl/order/add', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "taskId": "#3.taskId",\n "orderSource": "#3.orderSource",\n "systemSource": "#3.systemSource"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
80 2022-09-19 17:18:50,912 - root - INFO - 需要替换的变量信息为:['#2.token']
81 2022-09-19 17:18:50,913 - root - INFO - 可变参数的信息为:{'#2.token': 'b30ff875522e48358d79833deba738e0'}
82 2022-09-19 17:18:50,914 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'b30ff875522e48358d79833deba738e0'}
83 2022-09-19 17:18:50,914 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': 'b30ff875522e48358d79833deba738e0'}
84 2022-09-19 17:18:50,915 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
85 2022-09-19 17:18:50,916 - root - INFO - 可变参数的信息为:{'#3.taskId': '93a049a132b54a17a6e7b9e4227f533e', '#3.orderSource': 1, '#3.systemSource': ''}
86 2022-09-19 17:18:50,917 - root - INFO - 可变参数替换完毕:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
87 2022-09-19 17:18:50,917 - root - INFO - 请求参数为:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
88 2022-09-19 17:18:51,410 - root - INFO - 接口测试结果为:{'code': 2969, 'msg': '话术未上架', 'success': False, 'result': None}
1 2022-09-26 10:59:40,251 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2 2022-09-26 10:59:40,254 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
3 2022-09-26 11:00:14,730 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
4 2022-09-26 11:00:14,732 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
5 2022-09-26 11:00:21,456 - root - INFO - ***************【查询表单配置】接口测试开始***************
6 2022-09-26 11:00:21,457 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '是', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
7 2022-09-26 11:00:21,458 - root - INFO - 请求头为:
8 2022-09-26 11:00:21,458 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
9 2022-09-26 11:00:21,579 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/520ba7b14fdb46399bad7a667cab20b8.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/ede6445cf3dc44f4a7292c7250c18c14.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/6fca88ed2e6b4ffe8104638cb18ee343.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/2d909e5db39145d2a202485f18d62335.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
10 2022-09-26 11:00:21,579 - root - INFO - 断言处理结束!!!
11 2022-09-26 11:00:21,582 - root - INFO - 响应信息存储完毕!!!
12 2022-09-26 11:00:21,583 - root - INFO - ***************【查询表单配置】接口测试结束***************
13 2022-09-26 11:00:21,583 - root - INFO - ***************【APP登录】接口测试开始***************
14 2022-09-26 11:00:21,583 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 1.0, 'positive_case': '是', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"}', 'params': '{"type": 1,"platformType": "1","md5": "#1.md5","username": "1200002681","password": "12345678"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
15 2022-09-26 11:00:21,583 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
16 2022-09-26 11:00:21,584 - root - INFO - 需要替换的变量信息为:['#1.md5']
17 2022-09-26 11:00:21,584 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
18 2022-09-26 11:00:21,584 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
19 2022-09-26 11:00:21,584 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
20 2022-09-26 11:00:22,038 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': '0df8e6d6406447728c0d463b887d3ba7', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
21 2022-09-26 11:00:22,038 - root - INFO - 断言处理结束!!!
22 2022-09-26 11:00:22,040 - root - INFO - 响应信息存储完毕!!!
23 2022-09-26 11:00:22,040 - root - INFO - ***************【APP登录】接口测试结束***************
24 2022-09-26 11:00:22,041 - root - INFO - ***************【扫码入件】接口测试开始***************
25 2022-09-26 11:00:22,041 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '是', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "orderSource": "1",\n "data": "{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":1662536957045,\\"sysType\\":\\"1\\"}"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
26 2022-09-26 11:00:22,041 - root - INFO - 需要替换的变量信息为:['#2.token']
27 2022-09-26 11:00:22,041 - root - INFO - 可变参数的信息为:{'#2.token': '0df8e6d6406447728c0d463b887d3ba7'}
28 2022-09-26 11:00:22,042 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '0df8e6d6406447728c0d463b887d3ba7'}
29 2022-09-26 11:00:22,042 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '0df8e6d6406447728c0d463b887d3ba7'}
30 2022-09-26 11:00:22,042 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
31 2022-09-26 11:00:22,898 - root - INFO - 接口测试结果为:{'code': -5, 'msg': '订单返回数据状态异常了', 'success': False, 'result': None}
32 2022-09-26 11:00:22,905 - root - INFO - ***************【创建订单】接口测试开始***************
33 2022-09-26 11:00:22,905 - root - INFO - 接口测试用例为:{'id': 4.0, 'depend_id': 3.0, 'positive_case': '是', 'desc': '创建订单', 'uri': '/cl/order/add', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "taskId": "#3.taskId",\n "orderSource": "#3.orderSource",\n "systemSource": "#3.systemSource"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
34 2022-09-26 11:00:22,906 - root - INFO - 需要替换的变量信息为:['#2.token']
35 2022-09-26 11:00:22,907 - root - INFO - 可变参数的信息为:{'#2.token': '0df8e6d6406447728c0d463b887d3ba7'}
36 2022-09-26 11:00:22,907 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '0df8e6d6406447728c0d463b887d3ba7'}
37 2022-09-26 11:00:22,908 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '0df8e6d6406447728c0d463b887d3ba7'}
38 2022-09-26 11:00:22,908 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
39 2022-09-26 11:00:22,909 - root - INFO - 可变参数的信息为:{'#3.taskId': '93a049a132b54a17a6e7b9e4227f533e', '#3.orderSource': 1, '#3.systemSource': ''}
40 2022-09-26 11:00:22,909 - root - INFO - 可变参数替换完毕:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
41 2022-09-26 11:00:22,910 - root - INFO - 请求参数为:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
42 2022-09-26 11:00:23,311 - root - INFO - 接口测试结果为:{'code': 2969, 'msg': '话术未上架', 'success': False, 'result': None}
43 2022-09-26 14:27:02,027 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
44 2022-09-26 14:27:02,030 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
45 2022-09-26 14:27:02,303 - root - INFO - ***************【查询表单配置】接口测试开始***************
46 2022-09-26 14:27:02,303 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '是', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
47 2022-09-26 14:27:02,304 - root - INFO - 请求头为:
48 2022-09-26 14:27:02,304 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
49 2022-09-26 14:27:02,482 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/520ba7b14fdb46399bad7a667cab20b8.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/ede6445cf3dc44f4a7292c7250c18c14.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/6fca88ed2e6b4ffe8104638cb18ee343.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://product-component-dev.oss-cn-beijing.aliyuncs.com/product-component-dev/image/appimage/2d909e5db39145d2a202485f18d62335.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
50 2022-09-26 14:27:02,483 - root - INFO - 断言处理结束!!!
51 2022-09-26 14:27:02,487 - root - INFO - 响应信息存储完毕!!!
52 2022-09-26 14:27:02,487 - root - INFO - ***************【查询表单配置】接口测试结束***************
53 2022-09-26 14:27:02,487 - root - INFO - ***************【APP登录】接口测试开始***************
54 2022-09-26 14:27:02,488 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 1.0, 'positive_case': '是', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"}', 'params': '{"type": 1,"platformType": "1","md5": "#1.md5","username": "1200002681","password": "12345678"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
55 2022-09-26 14:27:02,488 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
56 2022-09-26 14:27:02,488 - root - INFO - 需要替换的变量信息为:['#1.md5']
57 2022-09-26 14:27:02,488 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
58 2022-09-26 14:27:02,488 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
59 2022-09-26 14:27:02,489 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
60 2022-09-26 14:27:03,283 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': '04966933a44e4e8d87f7b009708dd810', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
61 2022-09-26 14:27:03,284 - root - INFO - 断言处理结束!!!
62 2022-09-26 14:27:03,285 - root - INFO - 响应信息存储完毕!!!
63 2022-09-26 14:27:03,285 - root - INFO - ***************【APP登录】接口测试结束***************
64 2022-09-26 14:27:03,285 - root - INFO - ***************【扫码入件】接口测试开始***************
65 2022-09-26 14:27:03,286 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '是', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "orderSource": "1",\n"data":"{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":1662536957045,\\"sysType\\":\\"1\\"}"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
66 2022-09-26 14:27:03,286 - root - INFO - 需要替换的变量信息为:['#2.token']
67 2022-09-26 14:27:03,287 - root - INFO - 可变参数的信息为:{'#2.token': '04966933a44e4e8d87f7b009708dd810'}
68 2022-09-26 14:27:03,287 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '04966933a44e4e8d87f7b009708dd810'}
69 2022-09-26 14:27:03,287 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '04966933a44e4e8d87f7b009708dd810'}
70 2022-09-26 14:27:03,288 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
71 2022-09-26 14:27:03,437 - root - INFO - 接口测试结果为:{'code': -5, 'msg': '订单返回数据状态异常了', 'success': False, 'result': None}
72 2022-09-26 14:27:03,445 - root - INFO - ***************【创建订单】接口测试开始***************
73 2022-09-26 14:27:03,445 - root - INFO - 接口测试用例为:{'id': 4.0, 'depend_id': 3.0, 'positive_case': '是', 'desc': '创建订单', 'uri': '/cl/order/add', 'method': 'POST', 'headers': '{"Content-Type": "application/json","X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592","X-Auth-Token":"#2.token"}', 'params': '{\n "taskId": "#3.taskId",\n "orderSource": "#3.orderSource",\n "systemSource": "#3.systemSource"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
74 2022-09-26 14:27:03,445 - root - INFO - 需要替换的变量信息为:['#2.token']
75 2022-09-26 14:27:03,446 - root - INFO - 可变参数的信息为:{'#2.token': '04966933a44e4e8d87f7b009708dd810'}
76 2022-09-26 14:27:03,447 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '04966933a44e4e8d87f7b009708dd810'}
77 2022-09-26 14:27:03,447 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '04966933a44e4e8d87f7b009708dd810'}
78 2022-09-26 14:27:03,447 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
79 2022-09-26 14:27:03,448 - root - INFO - 可变参数的信息为:{'#3.taskId': '93a049a132b54a17a6e7b9e4227f533e', '#3.orderSource': 1, '#3.systemSource': ''}
80 2022-09-26 14:27:03,449 - root - INFO - 可变参数替换完毕:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
81 2022-09-26 14:27:03,449 - root - INFO - 请求参数为:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
82 2022-09-26 14:27:03,828 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'orderRecordId': 8152, 'exist': 1, 'customerName': '天津测试', 'productName': '光大永明增利宝(庆典版)终身寿险(万能型)', 'orderId': 'M1201F0002454A88', 'serialNo': '', 'createTime': '2022-09-26 14:27:05', 'orderNoType': 1, 'appntAge': '60', 'supportRemote': 1, 'systemType': 3, 'applicantRemoteFlag': 1, 'manyInsuresFlag': 0, 'samePerson': 1, 'samePersonForInsured': 2, 'samePersonForAppnt': 2, 'sameCameraCount': 2, 'positioning': 1, 'area': 2, 'range': '天津市-天津市', 'policyNo': '', 'orderType': 1, 'selfNo': '', 'systemSource': '', 'orderSource': 1, 'quotaType': '', 'confirmReplaceOrder': True, 'orderMetaChanged': 0}}
83 2022-09-26 14:27:03,829 - root - INFO - 断言处理结束!!!
84 2022-09-26 14:27:03,829 - root - INFO - ***************【创建订单】接口测试结束***************
1 2022-10-17 16:34:00,037 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2 2022-10-17 16:34:00,039 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
3 2022-10-17 16:34:16,574 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
4 2022-10-17 16:34:16,574 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
5 2022-10-17 16:35:51,541 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
6 2022-10-17 16:35:51,543 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
7 2022-10-17 16:37:04,101 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
8 2022-10-17 16:37:04,102 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
9 2022-10-17 18:09:44,684 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
10 2022-10-17 18:09:44,686 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
11 2022-10-17 18:11:42,848 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
12 2022-10-17 18:11:42,849 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
13 2022-10-17 18:58:25,502 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
14 2022-10-17 18:58:25,504 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
This diff could not be displayed because it is too large.
1 2022-10-19 10:08:54,502 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2 2022-10-19 10:08:54,503 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
3 2022-10-19 10:08:54,721 - root - INFO - 订单类型是一主一附
4 2022-10-19 10:19:48,291 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
5 2022-10-19 10:19:48,293 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
6 2022-10-19 10:19:48,484 - root - INFO - ***************【APP更新】接口测试开始***************
7 2022-10-19 10:19:48,484 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': 'APP更新', 'uri': '/cl/system/app/version/update', 'method': 'POST', 'headers': '', 'params': '{\n "deviceType": "IOS",\n "deviceId": "6933BFA3-8F08-4A50-AF05-22ABEDC512F7"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
8 2022-10-19 10:19:48,485 - root - INFO - 请求头为:
9 2022-10-19 10:19:48,485 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
10 2022-10-19 10:19:48,637 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'deviceType': 'IOS', 'versionName': '1.0.0', 'fileUrl': '', 'fileMd5': '', 'asrUrl': '', 'asrMd5': '', 'aiUrl': '', 'aiMd5': '', 'description': '更新一下', 'updateTime': 1574071237000}}
11 2022-10-19 10:19:48,638 - root - INFO - 断言处理结束!!!
12 2022-10-19 10:19:48,638 - root - INFO - ***************【APP更新】接口测试结束***************
13 2022-10-19 10:19:48,639 - root - INFO - ***************【查询表单配置】接口测试开始***************
14 2022-10-19 10:19:48,640 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
15 2022-10-19 10:19:48,641 - root - INFO - 请求头为:
16 2022-10-19 10:19:48,641 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
17 2022-10-19 10:19:48,727 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/874084e40b2548dc864bf5146fe70f8c.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/7e8d76b696b8437a87eb33a7e855c8d4.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/70c6e11257674f29aa88fa5af7eaf7a2.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/c056494d9a284685a5ff635a9973fde1.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2948, 'type': 'privacy_agreement', 'title': '光明永明人寿隐私政策', 'key': 'privacy_agreement', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/82bbceb5f0534c96bb2201d02c257d4d.html', 'backgroundUrl': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/93decf77c17d4b4e8c5a25b095612ed9.png', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 100, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
18 2022-10-19 10:19:48,728 - root - INFO - 断言处理结束!!!
19 2022-10-19 10:19:48,729 - root - INFO - ***************【查询表单配置】接口测试结束***************
20 2022-10-19 10:19:48,730 - root - INFO - ***************【APP登录】接口测试开始***************
21 2022-10-19 10:19:48,731 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"\n}', 'params': '{\n"type": 1,\n"platformType": "1",\n"md5": "#2.md5",\n"username": "1200002681",\n"password": "12345678"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
22 2022-10-19 10:19:48,732 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
23 2022-10-19 10:19:48,733 - root - INFO - 需要替换的变量信息为:['#2.md5']
24 2022-10-19 10:19:48,736 - root - INFO - 请求参数为:{'code': 1, 'result': '参数格式异常,请检查'}
25 2022-10-19 10:19:48,859 - root - INFO - 接口测试结果为:{'code': 2910, 'msg': '没有权限', 'success': False, 'result': None}
26 2022-10-19 10:19:48,866 - root - INFO - ***************【扫码入件】接口测试开始***************
27 2022-10-19 10:19:48,867 - root - INFO - 接口测试用例为:{'id': 5.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592",\n"X-Auth-Token": "#3.token"\n}', 'params': '{\n "orderSource": "1",\n"data":"{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":16625369570458152,\\"sysType\\":\\"1\\"}"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
28 2022-10-19 10:19:48,868 - root - INFO - 需要替换的变量信息为:['#3.token']
29 2022-10-19 10:19:48,868 - root - INFO - 请求头为:{'code': 1, 'result': '参数格式异常,请检查'}
30 2022-10-19 10:19:48,868 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
31 2022-10-19 10:19:48,869 - root - INFO - 接口测试结果为:{'code': 1, 'result': "请求异常:Header part (1) from {'code': 1} must be of type str or bytes, not <class 'int'>"}
32 2022-10-19 10:43:20,767 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
33 2022-10-19 10:43:20,769 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
34 2022-10-19 10:43:20,938 - root - INFO - ***************【APP更新】接口测试开始***************
35 2022-10-19 10:43:20,939 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': 'APP更新', 'uri': '/cl/system/app/version/update', 'method': 'POST', 'headers': '', 'params': '{\n "deviceType": "IOS",\n "deviceId": "6933BFA3-8F08-4A50-AF05-22ABEDC512F7"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
36 2022-10-19 10:43:20,939 - root - INFO - 请求头为:
37 2022-10-19 10:43:20,939 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
38 2022-10-19 10:43:21,158 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'deviceType': 'IOS', 'versionName': '1.0.0', 'fileUrl': '', 'fileMd5': '', 'asrUrl': '', 'asrMd5': '', 'aiUrl': '', 'aiMd5': '', 'description': '更新一下', 'updateTime': 1574071237000}}
39 2022-10-19 10:43:21,159 - root - INFO - 断言处理结束!!!
40 2022-10-19 10:43:21,160 - root - INFO - ***************【APP更新】接口测试结束***************
41 2022-10-19 10:43:21,161 - root - INFO - ***************【查询表单配置】接口测试开始***************
42 2022-10-19 10:43:21,162 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
43 2022-10-19 10:43:21,162 - root - INFO - 请求头为:
44 2022-10-19 10:43:21,163 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
45 2022-10-19 10:43:21,247 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/874084e40b2548dc864bf5146fe70f8c.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/7e8d76b696b8437a87eb33a7e855c8d4.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/70c6e11257674f29aa88fa5af7eaf7a2.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/c056494d9a284685a5ff635a9973fde1.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2948, 'type': 'privacy_agreement', 'title': '光明永明人寿隐私政策', 'key': 'privacy_agreement', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/82bbceb5f0534c96bb2201d02c257d4d.html', 'backgroundUrl': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/93decf77c17d4b4e8c5a25b095612ed9.png', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 100, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
46 2022-10-19 10:43:21,248 - root - INFO - 断言处理结束!!!
47 2022-10-19 10:43:21,248 - root - INFO - ***************【查询表单配置】接口测试结束***************
48 2022-10-19 10:43:21,250 - root - INFO - ***************【APP登录】接口测试开始***************
49 2022-10-19 10:43:21,250 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"\n}', 'params': '{\n"type": 1,\n"platformType": "1",\n"md5": "#2.md5",\n"username": "1200002681",\n"password": "12345678"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
50 2022-10-19 10:43:21,251 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
51 2022-10-19 10:43:21,252 - root - INFO - 需要替换的变量信息为:['#2.md5']
52 2022-10-19 10:43:21,254 - root - INFO - 请求参数为:{'code': 1, 'result': '参数替换异常,请联系管理员检查'}
53 2022-10-19 10:43:21,766 - root - INFO - 接口测试结果为:{'code': 2910, 'msg': '没有权限', 'success': False, 'result': None}
54 2022-10-19 10:43:21,771 - root - INFO - ***************【扫码入件】接口测试开始***************
55 2022-10-19 10:43:21,772 - root - INFO - 接口测试用例为:{'id': 5.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592",\n"X-Auth-Token": "#3.token"\n}', 'params': '{\n "orderSource": "1",\n"data":"{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":16625369570458152,\\"sysType\\":\\"1\\"}"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
56 2022-10-19 10:43:21,772 - root - INFO - 需要替换的变量信息为:['#3.token']
57 2022-10-19 10:43:21,773 - root - INFO - 请求头为:{'code': 1, 'result': '参数替换异常,请联系管理员检查'}
58 2022-10-19 10:43:21,773 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
59 2022-10-19 10:43:21,774 - root - INFO - 接口测试结果为:{'code': 1, 'result': "请求异常:Header part (1) from {'code': 1} must be of type str or bytes, not <class 'int'>"}
60 2022-10-19 10:45:43,470 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
61 2022-10-19 10:45:43,470 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
62 2022-10-19 10:45:43,581 - root - INFO - ***************【APP更新】接口测试开始***************
63 2022-10-19 10:45:43,581 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': 'APP更新', 'uri': '/cl/system/app/version/update', 'method': 'POST', 'headers': '', 'params': '{\n "deviceType": "IOS",\n "deviceId": "6933BFA3-8F08-4A50-AF05-22ABEDC512F7"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
64 2022-10-19 10:45:43,582 - root - INFO - 请求头为:
65 2022-10-19 10:45:43,582 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
66 2022-10-19 10:45:43,890 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'deviceType': 'IOS', 'versionName': '1.0.0', 'fileUrl': '', 'fileMd5': '', 'asrUrl': '', 'asrMd5': '', 'aiUrl': '', 'aiMd5': '', 'description': '更新一下', 'updateTime': 1574071237000}}
67 2022-10-19 10:45:43,891 - root - INFO - 断言处理结束!!!
68 2022-10-19 10:45:43,891 - root - INFO - ***************【APP更新】接口测试结束***************
69 2022-10-19 10:45:43,892 - root - INFO - ***************【查询表单配置】接口测试开始***************
70 2022-10-19 10:45:43,892 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
71 2022-10-19 10:45:43,892 - root - INFO - 请求头为:
72 2022-10-19 10:45:43,892 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
73 2022-10-19 10:45:43,967 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/874084e40b2548dc864bf5146fe70f8c.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/7e8d76b696b8437a87eb33a7e855c8d4.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/70c6e11257674f29aa88fa5af7eaf7a2.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/c056494d9a284685a5ff635a9973fde1.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2948, 'type': 'privacy_agreement', 'title': '光明永明人寿隐私政策', 'key': 'privacy_agreement', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/82bbceb5f0534c96bb2201d02c257d4d.html', 'backgroundUrl': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/93decf77c17d4b4e8c5a25b095612ed9.png', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 100, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
74 2022-10-19 10:45:43,968 - root - INFO - 断言处理结束!!!
75 2022-10-19 10:45:43,969 - root - INFO - 响应信息存储完毕!!!
76 2022-10-19 10:45:43,970 - root - INFO - ***************【查询表单配置】接口测试结束***************
77 2022-10-19 10:45:43,970 - root - INFO - ***************【APP登录】接口测试开始***************
78 2022-10-19 10:45:43,970 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"\n}', 'params': '{\n"type": 1,\n"platformType": "1",\n"md5": "#2.md5",\n"username": "1200002681",\n"password": "12345678"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
79 2022-10-19 10:45:43,970 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
80 2022-10-19 10:45:43,971 - root - INFO - 需要替换的变量信息为:['#2.md5']
81 2022-10-19 10:45:43,971 - root - INFO - 可变参数的信息为:{'#2.md5': '3ac6f138ccd7b855b371b2b705d0a877'}
82 2022-10-19 10:45:43,971 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
83 2022-10-19 10:45:43,971 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
84 2022-10-19 10:45:44,410 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': '8bd5c7724791466ea205eaa91ab77715', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
85 2022-10-19 10:45:44,411 - root - INFO - 断言处理结束!!!
86 2022-10-19 10:45:44,412 - root - INFO - 响应信息存储完毕!!!
87 2022-10-19 10:45:44,412 - root - INFO - ***************【APP登录】接口测试结束***************
88 2022-10-19 10:45:44,413 - root - INFO - ***************【扫码入件】接口测试开始***************
89 2022-10-19 10:45:44,414 - root - INFO - 接口测试用例为:{'id': 5.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592",\n"X-Auth-Token": "#3.token"\n}', 'params': '{\n "orderSource": "1",\n"data":"{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":16625369570458152,\\"sysType\\":\\"1\\"}"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
90 2022-10-19 10:45:44,415 - root - INFO - 需要替换的变量信息为:['#3.token']
91 2022-10-19 10:45:44,417 - root - INFO - 可变参数的信息为:{'#3.token': '8bd5c7724791466ea205eaa91ab77715'}
92 2022-10-19 10:45:44,417 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '8bd5c7724791466ea205eaa91ab77715'}
93 2022-10-19 10:45:44,418 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '8bd5c7724791466ea205eaa91ab77715'}
94 2022-10-19 10:45:44,419 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
95 2022-10-19 10:45:44,885 - root - INFO - 接口测试结果为:{'code': 1, 'result': '请求异常:Expecting value: line 1 column 1 (char 0)'}
96 2022-10-19 10:46:19,899 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
97 2022-10-19 10:46:19,900 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
98 2022-10-19 10:46:19,991 - root - INFO - ***************【APP更新】接口测试开始***************
99 2022-10-19 10:46:19,991 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': 'APP更新', 'uri': '/cl/system/app/version/update', 'method': 'POST', 'headers': '', 'params': '{\n "deviceType": "IOS",\n "deviceId": "6933BFA3-8F08-4A50-AF05-22ABEDC512F7"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
100 2022-10-19 10:46:19,992 - root - INFO - 请求头为:
101 2022-10-19 10:46:19,992 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
102 2022-10-19 10:46:20,085 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'deviceType': 'IOS', 'versionName': '1.0.0', 'fileUrl': '', 'fileMd5': '', 'asrUrl': '', 'asrMd5': '', 'aiUrl': '', 'aiMd5': '', 'description': '更新一下', 'updateTime': 1574071237000}}
103 2022-10-19 10:46:20,086 - root - INFO - 断言处理结束!!!
104 2022-10-19 10:46:20,086 - root - INFO - ***************【APP更新】接口测试结束***************
105 2022-10-19 10:46:20,087 - root - INFO - ***************【查询表单配置】接口测试开始***************
106 2022-10-19 10:46:20,088 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
107 2022-10-19 10:46:20,088 - root - INFO - 请求头为:
108 2022-10-19 10:46:20,089 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
109 2022-10-19 10:46:20,211 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/874084e40b2548dc864bf5146fe70f8c.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/7e8d76b696b8437a87eb33a7e855c8d4.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/70c6e11257674f29aa88fa5af7eaf7a2.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/c056494d9a284685a5ff635a9973fde1.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2948, 'type': 'privacy_agreement', 'title': '光明永明人寿隐私政策', 'key': 'privacy_agreement', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/82bbceb5f0534c96bb2201d02c257d4d.html', 'backgroundUrl': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/93decf77c17d4b4e8c5a25b095612ed9.png', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 100, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
110 2022-10-19 10:46:20,212 - root - INFO - 断言处理结束!!!
111 2022-10-19 10:46:20,214 - root - INFO - 响应信息存储完毕!!!
112 2022-10-19 10:46:20,215 - root - INFO - ***************【查询表单配置】接口测试结束***************
113 2022-10-19 10:46:20,215 - root - INFO - ***************【APP登录】接口测试开始***************
114 2022-10-19 10:46:20,216 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"\n}', 'params': '{\n"type": 1,\n"platformType": "1",\n"md5": "#2.md5",\n"username": "1200002681",\n"password": "12345678"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
115 2022-10-19 10:46:20,217 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
116 2022-10-19 10:46:20,217 - root - INFO - 需要替换的变量信息为:['#2.md5']
117 2022-10-19 10:46:20,218 - root - INFO - 可变参数的信息为:{'#2.md5': '3ac6f138ccd7b855b371b2b705d0a877'}
118 2022-10-19 10:46:20,219 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
119 2022-10-19 10:46:20,219 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
120 2022-10-19 10:46:20,889 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': '756b6a3b9b704fdab262dbb11aff30e0', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
121 2022-10-19 10:46:20,890 - root - INFO - 断言处理结束!!!
122 2022-10-19 10:46:20,891 - root - INFO - 响应信息存储完毕!!!
123 2022-10-19 10:46:20,891 - root - INFO - ***************【APP登录】接口测试结束***************
124 2022-10-19 10:46:20,892 - root - INFO - ***************【扫码入件】接口测试开始***************
125 2022-10-19 10:46:20,892 - root - INFO - 接口测试用例为:{'id': 5.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592",\n"X-Auth-Token": "#3.token"\n}', 'params': '{\n "orderSource": "1",\n"data":"{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":16625369570458152,\\"sysType\\":\\"1\\"}"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
126 2022-10-19 10:46:20,893 - root - INFO - 需要替换的变量信息为:['#3.token']
127 2022-10-19 10:46:20,894 - root - INFO - 可变参数的信息为:{'#3.token': '756b6a3b9b704fdab262dbb11aff30e0'}
128 2022-10-19 10:46:20,895 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '756b6a3b9b704fdab262dbb11aff30e0'}
129 2022-10-19 10:46:20,895 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '756b6a3b9b704fdab262dbb11aff30e0'}
130 2022-10-19 10:46:20,895 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
131 2022-10-19 10:46:21,213 - root - INFO - 接口测试结果为:{'code': 1, 'result': '请求异常:Expecting value: line 1 column 1 (char 0)'}
132 2022-10-19 10:50:19,921 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
133 2022-10-19 10:50:19,922 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
134 2022-10-19 10:50:20,111 - root - INFO - 订单类型是一主一附
135 2022-10-19 10:50:28,458 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
136 2022-10-19 10:50:28,459 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
137 2022-10-19 10:50:28,570 - root - INFO - 订单类型是一主一附
138 2022-10-19 21:42:18,089 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
139 2022-10-19 21:42:18,091 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
140 2022-10-19 21:42:18,437 - root - INFO - 订单类型是一主一附
141 2022-10-19 21:43:01,030 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
142 2022-10-19 21:43:01,031 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
143 2022-10-19 21:43:01,192 - root - INFO - 订单类型是一主一附
144 2022-10-19 21:46:51,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
145 2022-10-19 21:46:51,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
146 2022-10-19 21:46:51,587 - root - INFO - 订单类型是一主一附
147 2022-10-19 21:47:08,809 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
148 2022-10-19 21:47:08,811 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
149 2022-10-19 21:47:08,968 - root - INFO - 订单类型是一主一附
150 2022-10-19 21:47:14,615 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
151 2022-10-19 21:47:14,616 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
152 2022-10-19 21:47:15,239 - root - INFO - 订单类型是一主一附
153 2022-10-19 21:50:49,152 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
154 2022-10-19 21:50:49,154 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
155 2022-10-19 21:50:49,513 - root - INFO - 订单类型是一主一附
156 2022-10-19 21:51:40,034 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
157 2022-10-19 21:51:40,036 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
158 2022-10-19 21:51:40,538 - root - INFO - 订单类型是一主一附
159 2022-10-19 21:52:45,945 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
160 2022-10-19 21:52:45,947 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
161 2022-10-19 21:52:46,494 - root - INFO - 订单类型是一主一附
162 2022-10-19 21:53:05,606 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
163 2022-10-19 21:53:05,607 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
164 2022-10-19 21:53:05,788 - root - INFO - 订单类型是一主一附
165 2022-10-19 21:53:18,546 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
166 2022-10-19 21:53:18,547 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
167 2022-10-19 21:53:18,696 - root - INFO - 订单类型是一主一附
168 2022-10-19 21:53:57,529 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
169 2022-10-19 21:53:57,529 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
170 2022-10-19 21:53:57,704 - root - INFO - 订单类型是一主一附
171 2022-10-19 21:55:59,036 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
172 2022-10-19 21:55:59,037 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
173 2022-10-19 21:55:59,211 - root - INFO - 订单类型是一主一附
174 2022-10-19 21:57:28,563 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
175 2022-10-19 21:57:28,564 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
176 2022-10-19 21:57:28,732 - root - INFO - 订单类型是一主一附
177 2022-10-19 21:57:37,803 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
178 2022-10-19 21:57:37,803 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
179 2022-10-19 21:57:37,970 - root - INFO - ***************【APP更新】接口测试开始***************
180 2022-10-19 21:57:37,971 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': 'APP更新', 'uri': '/cl/system/app/version/update', 'method': 'POST', 'headers': '', 'params': '{\n "deviceType": "IOS",\n "deviceId": "6933BFA3-8F08-4A50-AF05-22ABEDC512F7"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': ''}
181 2022-10-19 21:57:37,971 - root - INFO - 请求头为:
182 2022-10-19 21:57:37,972 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
183 2022-10-19 22:02:37,815 - root - INFO - 接口测试结果为:{'code': 1, 'result': "请求异常:('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))"}
184 2022-10-19 22:02:37,824 - root - INFO - ***************【查询表单配置】接口测试开始***************
185 2022-10-19 22:02:37,825 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'formId,md5'}
186 2022-10-19 22:02:37,826 - root - INFO - 请求头为:
187 2022-10-19 22:02:37,827 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
188 2022-10-19 22:02:38,084 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/874084e40b2548dc864bf5146fe70f8c.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/7e8d76b696b8437a87eb33a7e855c8d4.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/70c6e11257674f29aa88fa5af7eaf7a2.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/c056494d9a284685a5ff635a9973fde1.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2948, 'type': 'privacy_agreement', 'title': '光明永明人寿隐私政策', 'key': 'privacy_agreement', 'url': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/82bbceb5f0534c96bb2201d02c257d4d.html', 'backgroundUrl': 'https://al-s-slapp-01-oss.oss-cn-shanghai.aliyuncs.com/al-s-slapp-01-oss/image/appimage/93decf77c17d4b4e8c5a25b095612ed9.png', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 100, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
189 2022-10-19 22:02:38,085 - root - INFO - 断言处理结束!!!
190 2022-10-19 22:02:38,088 - root - INFO - 响应信息存储完毕!!!
191 2022-10-19 22:02:38,089 - root - INFO - ***************【查询表单配置】接口测试结束***************
192 2022-10-19 22:02:38,090 - root - INFO - ***************【APP登录】接口测试开始***************
193 2022-10-19 22:02:38,091 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"\n}', 'params': '{\n"type": 1,\n"platformType": "1",\n"md5": "#2.md5",\n"username": "1200002681",\n"password": "12345678"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
194 2022-10-19 22:02:38,092 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
195 2022-10-19 22:02:38,092 - root - INFO - 需要替换的变量信息为:['#2.md5']
196 2022-10-19 22:02:38,093 - root - INFO - 可变参数的信息为:{'#2.md5': '3ac6f138ccd7b855b371b2b705d0a877'}
197 2022-10-19 22:02:38,094 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
198 2022-10-19 22:02:38,095 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
199 2022-10-19 22:02:38,693 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '天津测试', 'token': '6e2110860a7f4096aed607caa8c80514', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 14, 'branchName': '天津分公司', 'subBranchId': 83, 'subBranchName': '天津', 'directlyAgencyName': '天津', 'directlyAgencyId': 83, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': '', 'licensed': ''}}
200 2022-10-19 22:02:38,694 - root - INFO - 断言处理结束!!!
201 2022-10-19 22:02:38,696 - root - INFO - 响应信息存储完毕!!!
202 2022-10-19 22:02:38,697 - root - INFO - ***************【APP登录】接口测试结束***************
203 2022-10-19 22:02:38,698 - root - INFO - ***************【扫码入件】接口测试开始***************
204 2022-10-19 22:02:38,698 - root - INFO - 接口测试用例为:{'id': 5.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': '扫码入件', 'uri': '/cl/order/or/code', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592",\n"X-Auth-Token": "#3.token"\n}', 'params': '{\n "orderSource": "1",\n"data":"{\\"prtNo\\":\\"M1201F0002454A88\\",\\"orderCode\\":\\"539b4dd2177b41f890cd8b6a5038386f\\",\\"scanTime\\":16625369570458152,\\"sysType\\":\\"1\\"}"}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'taskId,orderSource,systemSource'}
205 2022-10-19 22:02:38,699 - root - INFO - 需要替换的变量信息为:['#3.token']
206 2022-10-19 22:02:38,700 - root - INFO - 可变参数的信息为:{'#3.token': '6e2110860a7f4096aed607caa8c80514'}
207 2022-10-19 22:02:38,700 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '6e2110860a7f4096aed607caa8c80514'}
208 2022-10-19 22:02:38,701 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '6e2110860a7f4096aed607caa8c80514'}
209 2022-10-19 22:02:38,701 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
210 2022-10-19 22:02:40,161 - root - INFO - 接口测试结果为:{'code': 1, 'result': '请求异常:Expecting value: line 1 column 1 (char 0)'}
211 2022-10-19 22:03:59,438 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
212 2022-10-19 22:03:59,439 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
213 2022-10-19 22:03:59,627 - root - INFO - 订单类型是一主一附
1 2022-10-20 10:22:51,785 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2 2022-10-20 10:22:51,786 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
3 2022-10-20 10:22:52,059 - root - INFO - 订单类型是一主一附
4 2022-10-20 10:41:37,432 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
5 2022-10-20 10:41:37,433 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
6 2022-10-20 10:41:37,681 - root - INFO - 订单类型是一主一附
7 2022-10-20 10:48:40,781 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
8 2022-10-20 10:48:40,783 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
9 2022-10-20 10:48:40,978 - root - INFO - 订单类型是一主一附
10 2022-10-20 13:01:55,090 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
11 2022-10-20 13:01:55,092 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
12 2022-10-20 13:47:33,348 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
13 2022-10-20 13:47:33,350 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
14 2022-10-20 14:08:17,831 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
15 2022-10-20 14:08:17,833 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
16 2022-10-20 14:09:13,389 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
17 2022-10-20 14:09:13,391 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
18 2022-10-20 14:09:20,772 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
19 2022-10-20 14:09:20,773 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
20 2022-10-20 14:09:40,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
21 2022-10-20 14:09:40,455 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
22 2022-10-20 14:21:19,988 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
23 2022-10-20 14:21:19,990 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
24 2022-10-20 14:28:03,397 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
25 2022-10-20 14:28:03,399 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
26 2022-10-20 14:28:03,498 - root - ERROR - 测试用例打开失败,原因是:'int' object is not callable
27 2022-10-20 14:30:12,580 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
28 2022-10-20 14:30:12,582 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
29 2022-10-20 14:30:12,687 - root - ERROR - 测试用例打开失败,原因是:'Book' object has no attribute 'col_values'
30 2022-10-20 15:05:26,281 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
31 2022-10-20 15:05:26,283 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
32 2022-10-20 15:05:49,428 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
33 2022-10-20 15:05:49,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
34 2022-10-20 15:17:57,188 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
35 2022-10-20 15:17:57,190 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
36 2022-10-20 15:18:15,697 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
37 2022-10-20 15:18:15,699 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
38 2022-10-20 15:23:29,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
39 2022-10-20 15:23:29,455 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
40 2022-10-20 15:23:29,562 - root - ERROR - 测试用例打开失败,原因是:No sheet named <'Sheet5'>
41 2022-10-20 15:23:43,162 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
42 2022-10-20 15:23:43,163 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
43 2022-10-20 15:24:55,934 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
44 2022-10-20 15:24:55,935 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
45 2022-10-20 15:25:29,425 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
46 2022-10-20 15:25:29,426 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
47 2022-10-20 16:14:32,617 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
48 2022-10-20 16:14:32,619 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
49 2022-10-20 16:14:47,537 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
50 2022-10-20 16:14:47,537 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
51 2022-10-20 16:33:37,277 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
52 2022-10-20 16:33:37,277 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
53 2022-10-20 16:53:39,298 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
54 2022-10-20 16:53:39,299 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
55 2022-10-20 16:59:38,112 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
56 2022-10-20 16:59:38,113 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
57 2022-10-20 17:00:26,742 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
58 2022-10-20 17:00:26,742 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
59 2022-10-20 17:08:35,948 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
60 2022-10-20 17:08:35,949 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
61 2022-10-20 17:19:53,832 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
62 2022-10-20 17:19:53,833 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
63 2022-10-20 17:20:02,614 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
64 2022-10-20 17:20:02,615 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
65 2022-10-20 17:20:39,173 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
66 2022-10-20 17:20:39,174 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
67 2022-10-20 17:34:01,102 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
68 2022-10-20 17:34:01,104 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
69 2022-10-20 17:34:08,847 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
70 2022-10-20 17:34:08,848 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
71 2022-10-20 17:39:56,355 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
72 2022-10-20 17:39:56,356 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
73 2022-10-20 17:40:24,745 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
74 2022-10-20 17:40:24,746 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
75 2022-10-20 17:40:35,450 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
76 2022-10-20 17:40:35,451 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
77 2022-10-20 17:40:39,180 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
78 2022-10-20 17:40:39,182 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
79 2022-10-20 17:41:04,195 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
80 2022-10-20 17:41:04,196 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
81 2022-10-20 17:44:41,382 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
82 2022-10-20 17:44:41,402 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
83 2022-10-20 17:45:12,690 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
84 2022-10-20 17:45:12,691 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
85 2022-10-20 17:46:03,437 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
86 2022-10-20 17:46:03,437 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
87 2022-10-20 17:56:31,695 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
88 2022-10-20 17:56:31,697 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
89 2022-10-20 18:21:35,049 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
90 2022-10-20 18:21:35,051 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
91 2022-10-20 18:23:02,083 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
92 2022-10-20 18:23:02,084 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
93 2022-10-20 18:23:37,329 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
94 2022-10-20 18:23:37,330 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
95 2022-10-20 18:24:41,621 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
96 2022-10-20 18:24:41,621 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
97 2022-10-20 18:25:21,024 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
98 2022-10-20 18:25:21,024 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
99 2022-10-20 18:38:03,019 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
100 2022-10-20 18:38:03,021 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
101 2022-10-20 18:38:12,397 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
102 2022-10-20 18:38:12,397 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
103 2022-10-20 18:44:00,126 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
104 2022-10-20 18:44:00,126 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
105 2022-10-20 18:44:42,713 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
106 2022-10-20 18:44:42,714 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
107 2022-10-20 18:44:51,477 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
108 2022-10-20 18:44:51,478 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
109 2022-10-20 18:45:16,018 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
110 2022-10-20 18:45:16,018 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
111 2022-10-20 18:45:38,080 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
112 2022-10-20 18:45:38,080 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
113 2022-10-20 18:45:46,408 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
114 2022-10-20 18:45:46,409 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
115 2022-10-20 18:45:59,172 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
116 2022-10-20 18:45:59,173 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
117 2022-10-20 18:46:12,715 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
118 2022-10-20 18:46:12,716 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
119 2022-10-20 18:47:48,101 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
120 2022-10-20 18:47:48,101 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
121 2022-10-20 18:48:49,392 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
122 2022-10-20 18:48:49,393 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
123 2022-10-20 18:57:13,275 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
124 2022-10-20 18:57:13,275 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
125 2022-10-20 18:59:05,404 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
126 2022-10-20 18:59:05,405 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
127 2022-10-20 19:01:50,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
128 2022-10-20 19:01:50,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
129 2022-10-20 19:01:59,673 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
130 2022-10-20 19:01:59,673 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
131 2022-10-20 19:15:19,518 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
132 2022-10-20 19:15:19,519 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
133 2022-10-20 20:01:53,352 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
134 2022-10-20 20:01:53,353 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
135 2022-10-20 20:02:46,499 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
136 2022-10-20 20:02:46,499 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
137 2022-10-20 20:03:01,933 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
138 2022-10-20 20:03:01,934 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
139 2022-10-20 20:24:03,610 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
140 2022-10-20 20:24:03,611 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
141 2022-10-20 20:24:29,323 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
142 2022-10-20 20:24:29,324 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
143 2022-10-20 20:26:11,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
144 2022-10-20 20:26:11,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
145 2022-10-20 20:26:26,343 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
146 2022-10-20 20:26:26,344 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
147 2022-10-20 20:27:08,611 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
148 2022-10-20 20:27:08,612 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
149 2022-10-20 20:27:24,265 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
150 2022-10-20 20:27:24,266 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
151 2022-10-20 20:28:04,878 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
152 2022-10-20 20:28:04,879 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
153 2022-10-20 20:31:00,769 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
154 2022-10-20 20:31:00,770 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
155 2022-10-20 20:35:39,924 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
156 2022-10-20 20:35:39,925 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
157 2022-10-20 20:36:22,067 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
158 2022-10-20 20:36:22,068 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
159 2022-10-20 20:36:41,202 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
160 2022-10-20 20:36:41,202 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
161 2022-10-20 20:38:06,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
162 2022-10-20 20:38:06,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
163 2022-10-20 20:38:22,284 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
164 2022-10-20 20:38:22,285 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
165 2022-10-20 20:38:40,695 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
166 2022-10-20 20:38:40,696 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
167 2022-10-20 20:40:10,042 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
168 2022-10-20 20:40:10,043 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
169 2022-10-20 20:40:26,927 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
170 2022-10-20 20:40:26,929 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
171 2022-10-20 20:40:57,278 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
172 2022-10-20 20:40:57,279 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
173 2022-10-20 20:41:08,583 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
174 2022-10-20 20:41:08,584 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
175 2022-10-20 20:42:06,224 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
176 2022-10-20 20:42:06,224 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
177 2022-10-20 20:47:32,144 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
178 2022-10-20 20:47:32,145 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
179 2022-10-20 20:47:49,204 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
180 2022-10-20 20:47:49,205 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
181 2022-10-20 20:50:50,229 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
182 2022-10-20 20:50:50,229 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
183 2022-10-20 20:51:15,380 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
184 2022-10-20 20:51:15,381 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
185 2022-10-20 20:52:06,641 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
186 2022-10-20 20:52:06,642 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
187 2022-10-20 20:52:28,346 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
188 2022-10-20 20:52:28,347 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
189 2022-10-20 20:54:07,605 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
190 2022-10-20 20:54:07,606 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
191 2022-10-20 20:55:12,774 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
192 2022-10-20 20:55:12,775 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
193 2022-10-20 20:55:28,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
194 2022-10-20 20:55:28,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
195 2022-10-20 20:58:52,975 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
196 2022-10-20 20:58:52,975 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
197 2022-10-20 20:59:21,505 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
198 2022-10-20 20:59:21,506 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
199 2022-10-20 20:59:49,113 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
200 2022-10-20 20:59:49,114 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
201 2022-10-20 20:59:57,411 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
202 2022-10-20 20:59:57,412 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
203 2022-10-20 21:00:51,875 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
204 2022-10-20 21:00:51,875 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
205 2022-10-20 21:00:56,627 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
206 2022-10-20 21:00:56,628 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
207 2022-10-20 21:01:57,446 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
208 2022-10-20 21:01:57,446 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
209 2022-10-20 21:03:03,691 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
210 2022-10-20 21:03:03,692 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
211 2022-10-20 21:16:24,587 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
212 2022-10-20 21:16:24,589 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
213 2022-10-20 21:16:47,042 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
214 2022-10-20 21:16:47,044 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
215 2022-10-20 21:24:44,420 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
216 2022-10-20 21:24:44,421 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
217 2022-10-20 21:25:38,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
218 2022-10-20 21:25:38,430 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
219 2022-10-20 21:27:04,918 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
220 2022-10-20 21:27:04,919 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
221 2022-10-20 21:27:33,766 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
222 2022-10-20 21:27:33,766 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
223 2022-10-20 21:27:42,448 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
224 2022-10-20 21:27:42,449 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
225 2022-10-20 21:27:52,458 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
226 2022-10-20 21:27:52,459 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
227 2022-10-20 21:30:45,054 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
228 2022-10-20 21:30:45,055 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
229 2022-10-20 21:42:18,657 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
230 2022-10-20 21:42:18,658 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
231 2022-10-20 21:42:51,266 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
232 2022-10-20 21:42:51,267 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
233 2022-10-20 21:46:55,226 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
234 2022-10-20 21:46:55,226 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
235 2022-10-20 22:08:32,252 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
236 2022-10-20 22:08:32,253 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
237 2022-10-20 22:08:32,373 - root - INFO - 订单类型是一主一附
238 2022-10-20 22:08:39,790 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
239 2022-10-20 22:08:39,792 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
240 2022-10-20 22:08:39,870 - root - INFO - 订单类型是一主一附
241 2022-10-20 22:09:35,553 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
242 2022-10-20 22:09:35,554 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
243 2022-10-20 22:09:35,623 - root - INFO - 订单类型是一主一附
244 2022-10-20 22:10:08,037 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
245 2022-10-20 22:10:08,038 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
246 2022-10-20 22:10:08,109 - root - INFO - 订单类型是一主一附
247 2022-10-20 22:10:57,312 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
248 2022-10-20 22:10:57,313 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
249 2022-10-20 22:10:57,378 - root - INFO - 订单类型是一主一附
250 2022-10-20 22:12:48,943 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
251 2022-10-20 22:12:48,944 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
252 2022-10-20 22:12:49,015 - root - INFO - 订单类型是一主一附
253 2022-10-20 22:14:59,668 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
254 2022-10-20 22:14:59,669 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
255 2022-10-20 22:14:59,752 - root - INFO - 订单类型是一主一附
1 2022-10-21 10:44:23,145 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2 2022-10-21 10:44:23,146 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
3 2022-10-21 10:44:23,249 - root - INFO - 订单类型是一主一附
4 2022-10-21 10:46:28,083 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
5 2022-10-21 10:46:28,084 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
6 2022-10-21 10:46:28,148 - root - INFO - 订单类型是一主一附
7 2022-10-21 14:11:23,345 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
8 2022-10-21 14:11:23,347 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
9 2022-10-21 14:11:23,479 - root - ERROR - 测试用例打开失败,原因是:No sheet named <'字典映射'>
10 2022-10-21 14:11:35,370 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
11 2022-10-21 14:11:35,371 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
12 2022-10-21 14:11:35,480 - root - ERROR - 测试用例打开失败,原因是:No sheet named <'字典映射'>
13 2022-10-21 14:11:45,000 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
14 2022-10-21 14:11:45,001 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
15 2022-10-21 14:12:06,469 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
16 2022-10-21 14:12:06,469 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
17 2022-10-21 15:54:42,714 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
18 2022-10-21 15:54:42,716 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
19 2022-10-21 15:54:57,324 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
20 2022-10-21 15:54:57,325 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
21 2022-10-21 15:55:04,643 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
22 2022-10-21 15:55:04,643 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
23 2022-10-21 15:55:22,540 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
24 2022-10-21 15:55:22,541 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
25 2022-10-21 15:56:07,622 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
26 2022-10-21 15:56:07,623 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
27 2022-10-21 15:56:18,385 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
28 2022-10-21 15:56:18,385 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
29 2022-10-21 15:56:26,975 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
30 2022-10-21 15:56:26,976 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
31 2022-10-21 15:57:59,658 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
32 2022-10-21 15:57:59,659 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
33 2022-10-21 15:58:11,573 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
34 2022-10-21 15:58:11,574 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
35 2022-10-21 17:27:00,953 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
36 2022-10-21 17:27:00,954 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
37 2022-10-21 17:27:01,128 - root - INFO - 订单类型是一主一附
38 2022-10-21 17:29:04,822 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
39 2022-10-21 17:29:04,824 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
40 2022-10-21 17:29:04,965 - root - INFO - 订单类型是一主一附
41 2022-10-21 17:34:29,194 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
42 2022-10-21 17:34:29,195 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
43 2022-10-21 17:34:58,757 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
44 2022-10-21 17:34:58,758 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
45 2022-10-21 17:37:05,508 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
46 2022-10-21 17:37:05,509 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
47 2022-10-21 17:37:22,839 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
48 2022-10-21 17:37:22,840 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
49 2022-10-21 17:37:41,744 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
50 2022-10-21 17:37:41,745 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
51 2022-10-21 17:38:15,490 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
52 2022-10-21 17:38:15,490 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
53 2022-10-21 17:38:48,933 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
54 2022-10-21 17:38:48,934 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
55 2022-10-21 17:40:04,703 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
56 2022-10-21 17:40:04,704 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
57 2022-10-21 17:40:19,984 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
58 2022-10-21 17:40:19,986 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
59 2022-10-21 17:41:48,315 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
60 2022-10-21 17:41:48,316 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
61 2022-10-21 17:43:10,828 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
62 2022-10-21 17:43:10,829 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
63 2022-10-21 17:44:18,478 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
64 2022-10-21 17:44:18,478 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
65 2022-10-21 17:47:16,184 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
66 2022-10-21 17:47:16,186 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
67 2022-10-21 18:03:55,509 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
68 2022-10-21 18:03:55,512 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
69 2022-10-21 18:04:03,979 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
70 2022-10-21 18:04:03,979 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
71 2022-10-21 18:04:04,109 - root - INFO - 订单类型是一主一附
72 2022-10-21 18:06:03,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
73 2022-10-21 18:06:03,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
74 2022-10-21 18:06:23,813 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
75 2022-10-21 18:06:23,814 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
76 2022-10-21 18:06:23,935 - root - INFO - 订单类型是一主一附
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <title>测试报告</title>
6 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css"
7 integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
8 <!-- 页面样式-->
9 <style type="text/css">
10 /*标题样式*/
11 .title {
12 width: auto;
13 height: 60px;
14 text-align: center;
15 font: bolder 38px/60px "Microsoft YaHei UI";
16 }
17
18 /*汇总信息样式*/
19 .summary {
20 width: 90%;
21 position: absolute;
22 top: 120px;
23 margin-left: 5%;
24
25 }
26
27 .text-left {
28 font: bolder 20px/30px "Microsoft YaHei UI";
29 }
30
31 .left {
32 width: 50%;
33 float: left;
34
35 }
36
37 .right {
38 width: 50%;
39 float: right;
40
41 }
42
43 .desc {
44 float: left;
45 width: 100%;
46 }
47
48 .list-group-item span {
49 font: normal 16px/38px "Microsoft YaHei UI";
50 padding: 30px;
51
52 }
53
54 .list-group-item {
55 position: relative;
56 display: block;
57 padding: .4rem 1.25rem;
58 background-color: #fff;
59 border: 1px solid rgba(0, 0, 0, .125);
60 }
61
62 /* 执行信息样式 */
63 .test_info {
64 width: 90%;
65 position: absolute;
66 top: 900px;
67 margin-left: 5%;
68
69 color: #28a745 !important;
70 }
71
72 .table td, th {
73 border: solid 2px rgba(9, 122, 51, 0.11) !important;
74 padding: 0;
75 line-height: 40px;
76 text-align: center;
77
78 }
79
80
81 select {
82 border: 0;
83 padding: 0;
84 margin: 0;
85 height: 2em;
86 width: 8em;
87 margin-left: 2em;
88 }
89
90 option {
91 text-align: center;
92 height: 36px;
93 font: none 18px/36px "Microsoft YaHei UI";
94 color: #28a745 !important;
95 }
96
97 .test_log {
98 background: rgba(163, 171, 189, 0.15);
99 width: 100%;
100 height: 50px;
101 border-top: none;
102 border-bottom: none;
103 display: none;
104 text-align: left;
105 }
106
107 .test_log td {
108 text-align: left;
109 height: 30px;
110 margin: 0;
111 padding-left: 3em;
112 padding-right:3em;
113 font: none 18px/24px "Microsoft YaHei UI";
114 color: #9e141a;
115 }
116
117 pre {
118 margin: 0;
119 white-space: pre-wrap;
120 white-space: -moz-pre-wrap;
121 white-space: -o-pre-wrap;
122 word-wrap: break-word;
123 }
124
125 /* 测试图表显示*/
126 .char {
127 width: 90%;
128 position: absolute;
129 top: 450px;
130 margin-left: 5%;
131 color: #28a745 !important;
132 }
133
134 </style>
135
136 </head>
137 <body>
138
139 <!--报告标题-->
140 <div class="title text-success">
141 <div class="shadow-lg p-3 mb-5 bg-white rounded">本地调试</div>
142 </div>
143
144 <!--汇总信息-->
145 <div class="summary">
146 <p class="text-left text-success">测试结果汇总</p>
147 <div class="left">
148 <ul class="list-group">
149 <li class="list-group-item">
150 <button type="button" class="btn btn-success">测试人员</button>
151 <span class="text-dark">测试组</span>
152 </li>
153 <li class="list-group-item">
154 <button type="button" class="btn btn-success">开始时间</button>
155 <span class="text-dark">2022-11-01 20:45:11</span>
156 </li>
157 <li class="list-group-item">
158 <button type="button" class="btn btn-success">执行时间</button>
159 <span class="text-dark">3.20 S</span>
160 </li>
161 <li class="list-group-item">
162 <button type="button" class="btn btn-success">用例总数</button>
163 <span class="text-dark">3</span>
164 </li>
165
166
167 </ul>
168 </div>
169 <div class="right">
170 <ul class="list-group">
171
172 <li class="list-group-item">
173 <button type="button" class="btn btn-success">成功用例</button>
174 <span class="text-success">2</span>
175 </li>
176 <li class="list-group-item">
177 <button type="button" class="btn btn-danger">失败用例</button>
178 <span class="text-warning">0</span>
179 </li>
180 <li class="list-group-item">
181 <button type="button" class="btn btn-warning">错误用例</button>
182 <span class="text-danger">1</span>
183 </li>
184 <li class="list-group-item">
185 <button type="button" class="btn btn-secondary">跳过用例</button>
186 <span class="text-secondary">0</span>
187 </li>
188 </ul>
189 </div>
190 <div class="desc">
191 <ul class="list-group">
192 <li class="list-group-item">
193 <button type="button" class="btn btn-success">描述信息</button>
194 <span class="text-secondary">接口自动化测试报告</span>
195 </li>
196 </ul>
197 </div>
198
199
200 </div>
201
202 <!--测试图表-->
203 <div class="char">
204 <p class="text-left text-success">图表展示</p>
205 <div id="char2" style="width: 49%;height: 400px;float: left"></div>
206 <div id="char" style="width: 49%;height: 400px ;float: left"></div>
207 </div>
208
209 <!--详细信息-->
210 <div class="test_info">
211
212 <p class="text-left text-success">详细信息</p>
213 <div class="table_data">
214
215 <table class="table">
216 <thead class="bg-success text-light">
217 <tr>
218 <th scope="col" style="width: 5%;padding: 0">编号</th>
219 <th scope="col" style="width: 20%;padding: 0">
220 <span>测试类</span>
221 <select id="testClass">
222 <option>所有</option>
223
224 <option>DDTTest</option>
225
226 </select>
227
228 </th>
229
230 <th scope="col" style="width: 15%;padding: 0">测试方法</th>
231 <th scope="col" style="width: 20%;padding: 0">用例描述</th>
232 <th scope="col" style="width: 10%;padding: 0">执行时间</th>
233 <th scope="col" style="width: 20%;padding: 0">
234
235 <span>执行结果</span>
236 <select id="testResult">
237 <option>所有</option>
238 <option class="text-success">成功</option>
239 <option class="text-danger">失败</option>
240 <option class="text-warning">错误</option>
241 <option class="text-info">跳过</option>
242 </select>
243
244 </th>
245 <th scope="col" style="width: 10%;padding: 0">详细信息</th>
246 </tr>
247 </thead>
248 <tbody>
249
250 <tr>
251 <td>1</td>
252 <td class="DDTTest">DDTTest</td>
253 <td>/cl/formconf/form</td>
254 <td>正向case--查询表单配置</td>
255 <td>0.187s</td>
256
257 <td class="text-success">成功</td>
258
259 <td>
260 <button type="button" class="btn btn-success btn_info">查看详情</button>
261 </td>
262 </tr>
263
264 <tr class="test_log">
265
266 <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
267
268
269 <pre>2022-11-01 20:45:11,108 - root - INFO - ***************【查询表单配置】接口测试开始***************
270 2022-11-01 20:45:11,108 - root - INFO - 接口测试用例为:{'id': 1.0, 'depend_id': 0.0, 'positive_case': '正向', 'desc': '查询表单配置', 'uri': '/cl/formconf/form', 'method': 'GET', 'headers': '{\n"Content-Type": "application/json"\n}', 'params': '{"type": 1,"platformType": 1}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'md5'}
271 2022-11-01 20:45:11,109 - root - INFO - 请求头为:{'Content-Type': 'application/json'}
272 2022-11-01 20:45:11,109 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
273 2022-11-01 20:45:11,290 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'formId': 1, 'md5': 'd003784d3e6dbc116efcb6d550440465', 'list': [{'componetId': 2967, 'type': 'left_deck', 'title': '', 'key': 'left_deck', 'url': 'https://sanheyi-staging.oss-cn-beijing.aliyuncs.com//sanheyi-staging/image/appimage/72c1c56ff9b44cf29356a94b88784447.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2968, 'type': 'right_deck', 'title': '', 'key': 'right_deck', 'url': 'https://sanheyi-staging.oss-cn-beijing.aliyuncs.com//sanheyi-staging/image/appimage/85d9858f621c4b458408336a52f7d2f9.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2969, 'type': 'reset_pwd', 'title': '忘记密码', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2970, 'type': 'active_account', 'title': '账号激活', 'key': '', 'url': '', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 0, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 4, 'type': 'text_01', 'title': '工号/账号', 'key': 'username', 'url': 'https://sanheyi-staging.oss-cn-beijing.aliyuncs.com//sanheyi-staging/image/appimage/d0501da2493a471c930203a60ccc2f70.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的工号', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 5, 'type': 'password', 'title': '密码', 'key': 'password', 'url': 'https://sanheyi-staging.oss-cn-beijing.aliyuncs.com//sanheyi-staging/image/appimage/c88de2ca99ec42e4a91fea76102184bd.png', 'backgroundUrl': '', 'data': None, 'value': '', 'placeholder': '请输入您的密码', 'required': 1, 'minLength': 0, 'length': 30, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}, {'componetId': 2948, 'type': 'privacy_agreement', 'title': '公司隐私准则声明', 'key': 'privacy_agreement', 'url': 'https://sanheyi-staging.oss-cn-beijing.aliyuncs.com//sanheyi-staging/image/appimage/fba82c2094434655832ee94979b4805a.html', 'backgroundUrl': 'https://sanheyi-staging.oss-cn-beijing.aliyuncs.com//sanheyi-staging/image/appimage/9eee174fd53547eeb331d2dda678789b.png', 'data': None, 'value': '', 'placeholder': '', 'required': 0, 'minLength': 0, 'length': 100, 'hideComponetId': 0, 'showValue': None, 'regex': '', 'hintMsg': '', 'lengthHintMsg': '', 'nonHintMsg': ''}]}}
274 2022-11-01 20:45:11,293 - root - INFO - 响应信息存储完毕!!!
275 2022-11-01 20:45:11,293 - root - INFO - ***************【查询表单配置】接口测试结束***************
276 /cl/formconf/form (RunTest.DDTTest)执行——>【通过】
277 </pre>
278
279
280 </td>
281 </tr>
282
283 <tr>
284 <td>2</td>
285 <td class="DDTTest">DDTTest</td>
286 <td>/cl/auth/login</td>
287 <td>正向case--APP登录</td>
288 <td>0.863s</td>
289
290 <td class="text-success">成功</td>
291
292 <td>
293 <button type="button" class="btn btn-success btn_info">查看详情</button>
294 </td>
295 </tr>
296
297 <tr class="test_log">
298
299 <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
300
301
302 <pre>2022-11-01 20:45:11,294 - root - INFO - ***************【APP登录】接口测试开始***************
303 2022-11-01 20:45:11,295 - root - INFO - 接口测试用例为:{'id': 2.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': 'APP登录', 'uri': '/cl/auth/login', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592"\n}', 'params': '{\n"type": 1,\n"platformType": "1",\n"md5": "#1.md5",\n"username": "NB60351",\n"password": "zhbx!MSL"\n}', 'response_assert': '{"code":0,"msg":"OK"}', 'save_args': 'token'}
304 2022-11-01 20:45:11,295 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
305 2022-11-01 20:45:11,296 - root - INFO - 需要替换的变量信息为:['#1.md5']
306 2022-11-01 20:45:11,296 - root - INFO - 可变参数的信息为:{'#1.md5': 'd003784d3e6dbc116efcb6d550440465'}
307 2022-11-01 20:45:11,296 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': 'd003784d3e6dbc116efcb6d550440465', 'username': 'NB60351', 'password': 'zhbx!MSL'}
308 2022-11-01 20:45:11,297 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': 'd003784d3e6dbc116efcb6d550440465', 'username': 'NB60351', 'password': 'zhbx!MSL'}
309 2022-11-01 20:45:12,154 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'name': '徐营销员', 'token': '2ea7f946737d4f589f4b3f03206b8875', 'role': 32, 'marketingChannel': '个险渠道', 'branchId': 0, 'branchName': '宁波分公司', 'subBranchId': 51, 'subBranchName': '宁波', 'directlyAgencyName': '宁波', 'directlyAgencyId': 51, 'reset': 0, 'phoneNum': '', 'idCardType': 0, 'idCardNo': '', 'employeeId': 'NB60351', 'licensed': '2005113020090000136'}}
310 2022-11-01 20:45:12,155 - root - INFO - 响应信息存储完毕!!!
311 2022-11-01 20:45:12,156 - root - INFO - ***************【APP登录】接口测试结束***************
312 /cl/auth/login (RunTest.DDTTest)执行——>【通过】
313 </pre>
314
315
316 </td>
317 </tr>
318
319 <tr>
320 <td>3</td>
321 <td class="DDTTest">DDTTest</td>
322 <td>/cl/order/hand/add</td>
323 <td>正向case--纸质入件</td>
324 <td>2.15s</td>
325
326 <td class="text-warning">错误</td>
327
328 <td>
329 <button type="button" class="btn btn-success btn_info">查看详情</button>
330 </td>
331 </tr>
332
333 <tr class="test_log">
334
335 <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
336
337
338 <pre>Traceback (most recent call last):
339 </pre>
340
341
342 <pre> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
343 yield
344 </pre>
345
346
347 <pre> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
348 testMethod()
349 </pre>
350
351
352 <pre> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ddt.py", line 220, in wrapper
353 return func(self, *args, **kwargs)
354 </pre>
355
356
357 <pre> File "/Users/jingyuxiang/Desktop/code/python/SituApiSupport/case/RunTest.py", line 68, in test_case
358 raise Exception('asdfasdfasdf')
359 </pre>
360
361
362 <pre>Exception: asdfasdfasdf
363 </pre>
364
365
366 <pre>2022-11-01 20:45:12,157 - root - INFO - ***************【纸质入件】接口测试开始***************
367 2022-11-01 20:45:12,158 - root - INFO - 接口测试用例为:{'id': 3.0, 'depend_id': 2.0, 'positive_case': '正向', 'desc': '纸质入件', 'uri': '/cl/order/hand/add', 'method': 'POST', 'headers': '{\n"Content-Type": "application/json",\n"X-Device-Num": "5f647684-f1f9-41ef-8775-921afe231592",\n"X-Auth-Token": "#2.token"\n}', 'params': '话术变量验证-test_case1', 'response_assert': '话术变量验证-test_case1', 'save_args': 'orderRecordId'}
368 2022-11-01 20:45:12,158 - root - INFO - 需要替换的变量信息为:['#2.token']
369 2022-11-01 20:45:12,159 - root - INFO - 可变参数的信息为:{'#2.token': '2ea7f946737d4f589f4b3f03206b8875'}
370 2022-11-01 20:45:12,159 - root - INFO - 可变参数替换完毕:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '2ea7f946737d4f589f4b3f03206b8875'}
371 2022-11-01 20:45:12,160 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592', 'X-Auth-Token': '2ea7f946737d4f589f4b3f03206b8875'}
372 2022-11-01 20:45:12,164 - root - INFO - 订单类型是一主一附
373 2022-11-01 20:45:12,171 - root - INFO - 话术变量参数自动生成成功!
374 2022-11-01 20:45:12,172 - root - INFO - 订单数据结构为{"订单基本信息":{"订单号":"test11111","保单类型":"非自保件","双录时间":"test_recordingTime","双录类型":"新契约","入件方式":"手工入件","创建时间":"test_createTime","保全识别码":"test_selfNo","保单号":"123","保全项":"1","渠道来源":"test_marketingChannel","机构名称":"test_organizationName","双录方式":"现场或远程","合作保司":"test_insuranceCompany","保司投保单号":"test_insuranceComPolicyNo","保单首年保费":"test_firstYearPrem","退保金":"test_firstYearValue","第一年退保金百分比":"test_firstYearValuePercent","首年保费":"test_firstYearPrem","第一年末现金价值":"test_firstYearCashValue","第二年末现金价值":"test_secondYearCashValue","第三年末现金价值":"test_thirdYearCashValue","是否隔代投保":"test_isAlternateGeneration","药无忧类别":"test_yaoWuYouType","直通30服务权益须知":"test_hasStraightThirty","高端健康管理服务权益须知":"test_hasHealthBank","孝无忧权益须知":"test_hasXiaoWuYou","医无忧权益须知":"test_hasYiWuYou","是否共展件":"test_isTogetherPolicy","销售人员与投保人关系":"test_selfRelation","是否含有ab照问卷":"test_abLicense","投保渠道":"test_systemSource","是否允许投保人远程":"test_applicantRemote","是否开启远程":"test_supportRemote","销售人员与投保人关系":"test_relation","双录时效":"test_recordingPrescription"},"销售人员信息":{"销售人员姓名":"测试销售人员姓名","销售人员工号":"test_employeeId","销售人员分公司名称":"test_branchName","销售人员支公司名称":"test_subBranchName","销售人员身份证件号":"test_identityNo","销售人员渠道":"test_marketingChannel","销售人员执业证号":"test_licensed","销售人员证件类型":"test_certType","第二代理人姓名":"test_secondAgentName","第二代理人所属机构名称":"test_secondAgentComName","第二代理人所属机构代码":"test_secondAgentComCode","销售人员中支公司名称":"test_centralBranch","销售人员所属机构名称":"test_directlyAgencyName","销售人员证件类型":"test_certType","公司代码":"test_companyCode","销售人员机构代码":"test_directlyAgencyCode","公司名称":"test_companyName","销售人员分公司代码":"test_branchCode","销售人员支公司代码":"test_subBranchCode","销售人员性别":"男","销售人员在职状态":"test_status","经代渠道":"test_channelCode","代理公司编码":"test_subCode"},"投保人信息":{"投保人姓名":"测试投保人","投保人性别":"男","投保人尊称":"test_honorific","投保人年龄":"27","投保人职业":"test_profession","投保人出生日期":"test_birth","投保人证件类型":"身份证","投保人证件号码":"410821199504142014","投保人通讯地址":"test_address","投保人电话号码":"test_mobile","投保人与被保人关系":"test_relation","风险测评得分":"test_riskScore"},"投保基本信息1":{"产品名称":"自动化主险","产品代码":"TESTMAIN","产品种类":"主险","缴费方式":"test_payType","缴费期限":"test_payPeriod","保险期限":"test_policyPeriod","首期缴费金额":"test_periodAmount","每期缴费金额":"test_periodAmount","保额":"test_sumAmount","退保金":"test_surrenderAmount","产品类型":"1","首年缴费金额":"test_totalAmountOfFirstYear","首年现金价值":"test_cashValueOfFirstYear","计划编码":"test_planCode","是否保证续保":"test_isRenewal","保证续保年限":"test_renewalYear","一年期险":"test_firstYearInsurance","第二年退保金额":"test_secondYearSurAmount","犹豫期 ":"test_hesitatePeriod","一次性初始费用":"test_disposableInitialCost","初始费用":"test_initialCost","最低保证利率":"test_minInterestRate","是否双录范围产品":"test_isRangeProducts","新增保障生效日期":"test_newEffectivedDate","等待期":"test_waitingPeriod","第二年末现金价值":"test_cashValueOfsecondYear","第二年退保金百分比":"test_secondYearSurAmountPercent","第二年末退保比例":"test_secondYearSurPercent","缴费频次":"test_payFrequency","首期缴费金额":"test_totalAmountOfFirst","保单首年保费":"test_firstYearPrem","被保人姓名":"被保人1","被保人性别":"男","被保人尊称":"test_honorific","被保人出生日期":"test_birth","被保人年龄":"test_age","被保人职业":"test_profession","被保人证件类型":"身份证","被保人证件号码":"120118199003073035","被保人电话号码":"test_mobile","被保人通讯地址":"test_address","被保人与投保人关系":"test_relation","被保人监护人姓名":"test_guardian","被保人监护人证件号码":"test_guardianNo","被保人监护人证件类型":"test_guardianCertType","监护人性别":"test_guardianGender","监护人尊称":"test_guardianHonorific"},"投保基本信息2":{"产品名称":"自动化附加险","产品代码":"TESTADD","产品种类":"附加险1","缴费方式":"test_payType","缴费期限":"test_payPeriod","保险期限":"test_policyPeriod","首期缴费金额":"test_periodAmount","每期缴费金额":"test_periodAmount","保额":"test_sumAmount","退保金":"test_surrenderAmount","产品类型":"2","首年缴费金额":"test_totalAmountOfFirstYear","首年现金价值":"test_cashValueOfFirstYear","计划编码":"test_planCode","是否保证续保":"test_isRenewal","保证续保年限":"test_renewalYear","一年期险":"test_firstYearInsurance","第二年退保金额":"test_secondYearSurAmount","犹豫期 ":"test_hesitatePeriod","一次性初始费用":"test_disposableInitialCost","初始费用":"test_initialCost","最低保证利率":"test_minInterestRate","是否双录范围产品":"test_isRangeProducts","新增保障生效日期":"test_newEffectivedDate","等待期":"test_waitingPeriod","第二年末现金价值":"test_cashValueOfsecondYear","第二年退保金百分比":"test_secondYearSurAmountPercent","第二年末退保比例":"test_secondYearSurPercent","缴费频次":"test_payFrequency","首期缴费金额":"test_totalAmountOfFirst","保单首年保费":"test_firstYearPrem","被保人姓名":"被保人2","被保人性别":"男","被保人尊称":"test_honorific","被保人出生日期":"test_birth","被保人年龄":"test_age","被保人职业":"test_profession","被保人证件类型":"身份证","被保人证件号码":"110105199005052832","被保人电话号码":"test_mobile","被保人通讯地址":"test_address","被保人与投保人关系":"test_relation","被保人监护人姓名":"test_guardian","被保人监护人证件号码":"test_guardianNo","被保人监护人证件类型":"test_guardianCertType","监护人性别":"test_guardianGender","监护人尊称":"test_guardianHonorific"}}
375 2022-11-01 20:45:12,173 - root - INFO - 请求参数为:{'order': {'identifier': 'test11111', 'policyType': '非自保件', 'recordingTime': 'test_recordingTime', 'recordType': '新契约', 'inputType': '手工入件', 'createTime': 'test_createTime', 'selfNo': 'test_selfNo', 'policyNo': '123', 'quotaItem': '1', 'marketingChannel': 'test_marketingChannel', 'organizationName': 'test_organizationName', 'systemType': '现场或远程', 'insuranceCompany': 'test_insuranceCompany', 'insuranceComPolicyNo': 'test_insuranceComPolicyNo', 'firstYearPrem': 'test_firstYearPrem', 'firstYearValue': 'test_firstYearValue', 'firstYearValuePercent': 'test_firstYearValuePercent', 'firstYearCashValue': 'test_firstYearCashValue', 'secondYearCashValue': 'test_secondYearCashValue', 'thirdYearCashValue': 'test_thirdYearCashValue', 'isAlternateGeneration': 'test_isAlternateGeneration', 'yaoWuYouType': 'test_yaoWuYouType', 'hasStraightThirty': 'test_hasStraightThirty', 'hasHealthBank': 'test_hasHealthBank', 'hasXiaoWuYou': 'test_hasXiaoWuYou', 'hasYiWuYou': 'test_hasYiWuYou', 'isTogetherPolicy': 'test_isTogetherPolicy', 'selfRelation': 'test_selfRelation', 'abLicense': 'test_abLicense', 'systemSource': 'test_systemSource', 'applicantRemote': 'test_applicantRemote', 'supportRemote': 'test_supportRemote', 'relation': 'test_relation', 'recordingPrescription': 'test_recordingPrescription'}, 'agent': {'name': '测试销售人员姓名', 'employeeId': 'test_employeeId', 'branchName': 'test_branchName', 'subBranchName': 'test_subBranchName', 'identityNo': 'test_identityNo', 'marketingChannel': 'test_marketingChannel', 'licensed': 'test_licensed', 'certType': 'test_certType', 'secondAgentName': 'test_secondAgentName', 'secondAgentComName': 'test_secondAgentComName', 'secondAgentComCode': 'test_secondAgentComCode', 'centralBranch': 'test_centralBranch', 'directlyAgencyName': 'test_directlyAgencyName', 'companyCode': 'test_companyCode', 'directlyAgencyCode': 'test_directlyAgencyCode', 'companyName': 'test_companyName', 'branchCode': 'test_branchCode', 'subBranchCode': 'test_subBranchCode', 'gender': '男', 'status': 'test_status', 'channelCode': 'test_channelCode', 'subCode': 'test_subCode'}, 'applicant': {'name': '测试投保人', 'gender': '男', 'honorific': 'test_honorific', 'age': '27', 'profession': 'test_profession', 'birth': 'test_birth', 'certType': '身份证', 'certNo': '410821199504142014', 'address': 'test_address', 'mobile': 'test_mobile', 'relation': 'test_relation', 'riskScore': 'test_riskScore'}, 'insurance': [{'mainInsurance': {'productName': '自动化主险', 'productCode': 'TESTMAIN', 'productCategory': '主险', 'payType': 'test_payType', 'payPeriod': 'test_payPeriod', 'policyPeriod': 'test_policyPeriod', 'periodAmount': 'test_periodAmount', 'sumAmount': 'test_sumAmount', 'surrenderAmount': 'test_surrenderAmount', 'productType': '1', 'totalAmountOfFirstYear': 'test_totalAmountOfFirstYear', 'cashValueOfFirstYear': 'test_cashValueOfFirstYear', 'planCode': 'test_planCode', 'isRenewal': 'test_isRenewal', 'renewalYear': 'test_renewalYear', 'firstYearInsurance': 'test_firstYearInsurance', 'secondYearSurAmount': 'test_secondYearSurAmount', 'hesitatePeriod': 'test_hesitatePeriod', 'disposableInitialCost': 'test_disposableInitialCost', 'initialCost': 'test_initialCost', 'minInterestRate': 'test_minInterestRate', 'isRangeProducts': 'test_isRangeProducts', 'newEffectivedDate': 'test_newEffectivedDate', 'waitingPeriod': 'test_waitingPeriod', 'cashValueOfsecondYear': 'test_cashValueOfsecondYear', 'secondYearSurAmountPercent': 'test_secondYearSurAmountPercent', 'secondYearSurPercent': 'test_secondYearSurPercent', 'payFrequency': 'test_payFrequency', 'totalAmountOfFirst': 'test_totalAmountOfFirst', 'firstYearPrem': 'test_firstYearPrem', 'insureds': [{'name': '被保人1', 'gender': '男', 'honorific': 'test_honorific', 'birth': 'test_birth', 'age': 'test_age', 'profession': 'test_profession', 'certType': '身份证', 'certNo': '120118199003073035', 'mobile': 'test_mobile', 'address': 'test_address', 'relation': 'test_relation', 'guardian': 'test_guardian', 'guardianNo': 'test_guardianNo', 'guardianCertType': 'test_guardianCertType', 'guardianGender': 'test_guardianGender', 'guardianHonorific': 'test_guardianHonorific'}]}, 'additionalInsurances': [{'productName': '自动化附加险', 'productCode': 'TESTADD', 'productCategory': '附加险1', 'payType': 'test_payType', 'payPeriod': 'test_payPeriod', 'policyPeriod': 'test_policyPeriod', 'periodAmount': 'test_periodAmount', 'sumAmount': 'test_sumAmount', 'surrenderAmount': 'test_surrenderAmount', 'productType': '2', 'totalAmountOfFirstYear': 'test_totalAmountOfFirstYear', 'cashValueOfFirstYear': 'test_cashValueOfFirstYear', 'planCode': 'test_planCode', 'isRenewal': 'test_isRenewal', 'renewalYear': 'test_renewalYear', 'firstYearInsurance': 'test_firstYearInsurance', 'secondYearSurAmount': 'test_secondYearSurAmount', 'hesitatePeriod': 'test_hesitatePeriod', 'disposableInitialCost': 'test_disposableInitialCost', 'initialCost': 'test_initialCost', 'minInterestRate': 'test_minInterestRate', 'isRangeProducts': 'test_isRangeProducts', 'newEffectivedDate': 'test_newEffectivedDate', 'waitingPeriod': 'test_waitingPeriod', 'cashValueOfsecondYear': 'test_cashValueOfsecondYear', 'secondYearSurAmountPercent': 'test_secondYearSurAmountPercent', 'secondYearSurPercent': 'test_secondYearSurPercent', 'payFrequency': 'test_payFrequency', 'totalAmountOfFirst': 'test_totalAmountOfFirst', 'firstYearPrem': 'test_firstYearPrem', 'insureds': [{'name': '被保人2', 'gender': '男', 'honorific': 'test_honorific', 'birth': 'test_birth', 'age': 'test_age', 'profession': 'test_profession', 'certType': '身份证', 'certNo': '110105199005052832', 'mobile': 'test_mobile', 'address': 'test_address', 'relation': 'test_relation', 'guardian': 'test_guardian', 'guardianNo': 'test_guardianNo', 'guardianCertType': 'test_guardianCertType', 'guardianGender': 'test_guardianGender', 'guardianHonorific': 'test_guardianHonorific'}]}]}]}
376 2022-11-01 20:45:14,278 - root - INFO - 接口测试结果为:{'code': 0, 'msg': 'OK', 'success': True, 'result': {'orderRecordId': 161, 'exist': 1, 'customerName': '测试投保人', 'productName': '自动化主险', 'orderId': 'test11111', 'serialNo': 'test11111', 'createTime': '2022-11-01 20:45:13', 'orderNoType': 2, 'appntAge': '27', 'supportRemote': 1, 'systemType': 2147483647, 'applicantRemoteFlag': 2147483647, 'manyInsuresFlag': 1, 'samePerson': 2, 'samePersonForInsured': 2, 'samePersonForAppnt': 2, 'sameCameraCount': 3, 'positioning': 3, 'area': 2, 'range': '浙江省-宁波市', 'policyNo': '', 'orderType': 1, 'selfNo': '', 'systemSource': '', 'orderSource': 2, 'quotaType': '', 'confirmReplaceOrder': True, 'orderMetaChanged': 0}}
377 False
378 /cl/order/hand/add (RunTest.DDTTest)执行——>【错误Error】
379 </pre>
380
381
382 </td>
383 </tr>
384
385
386 </tbody>
387 </table>
388 </div>
389
390 <div style="height: 200px"></div>
391 </div>
392
393 <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
394 integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
395 crossorigin="anonymous"></script>
396 <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
397
398 <script>
399 var tbodyTr = $('tbody tr');
400 var testResult = $("#testResult");
401 var testClass = $("#testClass");
402 <!-- 用例执行详细信息显示切换-->
403 $(".btn_info").click(function () {
404 $(this).parent().parent().next().toggle();
405
406 });
407 // 当选择用例类之后触发
408 testClass.change(function () {
409 var cls = $(this).val();
410 var res = testResult.val();
411 elementDisplay(cls, res);
412 sort()
413 });
414 testResult.change(function () {
415 var res = $(this).val();
416 var cls = testClass.val();
417 elementDisplay(cls, res);
418 sort()
419 });
420
421 function elementDisplay(cls, res) {
422 // 用例数据的显示
423 if (cls === "所有") {
424 if (res === "所有") {
425 tbodyTr.has('button').show();
426 } else if (res === '成功') {
427 tbodyTr.hide();
428 tbodyTr.has('button').has('.text-success').show()
429
430 } else if (res === '失败') {
431 tbodyTr.hide();
432 tbodyTr.has('button').has('.text-danger').show()
433
434 } else if (res === '错误') {
435 tbodyTr.hide();
436 tbodyTr.has('button').has('.text-warning').show()
437
438 } else if (res === '跳过') {
439 tbodyTr.hide();
440 tbodyTr.has('button').has('.text-info').show()
441 }
442 } else {
443 if (res === "所有") {
444 tbodyTr.hide();
445 tbodyTr.has('button').has('.' + cls + '').show()
446 } else if (res === '成功') {
447 tbodyTr.hide();
448 tbodyTr.has('button').has('.' + cls + '').has('.text-success').show()
449 } else if (res === '失败') {
450 tbodyTr.hide();
451 tbodyTr.has('button').has('.' + cls + '').has('.text-danger').show()
452 } else if (res === '错误') {
453 tbodyTr.hide();
454 tbodyTr.has('button').has('.' + cls + '').has('.text-warning').show()
455 } else if (res === '跳过') {
456 tbodyTr.hide();
457 tbodyTr.has('button').has('.' + cls + '').has('.text-info').show()
458 }
459 }
460 }
461
462 function sort() {
463 //重新排列显示序号
464 // 选择所有可以见的tr
465 var visibleTr = tbodyTr.filter(":visible");
466
467 visibleTr.each(function (index, element) {
468 element.firstElementChild.innerHTML = index + 1;
469
470 })
471
472 }
473
474
475 </script>
476
477 <script type="text/javascript">
478 // 基于准备好的dom,初始化echarts实例
479 var myChart = echarts.init(document.getElementById('char'));
480 var myChart2 = echarts.init(document.getElementById('char2'));
481 // 指定图表的配置项和数据
482 option = {
483 color: ['#00a10a', '#ddb518', 'rgba(204,46,41,0.73)', '#85898c'],
484 tooltip: {
485 trigger: 'item',
486 formatter: '{a} <br/>{b}: {c} ({d}%)'
487 },
488 legend: {
489 orient: 'vertical',
490 left: 10,
491 data: ['通过', '失败', '错误', '跳过']
492 },
493 series: [
494 {
495 name: '测试结果',
496 type: 'pie',
497 radius: ['50%', '70%'],
498 avoidLabelOverlap: false,
499 label: {
500 show: false,
501 position: 'center'
502 },
503 emphasis: {
504 label: {
505 show: true,
506 fontSize: '30',
507 fontWeight: 'bold'
508 }
509 },
510 labelLine: {
511 show: false
512 },
513 data: [
514 {value: 2, name: '通过'},
515 {value: 0, name: '失败'},
516 {value: 1, name: '错误'},
517 {value: 0, name: '跳过'}
518 ]
519 }
520 ]
521 };
522 option2 = {
523 tooltip: {
524 formatter: '{a} <br/>{b} : {c}%'
525 },
526 toolbox: {
527 feature: {
528 restore: {},
529 saveAsImage: {}
530 }
531 },
532 series: [
533 {
534 name: '测试结果',
535 type: 'gauge',
536 detail: {formatter: '66.67%'},
537 data: [{value: '66.67', name: '用例通过率'}],
538 axisLine: {
539 lineStyle: {
540 color: [
541 [0.2, '#c20000'],
542 [0.8, '#ddb518'],
543 [1, '#00a10a']]
544 }
545 }
546 }
547 ]
548 };
549
550
551 myChart2.setOption(option2);
552 // 使用刚指定的配置项和数据显示图表。
553 myChart.setOption(option);
554 </script>
555
556
557 </body>
558 </html>
...\ No newline at end of file ...\ No newline at end of file
1 CREATE TABLE `citic_role` (
2 `id` bigint(20) NOT NULL AUTO_INCREMENT,
3 `name` varchar(40) CHARACTER SET utf8mb4 DEFAULT NULL,
4 `mark` int(11) DEFAULT NULL,
5 `desc` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
6 `pid` bigint(20) DEFAULT NULL COMMENT '父id',
7 `path` varchar(255) DEFAULT NULL COMMENT '上级角色id完整路径',
8 `role_key` varchar(100) NOT NULL DEFAULT '' COMMENT '角色权限字符串',
9 `role_sort` int(4) NOT NULL DEFAULT '0' COMMENT '显示顺序',
10 `data_scope` char(1) DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
11 `menu_check_strictly` tinyint(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示',
12 `organization_check_strictly` tinyint(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示',
13 `status` char(1) NOT NULL DEFAULT '0' COMMENT '角色状态(0正常 1停用)',
14 `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
15 `create_time` datetime DEFAULT NULL COMMENT '创建时间',
16 `update_time` datetime DEFAULT NULL COMMENT '更新时间',
17 `extra_info` varchar(500) DEFAULT NULL COMMENT '附加信息',
18 PRIMARY KEY (`id`) USING BTREE
19 ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
...\ No newline at end of file ...\ No newline at end of file
1 CREATE TABLE `citic_user` (
2 `id` bigint(20) NOT NULL AUTO_INCREMENT,
3 `username` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '工号',
4 `password` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
5 `name` varchar(30) CHARACTER SET utf8mb4 DEFAULT NULL,
6 `telephone` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL,
7 `activate` tinyint(4) DEFAULT NULL COMMENT '1 = 已激活, 2 = 未激活, 3 = 已禁用',
8 `org_code` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '组织机构代码',
9 `create_time` datetime DEFAULT CURRENT_TIMESTAMP,
10 `activate_time` datetime DEFAULT NULL,
11 `branch_id` bigint(20) DEFAULT NULL COMMENT '分公司_id',
12 `branch_name` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '分公司_name',
13 `sub_branch_id` bigint(20) DEFAULT NULL COMMENT '支公司_id',
14 `sub_branch_name` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '支公司_name',
15 `marketing_channel` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '营销渠道',
16 `departed` tinyint(4) DEFAULT NULL COMMENT '是否离职 1 = 离职 2 = 在职',
17 `user_type` tinyint(4) DEFAULT NULL COMMENT '1 = app端 2 = web端(信诚) 3 = web端(思图)',
18 `last_login_time` datetime DEFAULT NULL COMMENT '最后一次登录时间',
19 `directly_agency_id` bigint(11) DEFAULT NULL COMMENT '直属机构id',
20 `directly_agency_name` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '直属机构名字',
21 `id_card` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '身份证',
22 `licensed` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '职业证',
23 `open_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '微信号',
24 `emp_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '业务员工号',
25 `extra_info` text CHARACTER SET utf8mb4 COMMENT '额外信息',
26 `email` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
27 `employee_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '工号',
28 `source` tinyint(4) DEFAULT NULL COMMENT '用户来源:1=本地注册,2=统一登录获取',
29 `group_id` bigint(20) DEFAULT NULL COMMENT '团队id',
30 `company_name` varchar(225) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '销售人员所属中介公司名称',
31 `company_code` varchar(50) DEFAULT NULL COMMENT '销售人员所属经代公司编码',
32 `cert_type` varchar(4) DEFAULT NULL COMMENT '证件类型',
33 PRIMARY KEY (`id`) USING BTREE
34 ) ENGINE=InnoDB AUTO_INCREMENT=8204 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
...\ No newline at end of file ...\ No newline at end of file
1 CREATE TABLE `citic_user_role` (
2 `id` bigint(20) NOT NULL AUTO_INCREMENT,
3 `user_id` bigint(20) DEFAULT NULL,
4 `role_id` bigint(20) DEFAULT NULL,
5 PRIMARY KEY (`id`) USING BTREE
6 ) ENGINE=InnoDB AUTO_INCREMENT=8188 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
...\ No newline at end of file ...\ No newline at end of file
File mode changed
1 CREATE TABLE `order_base_info` (
2 `id` bigint(20) NOT NULL AUTO_INCREMENT,
3 `task_id` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '双录任务号',
4 `order_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '电子订单号',
5 `policy_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '保单号',
6 `serial_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '字纸投保单流水号',
7 `self_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '保全订单号',
8 `customer_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '投保人姓名',
9 `customer_id_card_type` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '投保人证件类型',
10 `customer_num` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
11 `product_type` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品类型',
12 `ptt_id` bigint(20) DEFAULT NULL COMMENT '产品模板id',
13 `product_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品名称',
14 `product_code` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品编号',
15 `pr_id` bigint(20) DEFAULT NULL COMMENT '产品表主键id',
16 `organization_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '管理机构名称',
17 `org_id` bigint(20) DEFAULT NULL COMMENT '管理机构表主键id(支公司机构id)',
18 `quality_audit_status` int(11) DEFAULT '0' COMMENT '质检状态(1 = 未录制 , 2 =质检中,3 =已质检)',
19 `quality_audit_count` int(11) DEFAULT '0' COMMENT '质检次数',
20 `upload_time` datetime DEFAULT NULL COMMENT '最后一次上传时间',
21 `recording_time` int(11) DEFAULT NULL COMMENT '录制时间',
22 `recording_people` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '录制人',
23 `quality_audit_advice` int(11) DEFAULT '0' COMMENT '质检结果 (0 = 待质检,1 = 通过,2 = 重录,3 = 补录)',
24 `ac_id` bigint(20) DEFAULT NULL COMMENT '账户id',
25 `top_org_id` bigint(20) DEFAULT NULL COMMENT '顶级机构表id',
26 `extra_info` text CHARACTER SET utf8mb4 COMMENT '额外话术模板变量信息',
27 `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
28 `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
29 `life_cycle` tinyint(4) DEFAULT NULL COMMENT '1、被覆盖。2、创建(无效)。3、待录制(生效)。11、驳回补录。12、驳回重录。13、首次提交。14、审核通过。15. 已完成 21、首次可质检。22、补录提交。23、重录提交。',
30 `lock_order` int(10) DEFAULT '2' COMMENT '订单锁定状态(1 = 锁定, 2 = 未锁定)',
31 `order_no_type` int(11) DEFAULT NULL COMMENT '1 = 电子订单号,2 = 纸质投保单流水号',
32 `salesman_username` varchar(40) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '录制人工号',
33 `marketing_channel` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '营销渠道',
34 `need_tts` int(11) DEFAULT NULL COMMENT '1 = 开启; 2= 关闭',
35 `salesman_id` bigint(20) DEFAULT NULL COMMENT '营销员ID',
36 `org_code` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '组织机构代码',
37 `branch_id` bigint(20) DEFAULT NULL COMMENT '分公司机构管理id',
38 `recording_begin_time` bigint(20) DEFAULT NULL COMMENT '录制开始时间',
39 `appnt_age` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '投保人年龄',
40 `encrypt_key` varchar(200) CHARACTER SET utf8mb4 DEFAULT NULL,
41 `insure_self` int(11) DEFAULT NULL COMMENT '自保件/非自保件(1 = 自保件;2 = 非自保件;)',
42 `support_remote` int(11) DEFAULT '2' COMMENT '是否支持远程(1 = 支持;2 = 不支持;)',
43 `system_type` int(11) DEFAULT '1' COMMENT '双录类型(1 = 现场;2 = 远程;)',
44 `mixed_flow_status` int(11) DEFAULT '1' COMMENT '混流状态(1 = 完成;2 = 处理中;...)',
45 `record_rs` int(11) DEFAULT NULL COMMENT '选中需要质检(1 = 选中, 2= 未选中)',
46 `hesitate_period` int(11) DEFAULT NULL COMMENT '真正的犹豫期',
47 `hesitate_period_history` int(11) DEFAULT NULL COMMENT '如果打开开关,那么这个列存开关之前的犹豫期\r\n如果关闭开关,把此项清空,然后把这个项的值拿到真的犹豫期里面',
48 `order_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
49 `cont_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
50 `first_recording_begin_time` bigint(20) DEFAULT NULL COMMENT '首次录制时间',
51 `apply_date` date DEFAULT NULL COMMENT '投保申请日期',
52 `gender` int(11) DEFAULT NULL COMMENT '1 = 男 2 = 女',
53 `order_source` int(11) DEFAULT '1' COMMENT '1 = 电子订单号(扫码录入),2 = 纸质投保单流水号(手工录入), 3 = 系统对接,4=跳转入件',
54 `redress_status` int(10) DEFAULT '2' COMMENT '订单是否被复审人员更正过(1 = 更正, 2 = 未更正)',
55 `version_code` varchar(16) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '二维码版本号',
56 `audit_source` int(11) DEFAULT NULL COMMENT '质检抽样结果 1=抽样质检,2=强制通过 > X质检,3=自动通过',
57 `quota_type` int(5) DEFAULT NULL COMMENT '保全项:1-新增附加险,2-变更投保人',
58 `record_type` int(5) DEFAULT NULL COMMENT '双录类型:1-新契约,2-保全',
59 `applicant_remote_flag` int(11) DEFAULT NULL COMMENT '投保人远程标志 : 1:允许远程 2:不允许远程',
60 `many_insures_flag` int(11) DEFAULT NULL COMMENT '多被保人标志 0:单被保人 1:多被保人',
61 `same_person` int(11) DEFAULT NULL COMMENT '投被保人是否为同一人标志 1:同一人 2:不同人',
62 `lock_expire_time` datetime DEFAULT NULL COMMENT '订单锁定过期时间',
63 `system_source` varchar(10) DEFAULT NULL COMMENT '系统来源:1-经英宝,2-微信公众号',
64 `insurance_company` varchar(20) DEFAULT NULL COMMENT '保司来源',
65 `sign_order_status` tinyint(4) DEFAULT '0' COMMENT '签单状态(0-未签单,1-已签单)',
66 `correction_status` int(11) DEFAULT '0' COMMENT '更正状态 0 = 默认不用更正(电子/比对一致的); 1 = 已更正; 2 = 未更正;',
67 PRIMARY KEY (`id`) USING BTREE,
68 KEY `life_cycle_index` (`life_cycle`) USING BTREE,
69 KEY `order_id_index` (`order_id`) USING BTREE,
70 KEY `policy_no_index` (`policy_no`) USING BTREE,
71 KEY `serial_no_index` (`serial_no`) USING BTREE,
72 KEY `create_time_index` (`create_time`) USING BTREE
73 ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COMMENT='订单主表';
...\ No newline at end of file ...\ No newline at end of file
1 CREATE TABLE `speech_variable` (
2 `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
3 `name` varchar(32) NOT NULL DEFAULT '' COMMENT '变量名称',
4 `desc` varchar(64) NOT NULL DEFAULT '' COMMENT '变量描述',
5 `sort` int(11) NOT NULL DEFAULT '0' COMMENT '变量排序值:根据sort排序',
6 `group_id` int(11) NOT NULL DEFAULT '0' COMMENT '变量所属组ID',
7 `level` int(11) NOT NULL DEFAULT '1' COMMENT '变量所属组层级',
8 `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
9 `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
10 `version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号',
11 `deleted` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否删除:0-被删除,1-正常',
12 `available` smallint(6) NOT NULL DEFAULT '1' COMMENT '是否可用:0-不可用,1-可用',
13 `display` smallint(6) NOT NULL DEFAULT '1' COMMENT '是否显示:0-不显示,1-显示',
14 `record_type` smallint(6) DEFAULT '3' COMMENT '1-新契约, 2-保全, 3-共同属性',
15 `extra_info` varchar(255) DEFAULT NULL COMMENT '额外描述信息',
16 PRIMARY KEY (`id`) USING BTREE,
17 KEY `deleted_index` (`deleted`) USING BTREE
18 ) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COMMENT='话术变量表';
...\ No newline at end of file ...\ No newline at end of file
1 # @Time : 2022/8/30 16:28
2 # @Author : 付孟奇
3 from config.VendorPath import base_path
4 from util.HandleFile import load_ini_file
5 from util.HandleLog import logger
6 import os
7 import pymysql
8
9 db_file_path = os.path.join(base_path, 'config', 'db.ini')
10
11
12 class DBLoad:
13 def __init__(self):
14 db_res = load_ini_file(db_file_path, 'mysql')
15 self.DB_CONF = {
16 'host': db_res['mysql_host'],
17 'port': int(db_res['mysql_port']),
18 'user': db_res['mysql_user'],
19 'passwd': db_res['mysql_passwd'],
20 'db': db_res['mysql_db'],
21 }
22 self.connect()
23
24 def connect(self, db_conf=None):
25 # 通过字典拆包传递配置信息,建立数据库连接
26 if db_conf is None:
27 db_conf = self.DB_CONF
28 self.conn = pymysql.connect(**db_conf, autocommit=True)
29 # 通过 cursor() 创建游标对象,并让查询结果以字典格式输出
30 self.cur = self.conn.cursor(cursor=pymysql.cursors.DictCursor)
31
32 def select_db(self, sql):
33 """查询"""
34 # 检查连接是否断开,如果断开就进行重连
35 self.conn.ping(reconnect=True)
36 # 使用 execute() 执行sql
37 self.cur.execute(sql)
38 # 使用 fetchall() 获取查询结果
39 data = self.cur.fetchall()
40 return data
41
42 def execute_db(self, sql):
43 """更新/新增/删除"""
44 try:
45 # 检查连接是否断开,如果断开就进行重连
46 self.conn.ping(reconnect=True)
47 # 使用 execute() 执行sql
48 self.cur.execute(sql)
49 # 提交事务
50 self.conn.commit()
51 except Exception as e:
52 logger.info("操作MySQL出现错误,错误原因:{}".format(e))
53 # 回滚所有更改
54 self.conn.rollback()
55
56
57 db_load = DBLoad()
1 # @Time : 2022/8/23 14:45
2 # @Author : 付孟奇
3 from util.HandleLog import logger
4 from util.HandleFile import file_read_global
5 import xlrd
6 import json
7
8
9 class DateLoad:
10
11 # 读取Excel数据--按行
12 def load_excel(self, file, tag):
13 data_list = []
14 try:
15 book = xlrd.open_workbook(file)
16 tag = book.sheet_by_name(tag)
17 # 获取行数
18 row_num = tag.nrows
19 header = tag.row_values(0)
20 for i in range(1, row_num):
21 # 读取行
22 row_data = tag.row_values(i)
23 # 读取行中的每一列的值
24 d = dict(zip(header, row_data))
25 data_list.append(d)
26 return data_list
27 except Exception as e:
28 logger.error('测试用例打开失败,原因是:%s' % e)
29
30 # 查找特定key的value信息
31 def get_value(self, source_json, object_key):
32 result = []
33 if isinstance(source_json, dict) and object_key in source_json.keys():
34 value = source_json[object_key]
35 result.append(value)
36 return result
37 elif isinstance(source_json, (list, tuple)):
38 for item in source_json:
39 value = self.get_value(item, object_key)
40 if value == "None" or value is None:
41 pass
42 elif len(value) == 0:
43 pass
44 else:
45 result.append(value)
46 return result
47 else:
48 if isinstance(source_json, dict):
49 for k in source_json:
50 value = self.get_value(source_json[k], object_key)
51 if value == "None" or value is None:
52 pass
53 elif len(value) == 0:
54 pass
55 else:
56 for item in value:
57 result.append(item)
58 return result
59
60 # 处理请求的可变参数
61 def handle_params(self, args):
62 try:
63 if str(args).count('话术变量验证') == 1: # 话术变量场景测试参数特殊处理
64 from util.HandleSpeech import handle_speech
65 params_list = str(args).split('-')
66 args = handle_speech.getRestult(params_list[1])
67 return json.loads(args)
68 elif args[0] == '{':
69 args = json.loads(args)
70 old_key = [] # 变量的key的集合
71 old_value = [] # 变量集合
72 # 遍历请求参数中,所有的变量信息
73 for k, v in args.items():
74 if str(v)[0] == '#':
75 old_key.append(k)
76 old_value.append(v)
77 # 替换变量值
78 if len(old_value) != 0:
79 logger.info('需要替换的变量信息为:' + str(old_value))
80 key_dic = {}
81 for i in old_value:
82 v_key = str(i[1:]).split('.')
83 res = file_read_global(v_key)
84 key_dic[i] = res
85 logger.info('可变参数的信息为:' + str(key_dic))
86 # 参数替换
87 for j in key_dic:
88 self.dic_del(args, j, key_dic)
89 logger.info('可变参数替换完毕:' + str(args))
90 return args
91 else:
92 return ''
93 except:
94 return {'code': 1, 'result': '参数错误,请检查替换信息是否正确'}
95
96 # json格式字典处理
97 def dic_del(self, data_json, data_key, key_dic):
98 if isinstance(data_json, dict):
99 for k, v in data_json.items():
100 if v == data_key:
101 data_json[k] = key_dic[data_key]
102 else:
103 self.dic_del(v, data_key, key_dic)
104 elif isinstance(data_json, list):
105 for i in data_json:
106 self.dic_del(i, data_key, key_dic)
107
108
109 handle_data = DateLoad()
110
111 if __name__ == '__main__':
112 handle_data.handle_global()
1 # @Time : 2022/8/24 16:07
2 # @Author : 付孟奇
3 from config.VendorPath import global_path
4 from util.HandleLog import logger
5 import configparser
6 import json
7 import base64
8 import yaml
9
10
11 # 读取ini文件内容
12 def load_ini_file(file_path, sec):
13 logger.info("{} 文件加载中......".format(file_path))
14 config = configparser.ConfigParser()
15 config.read(file_path, encoding="UTF-8")
16 data = dict(config[sec])
17 logger.info("{} 文件加载成功......".format(file_path))
18 return data
19
20
21 # 读取yaml文件内容
22 def load_yaml_file(file_path):
23 logger.info("{} 文件加载中......".format(file_path))
24 with open(file_path, encoding='utf-8') as f:
25 data = yaml.safe_load(f)
26 logger.info("{} 文件加载成功......".format(file_path))
27 return data
28
29
30 # 读取json文件并重新存储
31 def file_read_save(file_path, file_key, file_value):
32 with open(file_path, 'r+') as f:
33 file_data = json.load(f)
34 file_data[str(file_key)] = file_value
35 f.seek(0)
36 f.truncate()
37 json.dump(file_data, f, indent=4, ensure_ascii=False)
38 logger.info('响应信息存储完毕!!!')
39
40
41 # 读取公共参数文件指定内容
42 def file_read_global(args):
43 with open(global_path, 'r') as f:
44 file_data = json.load(f)
45 res = file_data[args[0]][args[1]]
46 return res
47
48
49 # 读取图片转换64
50 def file_base_64(path):
51 with open(path, 'rb') as f:
52 base64_data = base64.b64encode(f.read())
53 data = base64_data.decode()
54 return data
1 # @Time : 2022/10/31 18:14
2 # @Author : 付孟奇
3 from util.HandleFile import load_yaml_file
4 from util.HandleDB import db_load
5 from config.VendorPath import base_path, global_path
6 import os
7 import json
8
9 ddl_file_path = os.path.join(base_path, 'sql', 'speech_variable.yaml')
10
11
12 class InitLoad:
13 def __init__(self):
14 print('111')
15
16 # 初始化数据库
17 def db_ini(self):
18 # 加载数据库建表SQL
19 res_yaml = load_yaml_file(ddl_file_path)
20 # 执行插入SQL
21 db_load.execute_db(res_yaml)
22 self.handle_global()
23
24 # 清空公共参数文件内容
25 def handle_global(self):
26 data = {}
27 json.dump(data, open(global_path, 'w'), indent=4)
28
29
30 handle_init = InitLoad()
31 if __name__ == '__main__':
32 handle_init.handle_global()
1 # @Time : 2022/8/22 15:40
2 # @Author : 付孟奇
3 import sys
4
5 '''
6 1、项目名称
7 2、项目环境
8 3、当前环境域名
9 4、邮件发送地址
10 5、邮件名称
11 6、联系人电话
12 '''
13
14
15 def handle_jenkins():
16 config_info = {}
17 # Jenkins参数
18 if len(sys.argv) > 1:
19 config_info['pro'] = sys.argv[1]
20 config_info['env'] = sys.argv[2]
21 config_info['host'] = sys.argv[3]
22 config_info['email'] = sys.argv[4]
23 config_info['title'] = sys.argv[5]
24 else:
25 # 本地兼容
26 config_info['pro'] = '话术变量'
27 config_info['env'] = 'staging'
28 config_info['host'] = 'https://staging-moonlight-life-video.situdata.com' # https://staging-moonlight-life-video.situdata.com
29 config_info['email'] = 'fumengqi@situdata.com'
30 config_info['title'] = '本地调试'
31 config_info['phone'] = '15737319294'
32 return config_info
1 # @Time : 2022/8/22 15:37
2 # @Author : 付孟奇
3 import logging
4 from config.VendorPath import log_path
5
6
7 class Log:
8 def insert_log(self, level, message):
9 # 创建一个logger
10 logger = logging.getLogger()
11 logger.setLevel(logging.DEBUG)
12 # 创建一个handler,用于写入日志文件
13 fh = logging.FileHandler(log_path, 'a', encoding='utf-8')
14 fh.setLevel(logging.DEBUG)
15 # 再创建一个handler,用于输出到控制台
16 ch = logging.StreamHandler()
17 ch.setLevel(logging.DEBUG)
18 # 定义handler的输出格式
19 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
20 fh.setFormatter(formatter)
21 ch.setFormatter(formatter)
22 # 给logger添加handler
23 logger.addHandler(fh)
24 logger.addHandler(ch)
25 # 记录一条日志
26 if level == 'info':
27 logger.info(message)
28 elif level == 'debug':
29 logger.debug(message)
30 elif level == 'warning':
31 logger.warning(message)
32 elif level == 'error':
33 logger.error(message)
34 logger.removeHandler(ch)
35 logger.removeHandler(fh)
36 # 关闭打开的文件
37 fh.close()
38
39 def debug(self, message):
40 self.insert_log('debug', message)
41
42 def info(self, message):
43 self.insert_log('info', message)
44
45 def warning(self, message):
46 self.insert_log('warning', message)
47
48 def error(self, message):
49 self.insert_log('error', message)
50
51
52 logger = Log()
1 # @Time : 2022/8/24 11:40
2 # @Author : 付孟奇
3 from requests import Timeout, RequestException
4 import requests
5
6
7 class DealRequest:
8 def __init__(self, method, url, headers, params):
9 self.method = method
10 self.url = url
11 self.headers = headers
12 self.params = params
13
14 def return_response(self):
15 return self.res_request()
16
17 def res_request(self):
18 if self.method == 'POST':
19 res = self.res_post(self.url, self.headers, self.params)
20 elif self.method == "GET":
21 res = self.res_get(self.url, self.headers, self.params)
22 elif self.method == "PUT":
23 res = self.res_put(url=self.url, params=self.params)
24 elif self.method == "DELETE":
25 res = self.res_delete(url=self.url, params=self.params, headers=self.headers)
26 else:
27 res = {'code': 1, 'result': '接口请求失败,当前请求方式不支持'}
28 return res
29
30 def res_post(self, url, headers, params):
31 try:
32 res = requests.request('POST', url, headers=headers, json=params)
33 if res.status_code == 200:
34 return res.json()
35 else:
36 return {'code': 1, 'result': '接口请求失败,返回状态码:%s' % str(res.status_code)}
37 except Timeout as e:
38 return {'code': 1, 'result': '请求超时:%s' % e}
39 except RequestException as e:
40 return {'code': 1, 'result': '请求异常:%s' % e}
41 except Exception as e:
42 return {'code': 1, 'result': 'post请求出错,出错原因:%s' % e}
43
44 def res_get(self, url, headers, params):
45 try:
46 if params == '':
47 res = requests.get(url, headers=headers)
48 else:
49 res = requests.get(url, headers=headers, params=params)
50 if res.status_code == 200:
51 return res.json()
52 else:
53 return {'code': 1, 'result': '接口请求失败,返回状态码:%s' % str(res.status_code)}
54 except Timeout as e:
55 return {'code': 1, 'result': '请求超时:%s' % e}
56 except RequestException as e:
57 return {'code': 1, 'result': '请求异常:%s' % e}
58 except Exception as e:
59 return {'code': 1, 'result': 'get请求出错,出错原因:%s' % e}
60
61 def res_put(self, url, params):
62 try:
63 r = requests.put(url, params=params)
64 except Timeout as e:
65 return {'code': 1, 'result': '请求超时:%s' % e}
66 except RequestException as e:
67 return {'code': 1, 'result': '请求异常:%s' % e}
68 except Exception as e:
69 return {'code': 1, 'result': 'put请求出错,出错原因:%s' % e}
70
71 def res_delete(self, url, headers, params):
72 try:
73 r = requests.delete(url, headers=headers, params=params)
74 except Timeout as e:
75 return {'code': 1, 'result': '请求超时:%s' % e}
76 except RequestException as e:
77 return {'code': 1, 'result': '请求异常:%s' % e}
78 except Exception as e:
79 return {'code': 1, 'result': 'delete请求出错,出错原因:%s' % e}
1 # @Time : 2022/10/20 11:56
2 # @Author : 付孟奇
3 from util.HandleLog import logger
4 from util.HandleData import handle_data
5 from util.HandleDB import db_load
6 from config.VendorPath import *
7 import copy
8 import json
9
10
11 class SpeechLoad:
12 def __init__(self):
13 # 获取Excel信息源
14 self.data_excel = handle_data.load_excel(excel_path, '纸质入件')
15 self.dic_excel = handle_data.load_excel(excel_path, '字典映射')
16 self.result_desc = None # 话术变量拼接的extra
17 self.list_order = []
18 self.list_insurance = []
19 self.list_insures = []
20 self.list_agent = []
21 self.list_applicant = []
22 self.dic_key = []
23 self.case_num = None
24 self.del_excel()
25
26 # 处理纸质入件信息参数
27 def del_data_excel(self):
28 num_base = 0
29 for i in self.data_excel:
30 # 数据分类
31 if i['group_id'] == 0:
32 num_base += 1
33 elif i['group_id'] == 4:
34 self.list_order.append(i)
35 elif i['group_id'] == 5 and i['is_insured'] == 0:
36 self.list_insurance.append(i)
37 elif i['group_id'] == 5 and i['is_insured'] == 1:
38 self.list_insures.append(i)
39 elif i['group_id'] == 6:
40 self.list_agent.append(i)
41 elif i['group_id'] == 7:
42 self.list_applicant.append(i)
43
44 # 处理数据字典参数与话术变量参数一致
45 def del_excel(self):
46 for index in range(len(self.dic_excel)):
47 str_tag = str(self.dic_excel[index]['函数TAG']).split('Enums')[0]
48 new_tag = str_tag[0].lower() + str_tag[1:]
49 self.dic_key.append(new_tag)
50 self.dic_excel[index]['函数TAG'] = new_tag
51 self.dic_key = list(set(self.dic_key))
52
53 # 合成入参字符串
54 def getJsonString(self, arg_list):
55 result = '{'
56 for i in arg_list: # 处理每一行信息
57 i_v = i.get(self.case_num)
58 if i_v == '' or i_v is None:
59 i_v = 'test_' + i.get('name')
60 # elif i.get('name') in self.dic_key:
61 else:
62 i_v = self.getArgs(i.get('name'), i_v)
63 result += '''"{}":"{}",'''.format(i.get('name'), i_v)
64 result += '}'
65 return result.replace(',}', '}')
66
67 # 合成数据结构
68 def getJsonDesc(self, arg_list):
69 result = '{'
70 for i in arg_list: # 处理每一行信息
71 i_v = i.get(self.case_num)
72 if i_v == '' or i_v is None:
73 i_v = 'test_' + i.get('name')
74 else:
75 i_v = self.getArgs(i.get('name'), i_v)
76 result += '''"{}":"{}",'''.format(i.get('desc'), i_v)
77 result += '}'
78 return result.replace(',}', '}')
79
80 # 字典映射
81 def getArgs(self, arg_k, arg_v):
82 # 数据字典替换
83 result = ''
84 for i in self.dic_excel:
85 if i['函数TAG'] == 'applicantSex' and arg_k == 'gender' and int(i['dict_value']) == int(arg_v):
86 result = i['dict_label']
87 elif i['函数TAG'] == 'insuredRelation' and arg_k == 'relation' and i['dict_value'] == arg_v:
88 result = i['dict_label']
89 elif i['函数TAG'] == 'orderType' and arg_k == 'policyType' and i['dict_value'] == arg_v:
90 result = i['dict_label']
91 elif i['函数TAG'] == arg_k and i['dict_value'] == arg_v:
92 result = i['dict_label']
93 else: # 未找到替换数据
94 continue
95 if result == '':
96 return arg_v
97 else:
98 return result
99
100 # 组装订单请求信息
101 def getRestult(self, case_num):
102 self.case_num = case_num # 执行的case内容
103 self.del_data_excel() # 处理纸质入件数据源
104 insurance_json = ''
105 insurance_desc_json = ''
106 order_json = '''"order":''' + self.getJsonString(self.list_order) # 订单基本信息
107 order_desc_json = '''"订单基本信息":''' + self.getJsonDesc(self.list_order)
108 agent_json = '''"agent":''' + self.getJsonString(self.list_agent) # 销售人员信息
109 agent__desc_json = '''"销售人员信息":''' + self.getJsonDesc(self.list_agent)
110 applicant_json = '''"applicant":''' + self.getJsonString(self.list_applicant) # 投保人信息
111 applicant_desc_json = '''"投保人信息":''' + self.getJsonDesc(self.list_applicant)
112 # 处理被保人信息
113 list_people_1 = copy.deepcopy(self.list_insures)
114 list_people_2 = copy.deepcopy(self.list_insures)
115 for i in range(len(self.list_insures)):
116 i_list = self.list_insures[i][case_num].split(';')
117 if len(i_list) is 2:
118 list_people_1[i][case_num] = i_list[0]
119 list_people_2[i][case_num] = i_list[1]
120 elif len(i_list) is 1:
121 list_people_1[i][case_num] = i_list[0]
122 list_people_2[i][case_num] = ''
123 else:
124 list_people_1[i][case_num] = ''
125 list_people_2[i][case_num] = ''
126 # 处理投保基本信息
127 if self.case_num == 'test_case1': # 处理一主一附
128 logger.info('订单类型是一主一附')
129 list_product_1 = copy.deepcopy(self.list_insurance)
130 list_product_2 = copy.deepcopy(self.list_insurance)
131 for i in range(len(self.list_insurance)): # 拆分组装主险信息、附加险信息
132 i_list = self.list_insurance[i][case_num].split(';')
133 if len(i_list) is 2:
134 list_product_1[i][case_num] = i_list[0]
135 list_product_2[i][case_num] = i_list[1]
136 elif len(i_list) is 1:
137 list_product_1[i][case_num] = i_list[0]
138 list_product_2[i][case_num] = ''
139 else:
140 list_product_1[i][case_num] = ''
141 list_product_2[i][case_num] = ''
142 main_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_1).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
143 main_insurance_desc_json = '''"投保基本信息1":''' + (self.getJsonDesc(list_product_1) + self.getJsonDesc(list_people_1)).replace('}{', ',')
144 additional_insurance_json = '''"additionalInsurances":[''' + self.getJsonString(list_product_2).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}]"
145 additional_insurance_desc_json = '''"投保基本信息2":''' + (self.getJsonDesc(list_product_2) + self.getJsonDesc(list_people_2)).replace('}{', ',')
146 insurance_json = '''"insurance":[{''' + main_insurance_json + "," + additional_insurance_json + "}]"
147 insurance_desc_json = main_insurance_desc_json + "," + additional_insurance_desc_json
148 elif self.case_num == 'test_case2': # 处理一主多附
149 logger.info('订单类型是一主多附')
150 list_product_1 = copy.deepcopy(self.list_insurance)
151 list_product_2 = copy.deepcopy(self.list_insurance)
152 list_product_3 = copy.deepcopy(self.list_insurance)
153 for i in range(len(self.list_insurance)): # 拆分组装主险信息、附加险信息
154 i_list = self.list_insurance[i][case_num].split(';')
155 if len(i_list) is 3:
156 list_product_1[i][case_num] = i_list[0]
157 list_product_2[i][case_num] = i_list[1]
158 list_product_3[i][case_num] = i_list[2]
159 elif len(i_list) is 2:
160 list_product_1[i][case_num] = i_list[0]
161 list_product_2[i][case_num] = i_list[1]
162 elif len(i_list) is 1:
163 list_product_1[i][case_num] = i_list[0]
164 list_product_2[i][case_num] = ''
165 else:
166 list_product_1[i][case_num] = ''
167 list_product_2[i][case_num] = ''
168 main_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_1).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
169 add_1_json = self.getJsonString(list_product_2).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
170 add_2_json = self.getJsonString(list_product_3).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
171 additional_insurance_json = '''"additionalInsurances":[''' + add_1_json + ',' + add_2_json + "]"
172 insurance_json = '''"insurance":[{''' + main_insurance_json + "," + additional_insurance_json + "}]"
173
174 main_insurance_desc_json = '''"投保基本信息1":''' + (self.getJsonDesc(list_product_1) + self.getJsonDesc(list_people_1)).replace('}{', ',')
175 add_1_desc_json = '''"投保基本信息2":''' + (self.getJsonDesc(list_product_2) + self.getJsonDesc(list_people_2)).replace('}{', ',')
176 add_2_desc_json = '''"投保基本信息3":''' + (self.getJsonDesc(list_product_3) + self.getJsonDesc(list_people_2)).replace('}{', ',')
177 insurance_desc_json = main_insurance_desc_json + "," + add_1_desc_json + ',' + add_2_desc_json
178 elif self.case_num == 'test_case3': # 处理多主多附
179 logger.info('订单类型是多主多附')
180 list_product_1 = copy.deepcopy(self.list_insurance)
181 list_product_2 = copy.deepcopy(self.list_insurance)
182 list_product_3 = copy.deepcopy(self.list_insurance)
183 list_product_4 = copy.deepcopy(self.list_insurance)
184 for i in range(len(self.list_insurance)): # 拆分组装主险信息、附加险信息
185 i_list = self.list_insurance[i][case_num].split(';')
186 if len(i_list) is 4:
187 list_product_1[i][case_num] = i_list[0]
188 list_product_2[i][case_num] = i_list[1]
189 list_product_3[i][case_num] = i_list[2]
190 list_product_4[i][case_num] = i_list[3]
191 elif len(i_list) is 3:
192 list_product_1[i][case_num] = i_list[0]
193 list_product_2[i][case_num] = i_list[1]
194 list_product_3[i][case_num] = i_list[2]
195 elif len(i_list) is 2:
196 list_product_1[i][case_num] = i_list[0]
197 list_product_2[i][case_num] = i_list[1]
198 elif len(i_list) is 1:
199 list_product_1[i][case_num] = i_list[0]
200 list_product_2[i][case_num] = ''
201 else:
202 list_product_1[i][case_num] = ''
203 list_product_2[i][case_num] = ''
204 main_1_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_1).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
205 main_2_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_2).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
206 add_1_json = self.getJsonString(list_product_3).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
207 add_2_json = self.getJsonString(list_product_4).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
208 additional_insurance_json = '''"additionalInsurances":[''' + add_1_json + ',' + add_2_json + "]"
209 insurance_json = '''"insurance":[{''' + main_1_insurance_json + ',' + additional_insurance_json + '},{' + main_2_insurance_json + ',' + additional_insurance_json + '}]'
210
211 main_1_insurance_desc_json = '''"投保基本信息1":''' + (self.getJsonDesc(list_product_1) + self.getJsonDesc(list_people_1)).replace('}{', ',')
212 main_2_insurance_desc_json = '''"投保基本信息2":''' + (self.getJsonDesc(list_product_2) + self.getJsonDesc(list_people_1)).replace('}{', ',')
213 add_1_desc_json = '''"投保基本信息3":''' + (self.getJsonDesc(list_product_3) + self.getJsonDesc(list_people_2)).replace('}{', ',')
214 add_2_desc_json = '''"投保基本信息4":''' + (self.getJsonDesc(list_product_4) + self.getJsonDesc(list_people_2)).replace('}{', ',')
215 insurance_desc_json = main_1_insurance_desc_json + ',' + main_2_insurance_desc_json + ',' + add_1_desc_json + ',' + add_2_desc_json
216 result = "{" + order_json + "," + agent_json + "," + applicant_json + "," + insurance_json + "}"
217 self.result_desc = "{" + order_desc_json + "," + agent__desc_json + "," + applicant_desc_json + "," + insurance_desc_json + "}"
218 logger.info("话术变量参数自动生成成功!")
219 logger.info("订单数据结构为" + str(self.result_desc))
220 return result
221
222 def getAssert(self, orderRecordId):
223 # 研发代码生成的extra_info信息
224 res_extra = db_load.select_db(('''SELECT extra_info FROM order_base_info WHERE id={};''').format(orderRecordId))
225 auto_dic = {}
226 extra_dic = {}
227 for k, v in json.loads(self.result_desc).items():
228 for k_, v_ in v.items():
229 auto_dic[(k + '/' + k_)] = v_
230 for m, n in json.loads(res_extra[0]['extra_info']).items():
231 for m_, n_ in n.items():
232 extra_dic[m + '/' + m_] = n_
233
234 error_list = []
235 lack_list = []
236 res_msg = None
237 for i in extra_dic:
238 if i in auto_dic:
239 if extra_dic[i] == auto_dic[i]:
240 res_msg = {'code': 0, 'msg': '数据处理成功'}
241 else:
242 error_list.append(i)
243 else:
244 lack_list.append(i)
245 if len(lack_list) != 0 and len(error_list) != 0:
246 res_msg = {'code': 1, 'msg': [{'数据生成异常,下列数据不存在,请核对话术变量表': str(lack_list)}, {'数据生成错误,下列数据值与原始值不符合': str(error_list)}]}
247 elif len(lack_list) != 0:
248 res_msg = {'code': 1, 'msg': '数据生成异常,下列数据不存在,请核对话术变量表:' + str(lack_list)}
249 elif len(error_list) != 0:
250 res_msg = {'code': 1, 'msg': '数据生成错误,下列数据值与原始值不符合:' + str(error_list)}
251 return res_msg
252
253
254 handle_speech = SpeechLoad()
255 if __name__ == '__main__':
256 handle_speech.getRestult(case_num='test_case1')
257 # handle_speech.getArgs()
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!