c765d9b1 by 付孟奇

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

0 parents
No preview for this file type
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="111" name="Python" />
</Languages>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/SituApiSupport.iml" filepath="$PROJECT_DIR$/.idea/SituApiSupport.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
# @Time : 2022/8/23 15:13
# @Author : 付孟奇
from unittestreport import TestRunner
from util.HandleJenkins import handle_jenkins
from util.HandleData import handle_data
from config.VendorPath import base_path
import unittest
# 执行的项目文件目录
pro = handle_jenkins()['pro']
email_data = handle_jenkins()['email']
email = str(email_data).split(',')
if len(email) > 1:
email = ','.join(email)
title = handle_jenkins()['title']
env = handle_jenkins()['env']
# 执行数据库初始化
# TODO
# handle_data.db_ini()
# handle_data.handle_global()
# 执行文件地址
# TODO
suite_case = unittest.defaultTestLoader.discover(base_path + '/case/', pattern='*.py')
runner = TestRunner(suite_case,
filename="report.html",
report_dir='./report',
title=title,
tester='测试组',
desc='接口自动化测试报告',
templates=1,
pro=pro,
env=env
)
runner.run()
# runner.send_email(host="smtp.exmail.qq.com",
# port=465,
# user="fumengqi@situdata.com",
# password="Fz315824",
# to_addrs=email)
# 执行数据库清理
# TODO
# @Time : 2022/8/23 11:15
# @Author : 付孟奇
from ddt import ddt, data
from config.VendorPath import excel_path, global_path
from util.HandleJenkins import handle_jenkins
from util.HandleData import handle_data
from util.HandleSpeech import handle_speech
from util.HandleRequest import DealRequest
from util.HandleLog import logger
from util.HandleFile import file_read_save
import unittest
import json
import re
import operator
# 获取配置信息
vendor_name = handle_jenkins()['pro']
# 获取项目所有测试用例
data_list = handle_data.load_excel(excel_path, '话术变量验证')
@ddt
class DDTTest(unittest.TestCase):
@data(*data_list)
def test_case(self, data_list):
logger.info('***************【' + str(data_list['desc']) + '】接口测试开始***************')
logger.info('接口测试用例为:' + str(data_list))
# 1、设置报告的接口信息
self._testMethodName = data_list['uri']
if data_list['positive_case'] == '正向':
self._testMethodDoc = '正向case--' + data_list['desc']
elif data_list['positive_case'] == '反向':
self._testMethodDoc = '正向case--' + data_list['desc']
else:
self._testMethodDoc = data_list['desc']
# 2、参数整理
re_headers = handle_data.handle_params(data_list['headers'])
logger.info('请求头为:' + str(re_headers))
re_method = data_list['method']
re_url = handle_jenkins()['host'] + data_list['uri']
re_params = handle_data.handle_params(data_list['params'])
logger.info('请求参数为:' + str(re_params))
# 3、进行接口请求
res = DealRequest(re_method, re_url, re_headers, re_params).return_response()
logger.info('接口测试结果为:' + str(res))
# 4、响应断言
assert_num = str(data_list['response_assert']).count('话术变量验证') # 判断是否是话术场景
if assert_num == 0:
assert_data = json.loads(data_list['response_assert'])
for k in assert_data:
self.assertEqual(handle_data.get_value(res, k)[0], assert_data[k])
else: # 话术变量验证
orderRecordId = res.get('result').get('orderRecordId')
if orderRecordId is not None:
assert_msg = handle_speech.getAssert(orderRecordId)
if assert_msg['code'] ==0:
logger.info(assert_msg['msg'])
else:
raise Exception(assert_msg['msg'])
# 5、判断是否需要保存响应信息:正向case且有相应需要保存的
if res['code'] == 0:
if data_list['save_args'] != '' and data_list['positive_case'] == '正向':
list_args = re.split(r'[,,;;、.。]', data_list['save_args'])
dic_args = {}
for i in list_args:
res_args = handle_data.get_value(res, i)[0]
dic_args[i] = res_args
file_read_save(global_path, str(int(data_list['id'])), dic_args)
logger.info('***************【' + str(data_list['desc']) + '】接口测试结束***************')
if __name__ == '__main__':
unittest.main()
No preview for this file type
# @Time : 2022/8/22 15:39
# @Author : 付孟奇
import os
import time
# 项目根路径
base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 日志路径
log_path = os.path.join(base_path, 'log/{}.log'.format(time.strftime('%Y-%m-%d')))
# 公共参数文件路径
global_path = os.path.join(base_path, 'config/global_params.json')
# Excel数据路径
excel_path = os.path.join(base_path, 'data/自动化接口测试.xlsx')
# 生成报告文件路径
report_path = os.path.join(base_path, 'report/report.html')
No preview for this file type
[mysql]
;mysql_host = localhost
;mysql_port = 3306
;mysql_user = root
;mysql_passwd = fumengqi
;mysql_db = automation
mysql_host = rm-2zen60zh797n662w4lo.mysql.rds.aliyuncs.com
mysql_port = 3306
mysql_user = sanheyi_stg
mysql_passwd = x39l&Cgid150t4kvfKA
mysql_db = sanheyi_stg
\ No newline at end of file
{
"1": {
"md5": "d003784d3e6dbc116efcb6d550440465"
},
"2": {
"token": "28fbd3f975224bb995403d1bb3d36acb"
},
"3": {
"orderRecordId": 157
}
}
\ 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.
2022-09-19 17:17:54,346 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-09-19 17:17:54,348 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-09-19 17:18:24,535 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-09-19 17:18:24,537 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-09-19 17:18:24,768 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-09-19 17:18:24,769 - root - INFO - 请求头为:
2022-09-19 17:18:24,770 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-09-19 17:18:24,959 - root - INFO - 断言处理结束!!!
2022-09-19 17:18:24,962 - root - INFO - 响应信息存储完毕!!!
2022-09-19 17:18:24,963 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-09-19 17:18:24,963 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-09-19 17:18:24,964 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-09-19 17:18:24,964 - root - INFO - 需要替换的变量信息为:['#1.md5']
2022-09-19 17:18:24,965 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
2022-09-19 17:18:24,966 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
2022-09-19 17:18:24,966 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-09-19 17:18:25,566 - root - INFO - 断言处理结束!!!
2022-09-19 17:18:25,567 - root - INFO - 响应信息存储完毕!!!
2022-09-19 17:18:25,568 - root - INFO - ***************【APP登录】接口测试结束***************
2022-09-19 17:18:25,570 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-09-19 17:18:25,571 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-19 17:18:25,573 - root - INFO - 可变参数的信息为:{'#2.token': 'a75eeaf02c2f4331878a261b05600691'}
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'}
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'}
2022-09-19 17:18:25,576 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
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}]}}
2022-09-19 17:18:26,528 - root - INFO - 断言处理结束!!!
2022-09-19 17:18:26,529 - root - INFO - 响应信息存储完毕!!!
2022-09-19 17:18:26,529 - root - INFO - ***************【扫码入件】接口测试结束***************
2022-09-19 17:18:26,531 - root - INFO - ***************【创建订单】接口测试开始***************
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': ''}
2022-09-19 17:18:26,532 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-19 17:18:26,533 - root - INFO - 可变参数的信息为:{'#2.token': 'a75eeaf02c2f4331878a261b05600691'}
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'}
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'}
2022-09-19 17:18:26,538 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
2022-09-19 17:18:26,541 - root - INFO - 可变参数的信息为:{'#3.taskId': '7cb1ebbf266b48688ecd157166838d4e', '#3.orderSource': 1, '#3.systemSource': ''}
2022-09-19 17:18:26,541 - root - INFO - 可变参数替换完毕:{'taskId': '7cb1ebbf266b48688ecd157166838d4e', 'orderSource': 1, 'systemSource': ''}
2022-09-19 17:18:26,542 - root - INFO - 请求参数为:{'taskId': '7cb1ebbf266b48688ecd157166838d4e', 'orderSource': 1, 'systemSource': ''}
2022-09-19 17:18:27,240 - root - INFO - 接口测试结果为:{'code': 2969, 'msg': '话术未上架', 'success': False, 'result': None}
2022-09-19 17:18:49,455 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-09-19 17:18:49,456 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-09-19 17:18:49,547 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-09-19 17:18:49,548 - root - INFO - 请求头为:
2022-09-19 17:18:49,549 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-09-19 17:18:49,749 - root - INFO - 断言处理结束!!!
2022-09-19 17:18:49,751 - root - INFO - 响应信息存储完毕!!!
2022-09-19 17:18:49,751 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-09-19 17:18:49,751 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-09-19 17:18:49,752 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-09-19 17:18:49,752 - root - INFO - 需要替换的变量信息为:['#1.md5']
2022-09-19 17:18:49,752 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
2022-09-19 17:18:49,753 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
2022-09-19 17:18:49,753 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-09-19 17:18:50,408 - root - INFO - 断言处理结束!!!
2022-09-19 17:18:50,410 - root - INFO - 响应信息存储完毕!!!
2022-09-19 17:18:50,410 - root - INFO - ***************【APP登录】接口测试结束***************
2022-09-19 17:18:50,411 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-09-19 17:18:50,412 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-19 17:18:50,412 - root - INFO - 可变参数的信息为:{'#2.token': 'b30ff875522e48358d79833deba738e0'}
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'}
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'}
2022-09-19 17:18:50,414 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
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}]}}
2022-09-19 17:18:50,872 - root - INFO - 断言处理结束!!!
2022-09-19 17:18:50,909 - root - INFO - 响应信息存储完毕!!!
2022-09-19 17:18:50,910 - root - INFO - ***************【扫码入件】接口测试结束***************
2022-09-19 17:18:50,911 - root - INFO - ***************【创建订单】接口测试开始***************
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': ''}
2022-09-19 17:18:50,912 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-19 17:18:50,913 - root - INFO - 可变参数的信息为:{'#2.token': 'b30ff875522e48358d79833deba738e0'}
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'}
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'}
2022-09-19 17:18:50,915 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
2022-09-19 17:18:50,916 - root - INFO - 可变参数的信息为:{'#3.taskId': '93a049a132b54a17a6e7b9e4227f533e', '#3.orderSource': 1, '#3.systemSource': ''}
2022-09-19 17:18:50,917 - root - INFO - 可变参数替换完毕:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
2022-09-19 17:18:50,917 - root - INFO - 请求参数为:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
2022-09-19 17:18:51,410 - root - INFO - 接口测试结果为:{'code': 2969, 'msg': '话术未上架', 'success': False, 'result': None}
2022-09-26 10:59:40,251 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-09-26 10:59:40,254 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-09-26 11:00:14,730 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-09-26 11:00:14,732 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-09-26 11:00:21,456 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-09-26 11:00:21,458 - root - INFO - 请求头为:
2022-09-26 11:00:21,458 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-09-26 11:00:21,579 - root - INFO - 断言处理结束!!!
2022-09-26 11:00:21,582 - root - INFO - 响应信息存储完毕!!!
2022-09-26 11:00:21,583 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-09-26 11:00:21,583 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-09-26 11:00:21,583 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-09-26 11:00:21,584 - root - INFO - 需要替换的变量信息为:['#1.md5']
2022-09-26 11:00:21,584 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
2022-09-26 11:00:21,584 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
2022-09-26 11:00:21,584 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-09-26 11:00:22,038 - root - INFO - 断言处理结束!!!
2022-09-26 11:00:22,040 - root - INFO - 响应信息存储完毕!!!
2022-09-26 11:00:22,040 - root - INFO - ***************【APP登录】接口测试结束***************
2022-09-26 11:00:22,041 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-09-26 11:00:22,041 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-26 11:00:22,041 - root - INFO - 可变参数的信息为:{'#2.token': '0df8e6d6406447728c0d463b887d3ba7'}
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'}
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'}
2022-09-26 11:00:22,042 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
2022-09-26 11:00:22,898 - root - INFO - 接口测试结果为:{'code': -5, 'msg': '订单返回数据状态异常了', 'success': False, 'result': None}
2022-09-26 11:00:22,905 - root - INFO - ***************【创建订单】接口测试开始***************
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': ''}
2022-09-26 11:00:22,906 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-26 11:00:22,907 - root - INFO - 可变参数的信息为:{'#2.token': '0df8e6d6406447728c0d463b887d3ba7'}
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'}
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'}
2022-09-26 11:00:22,908 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
2022-09-26 11:00:22,909 - root - INFO - 可变参数的信息为:{'#3.taskId': '93a049a132b54a17a6e7b9e4227f533e', '#3.orderSource': 1, '#3.systemSource': ''}
2022-09-26 11:00:22,909 - root - INFO - 可变参数替换完毕:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
2022-09-26 11:00:22,910 - root - INFO - 请求参数为:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
2022-09-26 11:00:23,311 - root - INFO - 接口测试结果为:{'code': 2969, 'msg': '话术未上架', 'success': False, 'result': None}
2022-09-26 14:27:02,027 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-09-26 14:27:02,030 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-09-26 14:27:02,303 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-09-26 14:27:02,304 - root - INFO - 请求头为:
2022-09-26 14:27:02,304 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-09-26 14:27:02,483 - root - INFO - 断言处理结束!!!
2022-09-26 14:27:02,487 - root - INFO - 响应信息存储完毕!!!
2022-09-26 14:27:02,487 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-09-26 14:27:02,487 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-09-26 14:27:02,488 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-09-26 14:27:02,488 - root - INFO - 需要替换的变量信息为:['#1.md5']
2022-09-26 14:27:02,488 - root - INFO - 可变参数的信息为:{'#1.md5': '24e345fbfb20881bdbd73b2e5a19a775'}
2022-09-26 14:27:02,488 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
2022-09-26 14:27:02,489 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '24e345fbfb20881bdbd73b2e5a19a775', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-09-26 14:27:03,284 - root - INFO - 断言处理结束!!!
2022-09-26 14:27:03,285 - root - INFO - 响应信息存储完毕!!!
2022-09-26 14:27:03,285 - root - INFO - ***************【APP登录】接口测试结束***************
2022-09-26 14:27:03,285 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-09-26 14:27:03,286 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-26 14:27:03,287 - root - INFO - 可变参数的信息为:{'#2.token': '04966933a44e4e8d87f7b009708dd810'}
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'}
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'}
2022-09-26 14:27:03,288 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":1662536957045,"sysType":"1"}'}
2022-09-26 14:27:03,437 - root - INFO - 接口测试结果为:{'code': -5, 'msg': '订单返回数据状态异常了', 'success': False, 'result': None}
2022-09-26 14:27:03,445 - root - INFO - ***************【创建订单】接口测试开始***************
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': ''}
2022-09-26 14:27:03,445 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-09-26 14:27:03,446 - root - INFO - 可变参数的信息为:{'#2.token': '04966933a44e4e8d87f7b009708dd810'}
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'}
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'}
2022-09-26 14:27:03,447 - root - INFO - 需要替换的变量信息为:['#3.taskId', '#3.orderSource', '#3.systemSource']
2022-09-26 14:27:03,448 - root - INFO - 可变参数的信息为:{'#3.taskId': '93a049a132b54a17a6e7b9e4227f533e', '#3.orderSource': 1, '#3.systemSource': ''}
2022-09-26 14:27:03,449 - root - INFO - 可变参数替换完毕:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
2022-09-26 14:27:03,449 - root - INFO - 请求参数为:{'taskId': '93a049a132b54a17a6e7b9e4227f533e', 'orderSource': 1, 'systemSource': ''}
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}}
2022-09-26 14:27:03,829 - root - INFO - 断言处理结束!!!
2022-09-26 14:27:03,829 - root - INFO - ***************【创建订单】接口测试结束***************
2022-10-17 16:34:00,037 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-17 16:34:00,039 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-17 16:34:16,574 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-17 16:34:16,574 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-17 16:35:51,541 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-17 16:35:51,543 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-17 16:37:04,101 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-17 16:37:04,102 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-17 18:09:44,684 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-17 18:09:44,686 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-17 18:11:42,848 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-17 18:11:42,849 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-17 18:58:25,502 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
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.
2022-10-19 10:08:54,502 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:08:54,503 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:08:54,721 - root - INFO - 订单类型是一主一附
2022-10-19 10:19:48,291 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:19:48,293 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:19:48,484 - root - INFO - ***************【APP更新】接口测试开始***************
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': ''}
2022-10-19 10:19:48,485 - root - INFO - 请求头为:
2022-10-19 10:19:48,485 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
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}}
2022-10-19 10:19:48,638 - root - INFO - 断言处理结束!!!
2022-10-19 10:19:48,638 - root - INFO - ***************【APP更新】接口测试结束***************
2022-10-19 10:19:48,639 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-10-19 10:19:48,641 - root - INFO - 请求头为:
2022-10-19 10:19:48,641 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-10-19 10:19:48,728 - root - INFO - 断言处理结束!!!
2022-10-19 10:19:48,729 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-10-19 10:19:48,730 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-10-19 10:19:48,732 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-10-19 10:19:48,733 - root - INFO - 需要替换的变量信息为:['#2.md5']
2022-10-19 10:19:48,736 - root - INFO - 请求参数为:{'code': 1, 'result': '参数格式异常,请检查'}
2022-10-19 10:19:48,859 - root - INFO - 接口测试结果为:{'code': 2910, 'msg': '没有权限', 'success': False, 'result': None}
2022-10-19 10:19:48,866 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-10-19 10:19:48,868 - root - INFO - 需要替换的变量信息为:['#3.token']
2022-10-19 10:19:48,868 - root - INFO - 请求头为:{'code': 1, 'result': '参数格式异常,请检查'}
2022-10-19 10:19:48,868 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
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'>"}
2022-10-19 10:43:20,767 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:43:20,769 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:43:20,938 - root - INFO - ***************【APP更新】接口测试开始***************
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': ''}
2022-10-19 10:43:20,939 - root - INFO - 请求头为:
2022-10-19 10:43:20,939 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
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}}
2022-10-19 10:43:21,159 - root - INFO - 断言处理结束!!!
2022-10-19 10:43:21,160 - root - INFO - ***************【APP更新】接口测试结束***************
2022-10-19 10:43:21,161 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-10-19 10:43:21,162 - root - INFO - 请求头为:
2022-10-19 10:43:21,163 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-10-19 10:43:21,248 - root - INFO - 断言处理结束!!!
2022-10-19 10:43:21,248 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-10-19 10:43:21,250 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-10-19 10:43:21,251 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-10-19 10:43:21,252 - root - INFO - 需要替换的变量信息为:['#2.md5']
2022-10-19 10:43:21,254 - root - INFO - 请求参数为:{'code': 1, 'result': '参数替换异常,请联系管理员检查'}
2022-10-19 10:43:21,766 - root - INFO - 接口测试结果为:{'code': 2910, 'msg': '没有权限', 'success': False, 'result': None}
2022-10-19 10:43:21,771 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-10-19 10:43:21,772 - root - INFO - 需要替换的变量信息为:['#3.token']
2022-10-19 10:43:21,773 - root - INFO - 请求头为:{'code': 1, 'result': '参数替换异常,请联系管理员检查'}
2022-10-19 10:43:21,773 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
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'>"}
2022-10-19 10:45:43,470 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:45:43,470 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:45:43,581 - root - INFO - ***************【APP更新】接口测试开始***************
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': ''}
2022-10-19 10:45:43,582 - root - INFO - 请求头为:
2022-10-19 10:45:43,582 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
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}}
2022-10-19 10:45:43,891 - root - INFO - 断言处理结束!!!
2022-10-19 10:45:43,891 - root - INFO - ***************【APP更新】接口测试结束***************
2022-10-19 10:45:43,892 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-10-19 10:45:43,892 - root - INFO - 请求头为:
2022-10-19 10:45:43,892 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-10-19 10:45:43,968 - root - INFO - 断言处理结束!!!
2022-10-19 10:45:43,969 - root - INFO - 响应信息存储完毕!!!
2022-10-19 10:45:43,970 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-10-19 10:45:43,970 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-10-19 10:45:43,970 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-10-19 10:45:43,971 - root - INFO - 需要替换的变量信息为:['#2.md5']
2022-10-19 10:45:43,971 - root - INFO - 可变参数的信息为:{'#2.md5': '3ac6f138ccd7b855b371b2b705d0a877'}
2022-10-19 10:45:43,971 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
2022-10-19 10:45:43,971 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-10-19 10:45:44,411 - root - INFO - 断言处理结束!!!
2022-10-19 10:45:44,412 - root - INFO - 响应信息存储完毕!!!
2022-10-19 10:45:44,412 - root - INFO - ***************【APP登录】接口测试结束***************
2022-10-19 10:45:44,413 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-10-19 10:45:44,415 - root - INFO - 需要替换的变量信息为:['#3.token']
2022-10-19 10:45:44,417 - root - INFO - 可变参数的信息为:{'#3.token': '8bd5c7724791466ea205eaa91ab77715'}
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'}
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'}
2022-10-19 10:45:44,419 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
2022-10-19 10:45:44,885 - root - INFO - 接口测试结果为:{'code': 1, 'result': '请求异常:Expecting value: line 1 column 1 (char 0)'}
2022-10-19 10:46:19,899 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:46:19,900 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:46:19,991 - root - INFO - ***************【APP更新】接口测试开始***************
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': ''}
2022-10-19 10:46:19,992 - root - INFO - 请求头为:
2022-10-19 10:46:19,992 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
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}}
2022-10-19 10:46:20,086 - root - INFO - 断言处理结束!!!
2022-10-19 10:46:20,086 - root - INFO - ***************【APP更新】接口测试结束***************
2022-10-19 10:46:20,087 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-10-19 10:46:20,088 - root - INFO - 请求头为:
2022-10-19 10:46:20,089 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-10-19 10:46:20,212 - root - INFO - 断言处理结束!!!
2022-10-19 10:46:20,214 - root - INFO - 响应信息存储完毕!!!
2022-10-19 10:46:20,215 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-10-19 10:46:20,215 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-10-19 10:46:20,217 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-10-19 10:46:20,217 - root - INFO - 需要替换的变量信息为:['#2.md5']
2022-10-19 10:46:20,218 - root - INFO - 可变参数的信息为:{'#2.md5': '3ac6f138ccd7b855b371b2b705d0a877'}
2022-10-19 10:46:20,219 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
2022-10-19 10:46:20,219 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-10-19 10:46:20,890 - root - INFO - 断言处理结束!!!
2022-10-19 10:46:20,891 - root - INFO - 响应信息存储完毕!!!
2022-10-19 10:46:20,891 - root - INFO - ***************【APP登录】接口测试结束***************
2022-10-19 10:46:20,892 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-10-19 10:46:20,893 - root - INFO - 需要替换的变量信息为:['#3.token']
2022-10-19 10:46:20,894 - root - INFO - 可变参数的信息为:{'#3.token': '756b6a3b9b704fdab262dbb11aff30e0'}
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'}
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'}
2022-10-19 10:46:20,895 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
2022-10-19 10:46:21,213 - root - INFO - 接口测试结果为:{'code': 1, 'result': '请求异常:Expecting value: line 1 column 1 (char 0)'}
2022-10-19 10:50:19,921 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:50:19,922 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:50:20,111 - root - INFO - 订单类型是一主一附
2022-10-19 10:50:28,458 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 10:50:28,459 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 10:50:28,570 - root - INFO - 订单类型是一主一附
2022-10-19 21:42:18,089 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:42:18,091 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:42:18,437 - root - INFO - 订单类型是一主一附
2022-10-19 21:43:01,030 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:43:01,031 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:43:01,192 - root - INFO - 订单类型是一主一附
2022-10-19 21:46:51,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:46:51,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:46:51,587 - root - INFO - 订单类型是一主一附
2022-10-19 21:47:08,809 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:47:08,811 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:47:08,968 - root - INFO - 订单类型是一主一附
2022-10-19 21:47:14,615 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:47:14,616 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:47:15,239 - root - INFO - 订单类型是一主一附
2022-10-19 21:50:49,152 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:50:49,154 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:50:49,513 - root - INFO - 订单类型是一主一附
2022-10-19 21:51:40,034 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:51:40,036 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:51:40,538 - root - INFO - 订单类型是一主一附
2022-10-19 21:52:45,945 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:52:45,947 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:52:46,494 - root - INFO - 订单类型是一主一附
2022-10-19 21:53:05,606 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:53:05,607 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:53:05,788 - root - INFO - 订单类型是一主一附
2022-10-19 21:53:18,546 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:53:18,547 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:53:18,696 - root - INFO - 订单类型是一主一附
2022-10-19 21:53:57,529 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:53:57,529 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:53:57,704 - root - INFO - 订单类型是一主一附
2022-10-19 21:55:59,036 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:55:59,037 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:55:59,211 - root - INFO - 订单类型是一主一附
2022-10-19 21:57:28,563 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:57:28,564 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:57:28,732 - root - INFO - 订单类型是一主一附
2022-10-19 21:57:37,803 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 21:57:37,803 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 21:57:37,970 - root - INFO - ***************【APP更新】接口测试开始***************
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': ''}
2022-10-19 21:57:37,971 - root - INFO - 请求头为:
2022-10-19 21:57:37,972 - root - INFO - 请求参数为:{'deviceType': 'IOS', 'deviceId': '6933BFA3-8F08-4A50-AF05-22ABEDC512F7'}
2022-10-19 22:02:37,815 - root - INFO - 接口测试结果为:{'code': 1, 'result': "请求异常:('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))"}
2022-10-19 22:02:37,824 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-10-19 22:02:37,826 - root - INFO - 请求头为:
2022-10-19 22:02:37,827 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-10-19 22:02:38,085 - root - INFO - 断言处理结束!!!
2022-10-19 22:02:38,088 - root - INFO - 响应信息存储完毕!!!
2022-10-19 22:02:38,089 - root - INFO - ***************【查询表单配置】接口测试结束***************
2022-10-19 22:02:38,090 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-10-19 22:02:38,092 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-10-19 22:02:38,092 - root - INFO - 需要替换的变量信息为:['#2.md5']
2022-10-19 22:02:38,093 - root - INFO - 可变参数的信息为:{'#2.md5': '3ac6f138ccd7b855b371b2b705d0a877'}
2022-10-19 22:02:38,094 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
2022-10-19 22:02:38,095 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': '3ac6f138ccd7b855b371b2b705d0a877', 'username': '1200002681', 'password': '12345678'}
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': ''}}
2022-10-19 22:02:38,694 - root - INFO - 断言处理结束!!!
2022-10-19 22:02:38,696 - root - INFO - 响应信息存储完毕!!!
2022-10-19 22:02:38,697 - root - INFO - ***************【APP登录】接口测试结束***************
2022-10-19 22:02:38,698 - root - INFO - ***************【扫码入件】接口测试开始***************
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'}
2022-10-19 22:02:38,699 - root - INFO - 需要替换的变量信息为:['#3.token']
2022-10-19 22:02:38,700 - root - INFO - 可变参数的信息为:{'#3.token': '6e2110860a7f4096aed607caa8c80514'}
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'}
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'}
2022-10-19 22:02:38,701 - root - INFO - 请求参数为:{'orderSource': '1', 'data': '{"prtNo":"M1201F0002454A88","orderCode":"539b4dd2177b41f890cd8b6a5038386f","scanTime":16625369570458152,"sysType":"1"}'}
2022-10-19 22:02:40,161 - root - INFO - 接口测试结果为:{'code': 1, 'result': '请求异常:Expecting value: line 1 column 1 (char 0)'}
2022-10-19 22:03:59,438 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-19 22:03:59,439 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-19 22:03:59,627 - root - INFO - 订单类型是一主一附
2022-10-20 10:22:51,785 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 10:22:51,786 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 10:22:52,059 - root - INFO - 订单类型是一主一附
2022-10-20 10:41:37,432 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 10:41:37,433 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 10:41:37,681 - root - INFO - 订单类型是一主一附
2022-10-20 10:48:40,781 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 10:48:40,783 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 10:48:40,978 - root - INFO - 订单类型是一主一附
2022-10-20 13:01:55,090 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 13:01:55,092 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 13:47:33,348 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 13:47:33,350 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:08:17,831 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:08:17,833 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:09:13,389 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:09:13,391 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:09:20,772 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:09:20,773 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:09:40,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:09:40,455 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:21:19,988 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:21:19,990 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:28:03,397 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:28:03,399 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:28:03,498 - root - ERROR - 测试用例打开失败,原因是:'int' object is not callable
2022-10-20 14:30:12,580 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 14:30:12,582 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 14:30:12,687 - root - ERROR - 测试用例打开失败,原因是:'Book' object has no attribute 'col_values'
2022-10-20 15:05:26,281 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:05:26,283 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:05:49,428 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:05:49,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:17:57,188 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:17:57,190 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:18:15,697 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:18:15,699 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:23:29,454 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:23:29,455 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:23:29,562 - root - ERROR - 测试用例打开失败,原因是:No sheet named <'Sheet5'>
2022-10-20 15:23:43,162 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:23:43,163 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:24:55,934 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:24:55,935 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 15:25:29,425 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 15:25:29,426 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 16:14:32,617 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 16:14:32,619 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 16:14:47,537 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 16:14:47,537 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 16:33:37,277 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 16:33:37,277 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 16:53:39,298 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 16:53:39,299 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 16:59:38,112 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 16:59:38,113 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:00:26,742 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:00:26,742 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:08:35,948 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:08:35,949 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:19:53,832 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:19:53,833 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:20:02,614 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:20:02,615 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:20:39,173 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:20:39,174 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:34:01,102 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:34:01,104 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:34:08,847 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:34:08,848 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:39:56,355 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:39:56,356 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:40:24,745 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:40:24,746 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:40:35,450 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:40:35,451 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:40:39,180 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:40:39,182 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:41:04,195 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:41:04,196 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:44:41,382 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:44:41,402 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:45:12,690 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:45:12,691 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:46:03,437 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:46:03,437 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 17:56:31,695 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 17:56:31,697 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:21:35,049 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:21:35,051 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:23:02,083 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:23:02,084 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:23:37,329 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:23:37,330 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:24:41,621 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:24:41,621 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:25:21,024 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:25:21,024 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:38:03,019 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:38:03,021 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:38:12,397 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:38:12,397 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:44:00,126 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:44:00,126 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:44:42,713 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:44:42,714 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:44:51,477 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:44:51,478 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:45:16,018 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:45:16,018 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:45:38,080 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:45:38,080 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:45:46,408 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:45:46,409 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:45:59,172 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:45:59,173 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:46:12,715 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:46:12,716 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:47:48,101 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:47:48,101 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:48:49,392 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:48:49,393 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:57:13,275 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:57:13,275 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 18:59:05,404 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 18:59:05,405 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 19:01:50,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 19:01:50,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 19:01:59,673 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 19:01:59,673 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 19:15:19,518 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 19:15:19,519 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:01:53,352 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:01:53,353 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:02:46,499 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:02:46,499 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:03:01,933 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:03:01,934 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:24:03,610 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:24:03,611 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:24:29,323 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:24:29,324 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:26:11,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:26:11,600 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:26:26,343 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:26:26,344 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:27:08,611 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:27:08,612 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:27:24,265 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:27:24,266 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:28:04,878 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:28:04,879 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:31:00,769 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:31:00,770 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:35:39,924 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:35:39,925 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:36:22,067 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:36:22,068 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:36:41,202 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:36:41,202 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:38:06,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:38:06,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:38:22,284 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:38:22,285 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:38:40,695 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:38:40,696 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:40:10,042 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:40:10,043 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:40:26,927 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:40:26,929 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:40:57,278 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:40:57,279 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:41:08,583 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:41:08,584 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:42:06,224 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:42:06,224 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:47:32,144 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:47:32,145 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:47:49,204 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:47:49,205 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:50:50,229 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:50:50,229 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:51:15,380 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:51:15,381 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:52:06,641 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:52:06,642 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:52:28,346 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:52:28,347 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:54:07,605 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:54:07,606 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:55:12,774 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:55:12,775 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:55:28,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:55:28,333 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:58:52,975 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:58:52,975 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:59:21,505 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:59:21,506 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:59:49,113 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:59:49,114 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 20:59:57,411 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 20:59:57,412 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:00:51,875 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:00:51,875 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:00:56,627 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:00:56,628 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:01:57,446 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:01:57,446 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:03:03,691 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:03:03,692 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:16:24,587 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:16:24,589 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:16:47,042 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:16:47,044 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:24:44,420 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:24:44,421 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:25:38,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:25:38,430 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:27:04,918 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:27:04,919 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:27:33,766 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:27:33,766 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:27:42,448 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:27:42,449 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:27:52,458 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:27:52,459 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:30:45,054 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:30:45,055 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:42:18,657 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:42:18,658 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:42:51,266 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:42:51,267 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 21:46:55,226 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 21:46:55,226 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:08:32,252 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:08:32,253 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:08:32,373 - root - INFO - 订单类型是一主一附
2022-10-20 22:08:39,790 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:08:39,792 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:08:39,870 - root - INFO - 订单类型是一主一附
2022-10-20 22:09:35,553 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:09:35,554 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:09:35,623 - root - INFO - 订单类型是一主一附
2022-10-20 22:10:08,037 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:10:08,038 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:10:08,109 - root - INFO - 订单类型是一主一附
2022-10-20 22:10:57,312 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:10:57,313 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:10:57,378 - root - INFO - 订单类型是一主一附
2022-10-20 22:12:48,943 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:12:48,944 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:12:49,015 - root - INFO - 订单类型是一主一附
2022-10-20 22:14:59,668 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-20 22:14:59,669 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-20 22:14:59,752 - root - INFO - 订单类型是一主一附
2022-10-21 10:44:23,145 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 10:44:23,146 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 10:44:23,249 - root - INFO - 订单类型是一主一附
2022-10-21 10:46:28,083 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 10:46:28,084 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 10:46:28,148 - root - INFO - 订单类型是一主一附
2022-10-21 14:11:23,345 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 14:11:23,347 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 14:11:23,479 - root - ERROR - 测试用例打开失败,原因是:No sheet named <'字典映射'>
2022-10-21 14:11:35,370 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 14:11:35,371 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 14:11:35,480 - root - ERROR - 测试用例打开失败,原因是:No sheet named <'字典映射'>
2022-10-21 14:11:45,000 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 14:11:45,001 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 14:12:06,469 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 14:12:06,469 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:54:42,714 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:54:42,716 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:54:57,324 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:54:57,325 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:55:04,643 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:55:04,643 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:55:22,540 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:55:22,541 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:56:07,622 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:56:07,623 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:56:18,385 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:56:18,385 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:56:26,975 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:56:26,976 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:57:59,658 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:57:59,659 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 15:58:11,573 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 15:58:11,574 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:27:00,953 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:27:00,954 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:27:01,128 - root - INFO - 订单类型是一主一附
2022-10-21 17:29:04,822 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:29:04,824 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:29:04,965 - root - INFO - 订单类型是一主一附
2022-10-21 17:34:29,194 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:34:29,195 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:34:58,757 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:34:58,758 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:37:05,508 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:37:05,509 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:37:22,839 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:37:22,840 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:37:41,744 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:37:41,745 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:38:15,490 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:38:15,490 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:38:48,933 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:38:48,934 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:40:04,703 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:40:04,704 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:40:19,984 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:40:19,986 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:41:48,315 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:41:48,316 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:43:10,828 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:43:10,829 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:44:18,478 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:44:18,478 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 17:47:16,184 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 17:47:16,186 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 18:03:55,509 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 18:03:55,512 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 18:04:03,979 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 18:04:03,979 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 18:04:04,109 - root - INFO - 订单类型是一主一附
2022-10-21 18:06:03,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 18:06:03,429 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
2022-10-21 18:06:23,813 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载中......
2022-10-21 18:06:23,814 - root - INFO - /Users/jingyuxiang/Desktop/code/python/SituApiSupport/config/db.ini 文件加载成功......
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.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试报告</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<!-- 页面样式-->
<style type="text/css">
/*标题样式*/
.title {
width: auto;
height: 60px;
text-align: center;
font: bolder 38px/60px "Microsoft YaHei UI";
}
/*汇总信息样式*/
.summary {
width: 90%;
position: absolute;
top: 120px;
margin-left: 5%;
}
.text-left {
font: bolder 20px/30px "Microsoft YaHei UI";
}
.left {
width: 50%;
float: left;
}
.right {
width: 50%;
float: right;
}
.desc {
float: left;
width: 100%;
}
.list-group-item span {
font: normal 16px/38px "Microsoft YaHei UI";
padding: 30px;
}
.list-group-item {
position: relative;
display: block;
padding: .4rem 1.25rem;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, .125);
}
/* 执行信息样式 */
.test_info {
width: 90%;
position: absolute;
top: 900px;
margin-left: 5%;
color: #28a745 !important;
}
.table td, th {
border: solid 2px rgba(9, 122, 51, 0.11) !important;
padding: 0;
line-height: 40px;
text-align: center;
}
select {
border: 0;
padding: 0;
margin: 0;
height: 2em;
width: 8em;
margin-left: 2em;
}
option {
text-align: center;
height: 36px;
font: none 18px/36px "Microsoft YaHei UI";
color: #28a745 !important;
}
.test_log {
background: rgba(163, 171, 189, 0.15);
width: 100%;
height: 50px;
border-top: none;
border-bottom: none;
display: none;
text-align: left;
}
.test_log td {
text-align: left;
height: 30px;
margin: 0;
padding-left: 3em;
padding-right:3em;
font: none 18px/24px "Microsoft YaHei UI";
color: #9e141a;
}
pre {
margin: 0;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
/* 测试图表显示*/
.char {
width: 90%;
position: absolute;
top: 450px;
margin-left: 5%;
color: #28a745 !important;
}
</style>
</head>
<body>
<!--报告标题-->
<div class="title text-success">
<div class="shadow-lg p-3 mb-5 bg-white rounded">本地调试</div>
</div>
<!--汇总信息-->
<div class="summary">
<p class="text-left text-success">测试结果汇总</p>
<div class="left">
<ul class="list-group">
<li class="list-group-item">
<button type="button" class="btn btn-success">测试人员</button>
<span class="text-dark">测试组</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">开始时间</button>
<span class="text-dark">2022-11-01 20:45:11</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">执行时间</button>
<span class="text-dark">3.20 S</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">用例总数</button>
<span class="text-dark">3</span>
</li>
</ul>
</div>
<div class="right">
<ul class="list-group">
<li class="list-group-item">
<button type="button" class="btn btn-success">成功用例</button>
<span class="text-success">2</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-danger">失败用例</button>
<span class="text-warning">0</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-warning">错误用例</button>
<span class="text-danger">1</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-secondary">跳过用例</button>
<span class="text-secondary">0</span>
</li>
</ul>
</div>
<div class="desc">
<ul class="list-group">
<li class="list-group-item">
<button type="button" class="btn btn-success">描述信息</button>
<span class="text-secondary">接口自动化测试报告</span>
</li>
</ul>
</div>
</div>
<!--测试图表-->
<div class="char">
<p class="text-left text-success">图表展示</p>
<div id="char2" style="width: 49%;height: 400px;float: left"></div>
<div id="char" style="width: 49%;height: 400px ;float: left"></div>
</div>
<!--详细信息-->
<div class="test_info">
<p class="text-left text-success">详细信息</p>
<div class="table_data">
<table class="table">
<thead class="bg-success text-light">
<tr>
<th scope="col" style="width: 5%;padding: 0">编号</th>
<th scope="col" style="width: 20%;padding: 0">
<span>测试类</span>
<select id="testClass">
<option>所有</option>
<option>DDTTest</option>
</select>
</th>
<th scope="col" style="width: 15%;padding: 0">测试方法</th>
<th scope="col" style="width: 20%;padding: 0">用例描述</th>
<th scope="col" style="width: 10%;padding: 0">执行时间</th>
<th scope="col" style="width: 20%;padding: 0">
<span>执行结果</span>
<select id="testResult">
<option>所有</option>
<option class="text-success">成功</option>
<option class="text-danger">失败</option>
<option class="text-warning">错误</option>
<option class="text-info">跳过</option>
</select>
</th>
<th scope="col" style="width: 10%;padding: 0">详细信息</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td class="DDTTest">DDTTest</td>
<td>/cl/formconf/form</td>
<td>正向case--查询表单配置</td>
<td>0.187s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>2022-11-01 20:45:11,108 - root - INFO - ***************【查询表单配置】接口测试开始***************
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'}
2022-11-01 20:45:11,109 - root - INFO - 请求头为:{'Content-Type': 'application/json'}
2022-11-01 20:45:11,109 - root - INFO - 请求参数为:{'type': 1, 'platformType': 1}
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': ''}]}}
2022-11-01 20:45:11,293 - root - INFO - 响应信息存储完毕!!!
2022-11-01 20:45:11,293 - root - INFO - ***************【查询表单配置】接口测试结束***************
/cl/formconf/form (RunTest.DDTTest)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>2</td>
<td class="DDTTest">DDTTest</td>
<td>/cl/auth/login</td>
<td>正向case--APP登录</td>
<td>0.863s</td>
<td class="text-success">成功</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>2022-11-01 20:45:11,294 - root - INFO - ***************【APP登录】接口测试开始***************
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'}
2022-11-01 20:45:11,295 - root - INFO - 请求头为:{'Content-Type': 'application/json', 'X-Device-Num': '5f647684-f1f9-41ef-8775-921afe231592'}
2022-11-01 20:45:11,296 - root - INFO - 需要替换的变量信息为:['#1.md5']
2022-11-01 20:45:11,296 - root - INFO - 可变参数的信息为:{'#1.md5': 'd003784d3e6dbc116efcb6d550440465'}
2022-11-01 20:45:11,296 - root - INFO - 可变参数替换完毕:{'type': 1, 'platformType': '1', 'md5': 'd003784d3e6dbc116efcb6d550440465', 'username': 'NB60351', 'password': 'zhbx!MSL'}
2022-11-01 20:45:11,297 - root - INFO - 请求参数为:{'type': 1, 'platformType': '1', 'md5': 'd003784d3e6dbc116efcb6d550440465', 'username': 'NB60351', 'password': 'zhbx!MSL'}
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'}}
2022-11-01 20:45:12,155 - root - INFO - 响应信息存储完毕!!!
2022-11-01 20:45:12,156 - root - INFO - ***************【APP登录】接口测试结束***************
/cl/auth/login (RunTest.DDTTest)执行——>【通过】
</pre>
</td>
</tr>
<tr>
<td>3</td>
<td class="DDTTest">DDTTest</td>
<td>/cl/order/hand/add</td>
<td>正向case--纸质入件</td>
<td>2.15s</td>
<td class="text-warning">错误</td>
<td>
<button type="button" class="btn btn-success btn_info">查看详情</button>
</td>
</tr>
<tr class="test_log">
<td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all">
<pre>Traceback (most recent call last):
</pre>
<pre> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
</pre>
<pre> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
</pre>
<pre> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ddt.py", line 220, in wrapper
return func(self, *args, **kwargs)
</pre>
<pre> File "/Users/jingyuxiang/Desktop/code/python/SituApiSupport/case/RunTest.py", line 68, in test_case
raise Exception('asdfasdfasdf')
</pre>
<pre>Exception: asdfasdfasdf
</pre>
<pre>2022-11-01 20:45:12,157 - root - INFO - ***************【纸质入件】接口测试开始***************
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'}
2022-11-01 20:45:12,158 - root - INFO - 需要替换的变量信息为:['#2.token']
2022-11-01 20:45:12,159 - root - INFO - 可变参数的信息为:{'#2.token': '2ea7f946737d4f589f4b3f03206b8875'}
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'}
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'}
2022-11-01 20:45:12,164 - root - INFO - 订单类型是一主一附
2022-11-01 20:45:12,171 - root - INFO - 话术变量参数自动生成成功!
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"}}
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'}]}]}]}
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}}
False
/cl/order/hand/add (RunTest.DDTTest)执行——>【错误Error】
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<div style="height: 200px"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
<script>
var tbodyTr = $('tbody tr');
var testResult = $("#testResult");
var testClass = $("#testClass");
<!-- 用例执行详细信息显示切换-->
$(".btn_info").click(function () {
$(this).parent().parent().next().toggle();
});
// 当选择用例类之后触发
testClass.change(function () {
var cls = $(this).val();
var res = testResult.val();
elementDisplay(cls, res);
sort()
});
testResult.change(function () {
var res = $(this).val();
var cls = testClass.val();
elementDisplay(cls, res);
sort()
});
function elementDisplay(cls, res) {
// 用例数据的显示
if (cls === "所有") {
if (res === "所有") {
tbodyTr.has('button').show();
} else if (res === '成功') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-success').show()
} else if (res === '失败') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-danger').show()
} else if (res === '错误') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-warning').show()
} else if (res === '跳过') {
tbodyTr.hide();
tbodyTr.has('button').has('.text-info').show()
}
} else {
if (res === "所有") {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').show()
} else if (res === '成功') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-success').show()
} else if (res === '失败') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-danger').show()
} else if (res === '错误') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-warning').show()
} else if (res === '跳过') {
tbodyTr.hide();
tbodyTr.has('button').has('.' + cls + '').has('.text-info').show()
}
}
}
function sort() {
//重新排列显示序号
// 选择所有可以见的tr
var visibleTr = tbodyTr.filter(":visible");
visibleTr.each(function (index, element) {
element.firstElementChild.innerHTML = index + 1;
})
}
</script>
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('char'));
var myChart2 = echarts.init(document.getElementById('char2'));
// 指定图表的配置项和数据
option = {
color: ['#00a10a', '#ddb518', 'rgba(204,46,41,0.73)', '#85898c'],
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
legend: {
orient: 'vertical',
left: 10,
data: ['通过', '失败', '错误', '跳过']
},
series: [
{
name: '测试结果',
type: 'pie',
radius: ['50%', '70%'],
avoidLabelOverlap: false,
label: {
show: false,
position: 'center'
},
emphasis: {
label: {
show: true,
fontSize: '30',
fontWeight: 'bold'
}
},
labelLine: {
show: false
},
data: [
{value: 2, name: '通过'},
{value: 0, name: '失败'},
{value: 1, name: '错误'},
{value: 0, name: '跳过'}
]
}
]
};
option2 = {
tooltip: {
formatter: '{a} <br/>{b} : {c}%'
},
toolbox: {
feature: {
restore: {},
saveAsImage: {}
}
},
series: [
{
name: '测试结果',
type: 'gauge',
detail: {formatter: '66.67%'},
data: [{value: '66.67', name: '用例通过率'}],
axisLine: {
lineStyle: {
color: [
[0.2, '#c20000'],
[0.8, '#ddb518'],
[1, '#00a10a']]
}
}
}
]
};
myChart2.setOption(option2);
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
</script>
</body>
</html>
\ No newline at end of file
CREATE TABLE `citic_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(40) CHARACTER SET utf8mb4 DEFAULT NULL,
`mark` int(11) DEFAULT NULL,
`desc` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
`pid` bigint(20) DEFAULT NULL COMMENT '父id',
`path` varchar(255) DEFAULT NULL COMMENT '上级角色id完整路径',
`role_key` varchar(100) NOT NULL DEFAULT '' COMMENT '角色权限字符串',
`role_sort` int(4) NOT NULL DEFAULT '0' COMMENT '显示顺序',
`data_scope` char(1) DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
`menu_check_strictly` tinyint(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示',
`organization_check_strictly` tinyint(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示',
`status` char(1) NOT NULL DEFAULT '0' COMMENT '角色状态(0正常 1停用)',
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`extra_info` varchar(500) DEFAULT NULL COMMENT '附加信息',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
\ No newline at end of file
CREATE TABLE `citic_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '工号',
`password` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
`name` varchar(30) CHARACTER SET utf8mb4 DEFAULT NULL,
`telephone` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL,
`activate` tinyint(4) DEFAULT NULL COMMENT '1 = 已激活, 2 = 未激活, 3 = 已禁用',
`org_code` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '组织机构代码',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`activate_time` datetime DEFAULT NULL,
`branch_id` bigint(20) DEFAULT NULL COMMENT '分公司_id',
`branch_name` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '分公司_name',
`sub_branch_id` bigint(20) DEFAULT NULL COMMENT '支公司_id',
`sub_branch_name` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '支公司_name',
`marketing_channel` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '营销渠道',
`departed` tinyint(4) DEFAULT NULL COMMENT '是否离职 1 = 离职 2 = 在职',
`user_type` tinyint(4) DEFAULT NULL COMMENT '1 = app端 2 = web端(信诚) 3 = web端(思图)',
`last_login_time` datetime DEFAULT NULL COMMENT '最后一次登录时间',
`directly_agency_id` bigint(11) DEFAULT NULL COMMENT '直属机构id',
`directly_agency_name` varchar(45) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '直属机构名字',
`id_card` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '身份证',
`licensed` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '职业证',
`open_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '微信号',
`emp_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '业务员工号',
`extra_info` text CHARACTER SET utf8mb4 COMMENT '额外信息',
`email` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
`employee_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '工号',
`source` tinyint(4) DEFAULT NULL COMMENT '用户来源:1=本地注册,2=统一登录获取',
`group_id` bigint(20) DEFAULT NULL COMMENT '团队id',
`company_name` varchar(225) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '销售人员所属中介公司名称',
`company_code` varchar(50) DEFAULT NULL COMMENT '销售人员所属经代公司编码',
`cert_type` varchar(4) DEFAULT NULL COMMENT '证件类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8204 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
\ No newline at end of file
CREATE TABLE `citic_user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`role_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8188 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
\ No newline at end of file
File mode changed
CREATE TABLE `order_base_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`task_id` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '双录任务号',
`order_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '电子订单号',
`policy_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '保单号',
`serial_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '字纸投保单流水号',
`self_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '保全订单号',
`customer_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '投保人姓名',
`customer_id_card_type` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '投保人证件类型',
`customer_num` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
`product_type` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品类型',
`ptt_id` bigint(20) DEFAULT NULL COMMENT '产品模板id',
`product_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品名称',
`product_code` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '产品编号',
`pr_id` bigint(20) DEFAULT NULL COMMENT '产品表主键id',
`organization_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '管理机构名称',
`org_id` bigint(20) DEFAULT NULL COMMENT '管理机构表主键id(支公司机构id)',
`quality_audit_status` int(11) DEFAULT '0' COMMENT '质检状态(1 = 未录制 , 2 =质检中,3 =已质检)',
`quality_audit_count` int(11) DEFAULT '0' COMMENT '质检次数',
`upload_time` datetime DEFAULT NULL COMMENT '最后一次上传时间',
`recording_time` int(11) DEFAULT NULL COMMENT '录制时间',
`recording_people` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '录制人',
`quality_audit_advice` int(11) DEFAULT '0' COMMENT '质检结果 (0 = 待质检,1 = 通过,2 = 重录,3 = 补录)',
`ac_id` bigint(20) DEFAULT NULL COMMENT '账户id',
`top_org_id` bigint(20) DEFAULT NULL COMMENT '顶级机构表id',
`extra_info` text CHARACTER SET utf8mb4 COMMENT '额外话术模板变量信息',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`life_cycle` tinyint(4) DEFAULT NULL COMMENT '1、被覆盖。2、创建(无效)。3、待录制(生效)。11、驳回补录。12、驳回重录。13、首次提交。14、审核通过。15. 已完成 21、首次可质检。22、补录提交。23、重录提交。',
`lock_order` int(10) DEFAULT '2' COMMENT '订单锁定状态(1 = 锁定, 2 = 未锁定)',
`order_no_type` int(11) DEFAULT NULL COMMENT '1 = 电子订单号,2 = 纸质投保单流水号',
`salesman_username` varchar(40) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '录制人工号',
`marketing_channel` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '营销渠道',
`need_tts` int(11) DEFAULT NULL COMMENT '1 = 开启; 2= 关闭',
`salesman_id` bigint(20) DEFAULT NULL COMMENT '营销员ID',
`org_code` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '组织机构代码',
`branch_id` bigint(20) DEFAULT NULL COMMENT '分公司机构管理id',
`recording_begin_time` bigint(20) DEFAULT NULL COMMENT '录制开始时间',
`appnt_age` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '投保人年龄',
`encrypt_key` varchar(200) CHARACTER SET utf8mb4 DEFAULT NULL,
`insure_self` int(11) DEFAULT NULL COMMENT '自保件/非自保件(1 = 自保件;2 = 非自保件;)',
`support_remote` int(11) DEFAULT '2' COMMENT '是否支持远程(1 = 支持;2 = 不支持;)',
`system_type` int(11) DEFAULT '1' COMMENT '双录类型(1 = 现场;2 = 远程;)',
`mixed_flow_status` int(11) DEFAULT '1' COMMENT '混流状态(1 = 完成;2 = 处理中;...)',
`record_rs` int(11) DEFAULT NULL COMMENT '选中需要质检(1 = 选中, 2= 未选中)',
`hesitate_period` int(11) DEFAULT NULL COMMENT '真正的犹豫期',
`hesitate_period_history` int(11) DEFAULT NULL COMMENT '如果打开开关,那么这个列存开关之前的犹豫期\r\n如果关闭开关,把此项清空,然后把这个项的值拿到真的犹豫期里面',
`order_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
`cont_no` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
`first_recording_begin_time` bigint(20) DEFAULT NULL COMMENT '首次录制时间',
`apply_date` date DEFAULT NULL COMMENT '投保申请日期',
`gender` int(11) DEFAULT NULL COMMENT '1 = 男 2 = 女',
`order_source` int(11) DEFAULT '1' COMMENT '1 = 电子订单号(扫码录入),2 = 纸质投保单流水号(手工录入), 3 = 系统对接,4=跳转入件',
`redress_status` int(10) DEFAULT '2' COMMENT '订单是否被复审人员更正过(1 = 更正, 2 = 未更正)',
`version_code` varchar(16) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '二维码版本号',
`audit_source` int(11) DEFAULT NULL COMMENT '质检抽样结果 1=抽样质检,2=强制通过 > X质检,3=自动通过',
`quota_type` int(5) DEFAULT NULL COMMENT '保全项:1-新增附加险,2-变更投保人',
`record_type` int(5) DEFAULT NULL COMMENT '双录类型:1-新契约,2-保全',
`applicant_remote_flag` int(11) DEFAULT NULL COMMENT '投保人远程标志 : 1:允许远程 2:不允许远程',
`many_insures_flag` int(11) DEFAULT NULL COMMENT '多被保人标志 0:单被保人 1:多被保人',
`same_person` int(11) DEFAULT NULL COMMENT '投被保人是否为同一人标志 1:同一人 2:不同人',
`lock_expire_time` datetime DEFAULT NULL COMMENT '订单锁定过期时间',
`system_source` varchar(10) DEFAULT NULL COMMENT '系统来源:1-经英宝,2-微信公众号',
`insurance_company` varchar(20) DEFAULT NULL COMMENT '保司来源',
`sign_order_status` tinyint(4) DEFAULT '0' COMMENT '签单状态(0-未签单,1-已签单)',
`correction_status` int(11) DEFAULT '0' COMMENT '更正状态 0 = 默认不用更正(电子/比对一致的); 1 = 已更正; 2 = 未更正;',
PRIMARY KEY (`id`) USING BTREE,
KEY `life_cycle_index` (`life_cycle`) USING BTREE,
KEY `order_id_index` (`order_id`) USING BTREE,
KEY `policy_no_index` (`policy_no`) USING BTREE,
KEY `serial_no_index` (`serial_no`) USING BTREE,
KEY `create_time_index` (`create_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COMMENT='订单主表';
\ No newline at end of file
CREATE TABLE `speech_variable` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '变量名称',
`desc` varchar(64) NOT NULL DEFAULT '' COMMENT '变量描述',
`sort` int(11) NOT NULL DEFAULT '0' COMMENT '变量排序值:根据sort排序',
`group_id` int(11) NOT NULL DEFAULT '0' COMMENT '变量所属组ID',
`level` int(11) NOT NULL DEFAULT '1' COMMENT '变量所属组层级',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号',
`deleted` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否删除:0-被删除,1-正常',
`available` smallint(6) NOT NULL DEFAULT '1' COMMENT '是否可用:0-不可用,1-可用',
`display` smallint(6) NOT NULL DEFAULT '1' COMMENT '是否显示:0-不显示,1-显示',
`record_type` smallint(6) DEFAULT '3' COMMENT '1-新契约, 2-保全, 3-共同属性',
`extra_info` varchar(255) DEFAULT NULL COMMENT '额外描述信息',
PRIMARY KEY (`id`) USING BTREE,
KEY `deleted_index` (`deleted`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COMMENT='话术变量表';
\ No newline at end of file
# @Time : 2022/8/30 16:28
# @Author : 付孟奇
from config.VendorPath import base_path
from util.HandleFile import load_ini_file
from util.HandleLog import logger
import os
import pymysql
db_file_path = os.path.join(base_path, 'config', 'db.ini')
class DBLoad:
def __init__(self):
db_res = load_ini_file(db_file_path, 'mysql')
self.DB_CONF = {
'host': db_res['mysql_host'],
'port': int(db_res['mysql_port']),
'user': db_res['mysql_user'],
'passwd': db_res['mysql_passwd'],
'db': db_res['mysql_db'],
}
self.connect()
def connect(self, db_conf=None):
# 通过字典拆包传递配置信息,建立数据库连接
if db_conf is None:
db_conf = self.DB_CONF
self.conn = pymysql.connect(**db_conf, autocommit=True)
# 通过 cursor() 创建游标对象,并让查询结果以字典格式输出
self.cur = self.conn.cursor(cursor=pymysql.cursors.DictCursor)
def select_db(self, sql):
"""查询"""
# 检查连接是否断开,如果断开就进行重连
self.conn.ping(reconnect=True)
# 使用 execute() 执行sql
self.cur.execute(sql)
# 使用 fetchall() 获取查询结果
data = self.cur.fetchall()
return data
def execute_db(self, sql):
"""更新/新增/删除"""
try:
# 检查连接是否断开,如果断开就进行重连
self.conn.ping(reconnect=True)
# 使用 execute() 执行sql
self.cur.execute(sql)
# 提交事务
self.conn.commit()
except Exception as e:
logger.info("操作MySQL出现错误,错误原因:{}".format(e))
# 回滚所有更改
self.conn.rollback()
db_load = DBLoad()
# @Time : 2022/8/23 14:45
# @Author : 付孟奇
from util.HandleLog import logger
from util.HandleFile import file_read_global
import xlrd
import json
class DateLoad:
# 读取Excel数据--按行
def load_excel(self, file, tag):
data_list = []
try:
book = xlrd.open_workbook(file)
tag = book.sheet_by_name(tag)
# 获取行数
row_num = tag.nrows
header = tag.row_values(0)
for i in range(1, row_num):
# 读取行
row_data = tag.row_values(i)
# 读取行中的每一列的值
d = dict(zip(header, row_data))
data_list.append(d)
return data_list
except Exception as e:
logger.error('测试用例打开失败,原因是:%s' % e)
# 查找特定key的value信息
def get_value(self, source_json, object_key):
result = []
if isinstance(source_json, dict) and object_key in source_json.keys():
value = source_json[object_key]
result.append(value)
return result
elif isinstance(source_json, (list, tuple)):
for item in source_json:
value = self.get_value(item, object_key)
if value == "None" or value is None:
pass
elif len(value) == 0:
pass
else:
result.append(value)
return result
else:
if isinstance(source_json, dict):
for k in source_json:
value = self.get_value(source_json[k], object_key)
if value == "None" or value is None:
pass
elif len(value) == 0:
pass
else:
for item in value:
result.append(item)
return result
# 处理请求的可变参数
def handle_params(self, args):
try:
if str(args).count('话术变量验证') == 1: # 话术变量场景测试参数特殊处理
from util.HandleSpeech import handle_speech
params_list = str(args).split('-')
args = handle_speech.getRestult(params_list[1])
return json.loads(args)
elif args[0] == '{':
args = json.loads(args)
old_key = [] # 变量的key的集合
old_value = [] # 变量集合
# 遍历请求参数中,所有的变量信息
for k, v in args.items():
if str(v)[0] == '#':
old_key.append(k)
old_value.append(v)
# 替换变量值
if len(old_value) != 0:
logger.info('需要替换的变量信息为:' + str(old_value))
key_dic = {}
for i in old_value:
v_key = str(i[1:]).split('.')
res = file_read_global(v_key)
key_dic[i] = res
logger.info('可变参数的信息为:' + str(key_dic))
# 参数替换
for j in key_dic:
self.dic_del(args, j, key_dic)
logger.info('可变参数替换完毕:' + str(args))
return args
else:
return ''
except:
return {'code': 1, 'result': '参数错误,请检查替换信息是否正确'}
# json格式字典处理
def dic_del(self, data_json, data_key, key_dic):
if isinstance(data_json, dict):
for k, v in data_json.items():
if v == data_key:
data_json[k] = key_dic[data_key]
else:
self.dic_del(v, data_key, key_dic)
elif isinstance(data_json, list):
for i in data_json:
self.dic_del(i, data_key, key_dic)
handle_data = DateLoad()
if __name__ == '__main__':
handle_data.handle_global()
# @Time : 2022/8/24 16:07
# @Author : 付孟奇
from config.VendorPath import global_path
from util.HandleLog import logger
import configparser
import json
import base64
import yaml
# 读取ini文件内容
def load_ini_file(file_path, sec):
logger.info("{} 文件加载中......".format(file_path))
config = configparser.ConfigParser()
config.read(file_path, encoding="UTF-8")
data = dict(config[sec])
logger.info("{} 文件加载成功......".format(file_path))
return data
# 读取yaml文件内容
def load_yaml_file(file_path):
logger.info("{} 文件加载中......".format(file_path))
with open(file_path, encoding='utf-8') as f:
data = yaml.safe_load(f)
logger.info("{} 文件加载成功......".format(file_path))
return data
# 读取json文件并重新存储
def file_read_save(file_path, file_key, file_value):
with open(file_path, 'r+') as f:
file_data = json.load(f)
file_data[str(file_key)] = file_value
f.seek(0)
f.truncate()
json.dump(file_data, f, indent=4, ensure_ascii=False)
logger.info('响应信息存储完毕!!!')
# 读取公共参数文件指定内容
def file_read_global(args):
with open(global_path, 'r') as f:
file_data = json.load(f)
res = file_data[args[0]][args[1]]
return res
# 读取图片转换64
def file_base_64(path):
with open(path, 'rb') as f:
base64_data = base64.b64encode(f.read())
data = base64_data.decode()
return data
# @Time : 2022/10/31 18:14
# @Author : 付孟奇
from util.HandleFile import load_yaml_file
from util.HandleDB import db_load
from config.VendorPath import base_path, global_path
import os
import json
ddl_file_path = os.path.join(base_path, 'sql', 'speech_variable.yaml')
class InitLoad:
def __init__(self):
print('111')
# 初始化数据库
def db_ini(self):
# 加载数据库建表SQL
res_yaml = load_yaml_file(ddl_file_path)
# 执行插入SQL
db_load.execute_db(res_yaml)
self.handle_global()
# 清空公共参数文件内容
def handle_global(self):
data = {}
json.dump(data, open(global_path, 'w'), indent=4)
handle_init = InitLoad()
if __name__ == '__main__':
handle_init.handle_global()
# @Time : 2022/8/22 15:40
# @Author : 付孟奇
import sys
'''
1、项目名称
2、项目环境
3、当前环境域名
4、邮件发送地址
5、邮件名称
6、联系人电话
'''
def handle_jenkins():
config_info = {}
# Jenkins参数
if len(sys.argv) > 1:
config_info['pro'] = sys.argv[1]
config_info['env'] = sys.argv[2]
config_info['host'] = sys.argv[3]
config_info['email'] = sys.argv[4]
config_info['title'] = sys.argv[5]
else:
# 本地兼容
config_info['pro'] = '话术变量'
config_info['env'] = 'staging'
config_info['host'] = 'https://staging-moonlight-life-video.situdata.com' # https://staging-moonlight-life-video.situdata.com
config_info['email'] = 'fumengqi@situdata.com'
config_info['title'] = '本地调试'
config_info['phone'] = '15737319294'
return config_info
# @Time : 2022/8/22 15:37
# @Author : 付孟奇
import logging
from config.VendorPath import log_path
class Log:
def insert_log(self, level, message):
# 创建一个logger
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
# 创建一个handler,用于写入日志文件
fh = logging.FileHandler(log_path, 'a', encoding='utf-8')
fh.setLevel(logging.DEBUG)
# 再创建一个handler,用于输出到控制台
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
# 定义handler的输出格式
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
fh.setFormatter(formatter)
ch.setFormatter(formatter)
# 给logger添加handler
logger.addHandler(fh)
logger.addHandler(ch)
# 记录一条日志
if level == 'info':
logger.info(message)
elif level == 'debug':
logger.debug(message)
elif level == 'warning':
logger.warning(message)
elif level == 'error':
logger.error(message)
logger.removeHandler(ch)
logger.removeHandler(fh)
# 关闭打开的文件
fh.close()
def debug(self, message):
self.insert_log('debug', message)
def info(self, message):
self.insert_log('info', message)
def warning(self, message):
self.insert_log('warning', message)
def error(self, message):
self.insert_log('error', message)
logger = Log()
# @Time : 2022/8/24 11:40
# @Author : 付孟奇
from requests import Timeout, RequestException
import requests
class DealRequest:
def __init__(self, method, url, headers, params):
self.method = method
self.url = url
self.headers = headers
self.params = params
def return_response(self):
return self.res_request()
def res_request(self):
if self.method == 'POST':
res = self.res_post(self.url, self.headers, self.params)
elif self.method == "GET":
res = self.res_get(self.url, self.headers, self.params)
elif self.method == "PUT":
res = self.res_put(url=self.url, params=self.params)
elif self.method == "DELETE":
res = self.res_delete(url=self.url, params=self.params, headers=self.headers)
else:
res = {'code': 1, 'result': '接口请求失败,当前请求方式不支持'}
return res
def res_post(self, url, headers, params):
try:
res = requests.request('POST', url, headers=headers, json=params)
if res.status_code == 200:
return res.json()
else:
return {'code': 1, 'result': '接口请求失败,返回状态码:%s' % str(res.status_code)}
except Timeout as e:
return {'code': 1, 'result': '请求超时:%s' % e}
except RequestException as e:
return {'code': 1, 'result': '请求异常:%s' % e}
except Exception as e:
return {'code': 1, 'result': 'post请求出错,出错原因:%s' % e}
def res_get(self, url, headers, params):
try:
if params == '':
res = requests.get(url, headers=headers)
else:
res = requests.get(url, headers=headers, params=params)
if res.status_code == 200:
return res.json()
else:
return {'code': 1, 'result': '接口请求失败,返回状态码:%s' % str(res.status_code)}
except Timeout as e:
return {'code': 1, 'result': '请求超时:%s' % e}
except RequestException as e:
return {'code': 1, 'result': '请求异常:%s' % e}
except Exception as e:
return {'code': 1, 'result': 'get请求出错,出错原因:%s' % e}
def res_put(self, url, params):
try:
r = requests.put(url, params=params)
except Timeout as e:
return {'code': 1, 'result': '请求超时:%s' % e}
except RequestException as e:
return {'code': 1, 'result': '请求异常:%s' % e}
except Exception as e:
return {'code': 1, 'result': 'put请求出错,出错原因:%s' % e}
def res_delete(self, url, headers, params):
try:
r = requests.delete(url, headers=headers, params=params)
except Timeout as e:
return {'code': 1, 'result': '请求超时:%s' % e}
except RequestException as e:
return {'code': 1, 'result': '请求异常:%s' % e}
except Exception as e:
return {'code': 1, 'result': 'delete请求出错,出错原因:%s' % e}
# @Time : 2022/10/20 11:56
# @Author : 付孟奇
from util.HandleLog import logger
from util.HandleData import handle_data
from util.HandleDB import db_load
from config.VendorPath import *
import copy
import json
class SpeechLoad:
def __init__(self):
# 获取Excel信息源
self.data_excel = handle_data.load_excel(excel_path, '纸质入件')
self.dic_excel = handle_data.load_excel(excel_path, '字典映射')
self.result_desc = None # 话术变量拼接的extra
self.list_order = []
self.list_insurance = []
self.list_insures = []
self.list_agent = []
self.list_applicant = []
self.dic_key = []
self.case_num = None
self.del_excel()
# 处理纸质入件信息参数
def del_data_excel(self):
num_base = 0
for i in self.data_excel:
# 数据分类
if i['group_id'] == 0:
num_base += 1
elif i['group_id'] == 4:
self.list_order.append(i)
elif i['group_id'] == 5 and i['is_insured'] == 0:
self.list_insurance.append(i)
elif i['group_id'] == 5 and i['is_insured'] == 1:
self.list_insures.append(i)
elif i['group_id'] == 6:
self.list_agent.append(i)
elif i['group_id'] == 7:
self.list_applicant.append(i)
# 处理数据字典参数与话术变量参数一致
def del_excel(self):
for index in range(len(self.dic_excel)):
str_tag = str(self.dic_excel[index]['函数TAG']).split('Enums')[0]
new_tag = str_tag[0].lower() + str_tag[1:]
self.dic_key.append(new_tag)
self.dic_excel[index]['函数TAG'] = new_tag
self.dic_key = list(set(self.dic_key))
# 合成入参字符串
def getJsonString(self, arg_list):
result = '{'
for i in arg_list: # 处理每一行信息
i_v = i.get(self.case_num)
if i_v == '' or i_v is None:
i_v = 'test_' + i.get('name')
# elif i.get('name') in self.dic_key:
else:
i_v = self.getArgs(i.get('name'), i_v)
result += '''"{}":"{}",'''.format(i.get('name'), i_v)
result += '}'
return result.replace(',}', '}')
# 合成数据结构
def getJsonDesc(self, arg_list):
result = '{'
for i in arg_list: # 处理每一行信息
i_v = i.get(self.case_num)
if i_v == '' or i_v is None:
i_v = 'test_' + i.get('name')
else:
i_v = self.getArgs(i.get('name'), i_v)
result += '''"{}":"{}",'''.format(i.get('desc'), i_v)
result += '}'
return result.replace(',}', '}')
# 字典映射
def getArgs(self, arg_k, arg_v):
# 数据字典替换
result = ''
for i in self.dic_excel:
if i['函数TAG'] == 'applicantSex' and arg_k == 'gender' and int(i['dict_value']) == int(arg_v):
result = i['dict_label']
elif i['函数TAG'] == 'insuredRelation' and arg_k == 'relation' and i['dict_value'] == arg_v:
result = i['dict_label']
elif i['函数TAG'] == 'orderType' and arg_k == 'policyType' and i['dict_value'] == arg_v:
result = i['dict_label']
elif i['函数TAG'] == arg_k and i['dict_value'] == arg_v:
result = i['dict_label']
else: # 未找到替换数据
continue
if result == '':
return arg_v
else:
return result
# 组装订单请求信息
def getRestult(self, case_num):
self.case_num = case_num # 执行的case内容
self.del_data_excel() # 处理纸质入件数据源
insurance_json = ''
insurance_desc_json = ''
order_json = '''"order":''' + self.getJsonString(self.list_order) # 订单基本信息
order_desc_json = '''"订单基本信息":''' + self.getJsonDesc(self.list_order)
agent_json = '''"agent":''' + self.getJsonString(self.list_agent) # 销售人员信息
agent__desc_json = '''"销售人员信息":''' + self.getJsonDesc(self.list_agent)
applicant_json = '''"applicant":''' + self.getJsonString(self.list_applicant) # 投保人信息
applicant_desc_json = '''"投保人信息":''' + self.getJsonDesc(self.list_applicant)
# 处理被保人信息
list_people_1 = copy.deepcopy(self.list_insures)
list_people_2 = copy.deepcopy(self.list_insures)
for i in range(len(self.list_insures)):
i_list = self.list_insures[i][case_num].split(';')
if len(i_list) is 2:
list_people_1[i][case_num] = i_list[0]
list_people_2[i][case_num] = i_list[1]
elif len(i_list) is 1:
list_people_1[i][case_num] = i_list[0]
list_people_2[i][case_num] = ''
else:
list_people_1[i][case_num] = ''
list_people_2[i][case_num] = ''
# 处理投保基本信息
if self.case_num == 'test_case1': # 处理一主一附
logger.info('订单类型是一主一附')
list_product_1 = copy.deepcopy(self.list_insurance)
list_product_2 = copy.deepcopy(self.list_insurance)
for i in range(len(self.list_insurance)): # 拆分组装主险信息、附加险信息
i_list = self.list_insurance[i][case_num].split(';')
if len(i_list) is 2:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = i_list[1]
elif len(i_list) is 1:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = ''
else:
list_product_1[i][case_num] = ''
list_product_2[i][case_num] = ''
main_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_1).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
main_insurance_desc_json = '''"投保基本信息1":''' + (self.getJsonDesc(list_product_1) + self.getJsonDesc(list_people_1)).replace('}{', ',')
additional_insurance_json = '''"additionalInsurances":[''' + self.getJsonString(list_product_2).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}]"
additional_insurance_desc_json = '''"投保基本信息2":''' + (self.getJsonDesc(list_product_2) + self.getJsonDesc(list_people_2)).replace('}{', ',')
insurance_json = '''"insurance":[{''' + main_insurance_json + "," + additional_insurance_json + "}]"
insurance_desc_json = main_insurance_desc_json + "," + additional_insurance_desc_json
elif self.case_num == 'test_case2': # 处理一主多附
logger.info('订单类型是一主多附')
list_product_1 = copy.deepcopy(self.list_insurance)
list_product_2 = copy.deepcopy(self.list_insurance)
list_product_3 = copy.deepcopy(self.list_insurance)
for i in range(len(self.list_insurance)): # 拆分组装主险信息、附加险信息
i_list = self.list_insurance[i][case_num].split(';')
if len(i_list) is 3:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = i_list[1]
list_product_3[i][case_num] = i_list[2]
elif len(i_list) is 2:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = i_list[1]
elif len(i_list) is 1:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = ''
else:
list_product_1[i][case_num] = ''
list_product_2[i][case_num] = ''
main_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_1).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
add_1_json = self.getJsonString(list_product_2).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
add_2_json = self.getJsonString(list_product_3).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
additional_insurance_json = '''"additionalInsurances":[''' + add_1_json + ',' + add_2_json + "]"
insurance_json = '''"insurance":[{''' + main_insurance_json + "," + additional_insurance_json + "}]"
main_insurance_desc_json = '''"投保基本信息1":''' + (self.getJsonDesc(list_product_1) + self.getJsonDesc(list_people_1)).replace('}{', ',')
add_1_desc_json = '''"投保基本信息2":''' + (self.getJsonDesc(list_product_2) + self.getJsonDesc(list_people_2)).replace('}{', ',')
add_2_desc_json = '''"投保基本信息3":''' + (self.getJsonDesc(list_product_3) + self.getJsonDesc(list_people_2)).replace('}{', ',')
insurance_desc_json = main_insurance_desc_json + "," + add_1_desc_json + ',' + add_2_desc_json
elif self.case_num == 'test_case3': # 处理多主多附
logger.info('订单类型是多主多附')
list_product_1 = copy.deepcopy(self.list_insurance)
list_product_2 = copy.deepcopy(self.list_insurance)
list_product_3 = copy.deepcopy(self.list_insurance)
list_product_4 = copy.deepcopy(self.list_insurance)
for i in range(len(self.list_insurance)): # 拆分组装主险信息、附加险信息
i_list = self.list_insurance[i][case_num].split(';')
if len(i_list) is 4:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = i_list[1]
list_product_3[i][case_num] = i_list[2]
list_product_4[i][case_num] = i_list[3]
elif len(i_list) is 3:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = i_list[1]
list_product_3[i][case_num] = i_list[2]
elif len(i_list) is 2:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = i_list[1]
elif len(i_list) is 1:
list_product_1[i][case_num] = i_list[0]
list_product_2[i][case_num] = ''
else:
list_product_1[i][case_num] = ''
list_product_2[i][case_num] = ''
main_1_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_1).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
main_2_insurance_json = '''"mainInsurance":''' + self.getJsonString(list_product_2).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_1) + "]}"
add_1_json = self.getJsonString(list_product_3).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
add_2_json = self.getJsonString(list_product_4).replace('}', ',') + '''"insureds":[''' + self.getJsonString(list_people_2) + "]}"
additional_insurance_json = '''"additionalInsurances":[''' + add_1_json + ',' + add_2_json + "]"
insurance_json = '''"insurance":[{''' + main_1_insurance_json + ',' + additional_insurance_json + '},{' + main_2_insurance_json + ',' + additional_insurance_json + '}]'
main_1_insurance_desc_json = '''"投保基本信息1":''' + (self.getJsonDesc(list_product_1) + self.getJsonDesc(list_people_1)).replace('}{', ',')
main_2_insurance_desc_json = '''"投保基本信息2":''' + (self.getJsonDesc(list_product_2) + self.getJsonDesc(list_people_1)).replace('}{', ',')
add_1_desc_json = '''"投保基本信息3":''' + (self.getJsonDesc(list_product_3) + self.getJsonDesc(list_people_2)).replace('}{', ',')
add_2_desc_json = '''"投保基本信息4":''' + (self.getJsonDesc(list_product_4) + self.getJsonDesc(list_people_2)).replace('}{', ',')
insurance_desc_json = main_1_insurance_desc_json + ',' + main_2_insurance_desc_json + ',' + add_1_desc_json + ',' + add_2_desc_json
result = "{" + order_json + "," + agent_json + "," + applicant_json + "," + insurance_json + "}"
self.result_desc = "{" + order_desc_json + "," + agent__desc_json + "," + applicant_desc_json + "," + insurance_desc_json + "}"
logger.info("话术变量参数自动生成成功!")
logger.info("订单数据结构为" + str(self.result_desc))
return result
def getAssert(self, orderRecordId):
# 研发代码生成的extra_info信息
res_extra = db_load.select_db(('''SELECT extra_info FROM order_base_info WHERE id={};''').format(orderRecordId))
auto_dic = {}
extra_dic = {}
for k, v in json.loads(self.result_desc).items():
for k_, v_ in v.items():
auto_dic[(k + '/' + k_)] = v_
for m, n in json.loads(res_extra[0]['extra_info']).items():
for m_, n_ in n.items():
extra_dic[m + '/' + m_] = n_
error_list = []
lack_list = []
res_msg = None
for i in extra_dic:
if i in auto_dic:
if extra_dic[i] == auto_dic[i]:
res_msg = {'code': 0, 'msg': '数据处理成功'}
else:
error_list.append(i)
else:
lack_list.append(i)
if len(lack_list) != 0 and len(error_list) != 0:
res_msg = {'code': 1, 'msg': [{'数据生成异常,下列数据不存在,请核对话术变量表': str(lack_list)}, {'数据生成错误,下列数据值与原始值不符合': str(error_list)}]}
elif len(lack_list) != 0:
res_msg = {'code': 1, 'msg': '数据生成异常,下列数据不存在,请核对话术变量表:' + str(lack_list)}
elif len(error_list) != 0:
res_msg = {'code': 1, 'msg': '数据生成错误,下列数据值与原始值不符合:' + str(error_list)}
return res_msg
handle_speech = SpeechLoad()
if __name__ == '__main__':
handle_speech.getRestult(case_num='test_case1')
# 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!