Commit 0269316a authored by 刘丙寅's avatar 刘丙寅

测试jenkins

parent 2005669f
<!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">2021-03-05 15:08:16</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">执行时间</button>
<span class="text-dark">9.44 S</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-success">用例总数</button>
<span class="text-dark">1</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">0</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-danger">失败用例</button>
<span class="text-warning">1</span>
</li>
<li class="list-group-item">
<button type="button" class="btn btn-warning">错误用例</button>
<span class="text-danger">0</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>Case</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="Case">Case</td>
<td>test_01</td>
<td>转诊策略派单召回数据校验</td>
<td>9.44s</td>
<td class="text-danger">失败</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>/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/venv/lib/python3.7/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'hera.igengmei.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
状态码:200
{'code': 0,
'data': [{'attribute': [1, 2, 3],
'attribute_desc': ['开通“优先派单”,且余额充足',
'V4及V4以上等级机构',
'保线索且认同派单为一条线索的机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '9dbf692c520f4469bc3afbaa5ba2c421',
'hospital_id': 'bjmsqyl',
'hospital_name': '北京美诗沁医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': [' MSQ睛典去眼袋 3-5天恢复 20分钟祛除 随做随走,5440起',
'全面部超皮秒 买一送三 详情咨询客服 ,1960起',
'【肉毒素瘦脸针+下颌缘提升】衡力/保妥适 主任亲诊 足量注射 瘦咬肌/去颈阔肌,980起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': 'd4f1894f28bb46eaaaec053ae04a5f89',
'hospital_id': 'f51ba7742a8c48e3825de9365eeba906',
'hospital_name': '北京领医医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【日本无痕技术】日本专家*全程翻译陪同 真正的日式无痕 自然天生双眼皮 眼综合,27000起',
'【日本医生操作】 【正品认证仪器】真正的日式医美体验 带给你不一样的祛斑美白嫩肤体验,3280起',
'乔雅登极致/雅致/润蓝铂金/艾丽薇大分子,1188起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '4dafecfc29ef48fe94d738f0d4a517a6',
'hospital_id': '4f6ced94b6af4c06af84a3046e533149',
'hospital_name': '北京亚楠容悦医疗美容诊所',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【全身吸脂】腰腹+大腿+手臂速瘦8-15cm【原武警总院整形主任亲创】腰部吸脂,5280起',
'【红包补贴】原武警总院整形主任亲诊/无淤青/填额头太阳穴/伊婉艾莉薇乔雅登特惠,599起',
'武警总院主任亲诊·脂肪明星机构 脂肪填充,6600起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '天津'},
'doctor_id': 'b1654a63e910448f85cd165b316cfe41',
'hospital_id': '3015d53c071c420b80944518133901b0',
'hospital_name': '天津凯润婷医疗美容医院(原凤凰怡美)',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['海薇188 爱芙莱/瑞蓝/乔雅登/可拆验,188起',
'进口硅胶(韩式生科)+耳软骨垫鼻尖 ,5800起',
'国产/进口肉毒素 除皱/瘦脸/瘦腿,99起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '8e582480c5a811e695c900163e00062b',
'hospital_id': 'bjoyylmr',
'hospital_name': '北京欧扬医疗美容门诊部',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 7,
'services': ['【脂肪面部填充】活细胞全脸 精细移植 精致轮廓 拒绝凹陷,6800起',
'【国产瘦脸100U】正品足量 拒绝咬肌肥大 打造明星脸,680起',
'【菲洛嘉复合水光8ml】53+1营养成分 补水抗衰嫩肤,880起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '3e00f028f81d11e6af9e00163e0051d4',
'hospital_id': '96ea37eef81d11e692f800163e000a4a',
'hospital_name': '北京凯润婷(原史三八)医疗美容医院',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 5,
'services': ['品牌玻尿酸项目 填充/除皱 可拆验 足量,188起',
'第五代热玛吉眼周/全面部 皱紧肤面部提升,4800起',
'水光针项目下单赠面膜1片 补水嫩肤保湿,150起']}],
'message': ''}
test_01 (case_zhuanzhen_celue.Case)执行——>【失败Failure】
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/case/case_zhuanzhen_celue.py", line 33, in test_01
assert 0 == 1, "转诊策略派单数据不足6条 获取到:%s" % resl
AssertionError: 转诊策略派单数据不足6条 获取到:6
================test_01 (case_zhuanzhen_celue.Case)重运行第1次================
/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/venv/lib/python3.7/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'hera.igengmei.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
状态码:200
{'code': 0,
'data': [{'attribute': [1, 2, 3],
'attribute_desc': ['开通“优先派单”,且余额充足',
'V4及V4以上等级机构',
'保线索且认同派单为一条线索的机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '9dbf692c520f4469bc3afbaa5ba2c421',
'hospital_id': 'bjmsqyl',
'hospital_name': '北京美诗沁医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': [' MSQ睛典去眼袋 3-5天恢复 20分钟祛除 随做随走,5440起',
'全面部超皮秒 买一送三 详情咨询客服 ,1960起',
'【肉毒素瘦脸针+下颌缘提升】衡力/保妥适 主任亲诊 足量注射 瘦咬肌/去颈阔肌,980起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': 'd4f1894f28bb46eaaaec053ae04a5f89',
'hospital_id': 'f51ba7742a8c48e3825de9365eeba906',
'hospital_name': '北京领医医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【日本无痕技术】日本专家*全程翻译陪同 真正的日式无痕 自然天生双眼皮 眼综合,27000起',
'【日本医生操作】 【正品认证仪器】真正的日式医美体验 带给你不一样的祛斑美白嫩肤体验,3280起',
'乔雅登极致/雅致/润蓝铂金/艾丽薇大分子,1188起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '4dafecfc29ef48fe94d738f0d4a517a6',
'hospital_id': '4f6ced94b6af4c06af84a3046e533149',
'hospital_name': '北京亚楠容悦医疗美容诊所',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【全身吸脂】腰腹+大腿+手臂速瘦8-15cm【原武警总院整形主任亲创】腰部吸脂,5280起',
'【红包补贴】原武警总院整形主任亲诊/无淤青/填额头太阳穴/伊婉艾莉薇乔雅登特惠,599起',
'武警总院主任亲诊·脂肪明星机构 脂肪填充,6600起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '天津'},
'doctor_id': 'b1654a63e910448f85cd165b316cfe41',
'hospital_id': '3015d53c071c420b80944518133901b0',
'hospital_name': '天津凯润婷医疗美容医院(原凤凰怡美)',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['海薇188 爱芙莱/瑞蓝/乔雅登/可拆验,188起',
'进口硅胶(韩式生科)+耳软骨垫鼻尖 ,5800起',
'国产/进口肉毒素 除皱/瘦脸/瘦腿,99起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '8e582480c5a811e695c900163e00062b',
'hospital_id': 'bjoyylmr',
'hospital_name': '北京欧扬医疗美容门诊部',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 7,
'services': ['【脂肪面部填充】活细胞全脸 精细移植 精致轮廓 拒绝凹陷,6800起',
'【国产瘦脸100U】正品足量 拒绝咬肌肥大 打造明星脸,680起',
'【菲洛嘉复合水光8ml】53+1营养成分 补水抗衰嫩肤,880起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '3e00f028f81d11e6af9e00163e0051d4',
'hospital_id': '96ea37eef81d11e692f800163e000a4a',
'hospital_name': '北京凯润婷(原史三八)医疗美容医院',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 5,
'services': ['品牌玻尿酸项目 填充/除皱 可拆验 足量,188起',
'第五代热玛吉眼周/全面部 皱紧肤面部提升,4800起',
'水光针项目下单赠面膜1片 补水嫩肤保湿,150起']}],
'message': ''}
test_01 (case_zhuanzhen_celue.Case)执行——>【失败Failure】
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/case/case_zhuanzhen_celue.py", line 33, in test_01
assert 0 == 1, "转诊策略派单数据不足6条 获取到:%s" % resl
AssertionError: 转诊策略派单数据不足6条 获取到:6
================test_01 (case_zhuanzhen_celue.Case)重运行第2次================
/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/venv/lib/python3.7/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'hera.igengmei.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
状态码:200
{'code': 0,
'data': [{'attribute': [1, 2, 3],
'attribute_desc': ['开通“优先派单”,且余额充足',
'V4及V4以上等级机构',
'保线索且认同派单为一条线索的机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '9dbf692c520f4469bc3afbaa5ba2c421',
'hospital_id': 'bjmsqyl',
'hospital_name': '北京美诗沁医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': [' MSQ睛典去眼袋 3-5天恢复 20分钟祛除 随做随走,5440起',
'全面部超皮秒 买一送三 详情咨询客服 ,1960起',
'【肉毒素瘦脸针+下颌缘提升】衡力/保妥适 主任亲诊 足量注射 瘦咬肌/去颈阔肌,980起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': 'd4f1894f28bb46eaaaec053ae04a5f89',
'hospital_id': 'f51ba7742a8c48e3825de9365eeba906',
'hospital_name': '北京领医医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【日本无痕技术】日本专家*全程翻译陪同 真正的日式无痕 自然天生双眼皮 眼综合,27000起',
'【日本医生操作】 【正品认证仪器】真正的日式医美体验 带给你不一样的祛斑美白嫩肤体验,3280起',
'乔雅登极致/雅致/润蓝铂金/艾丽薇大分子,1188起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '天津'},
'doctor_id': 'b1654a63e910448f85cd165b316cfe41',
'hospital_id': '3015d53c071c420b80944518133901b0',
'hospital_name': '天津凯润婷医疗美容医院(原凤凰怡美)',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['海薇188 爱芙莱/瑞蓝/乔雅登/可拆验,188起',
'进口硅胶(韩式生科)+耳软骨垫鼻尖 ,5800起',
'国产/进口肉毒素 除皱/瘦脸/瘦腿,99起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '8e582480c5a811e695c900163e00062b',
'hospital_id': 'bjoyylmr',
'hospital_name': '北京欧扬医疗美容门诊部',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 7,
'services': ['【脂肪面部填充】活细胞全脸 精细移植 精致轮廓 拒绝凹陷,6800起',
'【国产瘦脸100U】正品足量 拒绝咬肌肥大 打造明星脸,680起',
'【菲洛嘉复合水光8ml】53+1营养成分 补水抗衰嫩肤,880起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '4dafecfc29ef48fe94d738f0d4a517a6',
'hospital_id': '4f6ced94b6af4c06af84a3046e533149',
'hospital_name': '北京亚楠容悦医疗美容诊所',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【全身吸脂】腰腹+大腿+手臂速瘦8-15cm【原武警总院整形主任亲创】腰部吸脂,5280起',
'【红包补贴】原武警总院整形主任亲诊/无淤青/填额头太阳穴/伊婉艾莉薇乔雅登特惠,599起',
'武警总院主任亲诊·脂肪明星机构 脂肪填充,6600起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '3e00f028f81d11e6af9e00163e0051d4',
'hospital_id': '96ea37eef81d11e692f800163e000a4a',
'hospital_name': '北京凯润婷(原史三八)医疗美容医院',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 5,
'services': ['品牌玻尿酸项目 填充/除皱 可拆验 足量,188起',
'第五代热玛吉眼周/全面部 皱紧肤面部提升,4800起',
'水光针项目下单赠面膜1片 补水嫩肤保湿,150起']}],
'message': ''}
test_01 (case_zhuanzhen_celue.Case)执行——>【失败Failure】
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/case/case_zhuanzhen_celue.py", line 33, in test_01
assert 0 == 1, "转诊策略派单数据不足6条 获取到:%s" % resl
AssertionError: 转诊策略派单数据不足6条 获取到:6
================test_01 (case_zhuanzhen_celue.Case)重运行第3次================
/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/venv/lib/python3.7/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'hera.igengmei.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
状态码:200
{'code': 0,
'data': [{'attribute': [1, 2, 3],
'attribute_desc': ['开通“优先派单”,且余额充足',
'V4及V4以上等级机构',
'保线索且认同派单为一条线索的机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '9dbf692c520f4469bc3afbaa5ba2c421',
'hospital_id': 'bjmsqyl',
'hospital_name': '北京美诗沁医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': [' MSQ睛典去眼袋 3-5天恢复 20分钟祛除 随做随走,5440起',
'全面部超皮秒 买一送三 详情咨询客服 ,1960起',
'【肉毒素瘦脸针+下颌缘提升】衡力/保妥适 主任亲诊 足量注射 瘦咬肌/去颈阔肌,980起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': 'd4f1894f28bb46eaaaec053ae04a5f89',
'hospital_id': 'f51ba7742a8c48e3825de9365eeba906',
'hospital_name': '北京领医医疗美容',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【日本无痕技术】日本专家*全程翻译陪同 真正的日式无痕 自然天生双眼皮 眼综合,27000起',
'【日本医生操作】 【正品认证仪器】真正的日式医美体验 带给你不一样的祛斑美白嫩肤体验,3280起',
'乔雅登极致/雅致/润蓝铂金/艾丽薇大分子,1188起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '4dafecfc29ef48fe94d738f0d4a517a6',
'hospital_id': '4f6ced94b6af4c06af84a3046e533149',
'hospital_name': '北京亚楠容悦医疗美容诊所',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['【全身吸脂】腰腹+大腿+手臂速瘦8-15cm【原武警总院整形主任亲创】腰部吸脂,5280起',
'【红包补贴】原武警总院整形主任亲诊/无淤青/填额头太阳穴/伊婉艾莉薇乔雅登特惠,599起',
'武警总院主任亲诊·脂肪明星机构 脂肪填充,6600起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '天津'},
'doctor_id': 'b1654a63e910448f85cd165b316cfe41',
'hospital_id': '3015d53c071c420b80944518133901b0',
'hospital_name': '天津凯润婷医疗美容医院(原凤凰怡美)',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 4,
'services': ['海薇188 爱芙莱/瑞蓝/乔雅登/可拆验,188起',
'进口硅胶(韩式生科)+耳软骨垫鼻尖 ,5800起',
'国产/进口肉毒素 除皱/瘦脸/瘦腿,99起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '8e582480c5a811e695c900163e00062b',
'hospital_id': 'bjoyylmr',
'hospital_name': '北京欧扬医疗美容门诊部',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 7,
'services': ['【脂肪面部填充】活细胞全脸 精细移植 精致轮廓 拒绝凹陷,6800起',
'【国产瘦脸100U】正品足量 拒绝咬肌肥大 打造明星脸,680起',
'【菲洛嘉复合水光8ml】53+1营养成分 补水抗衰嫩肤,880起']},
{'attribute': [1, 2],
'attribute_desc': ['开通“优先派单”,且余额充足', 'V4及V4以上等级机构'],
'cash_back_rate_str': '10%',
'city': {'name': '北京'},
'doctor_id': '3e00f028f81d11e6af9e00163e0051d4',
'hospital_id': '96ea37eef81d11e692f800163e000a4a',
'hospital_name': '北京凯润婷(原史三八)医疗美容医院',
'is_deduction': True,
'is_fixed_ratio': True,
'merchant_level': 5,
'services': ['品牌玻尿酸项目 填充/除皱 可拆验 足量,188起',
'第五代热玛吉眼周/全面部 皱紧肤面部提升,4800起',
'水光针项目下单赠面膜1片 补水嫩肤保湿,150起']}],
'message': ''}
test_01 (case_zhuanzhen_celue.Case)执行——>【失败】
</pre>
<pre>Traceback (most recent call last):
</pre>
<pre> File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
</pre>
<pre> File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
</pre>
<pre> File "/Users/bingyinliu/PycharmProjects/untitled/gm-zhuanzhen-test/case/case_zhuanzhen_celue.py", line 33, in test_01
assert 0 == 1, "转诊策略派单数据不足6条 获取到:%s" % resl
</pre>
<pre>AssertionError: 转诊策略派单数据不足6条 获取到:6
</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: 0, name: '通过'},
{value: 1, name: '失败'},
{value: 0, name: '错误'},
{value: 0, name: '跳过'}
]
}
]
};
option2 = {
tooltip: {
formatter: '{a} <br/>{b} : {c}%'
},
toolbox: {
feature: {
restore: {},
saveAsImage: {}
}
},
series: [
{
name: '测试结果',
type: 'gauge',
detail: {formatter: '0.00%'},
data: [{value: '0.00', 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment