修复已知问题
This commit is contained in:
270
test_Report/2022-0115.html
Normal file
270
test_Report/2022-0115.html
Normal file
@@ -0,0 +1,270 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>接口测试报告</title>
|
||||
<meta name="generator" content="BSTestRunner 0.8.4"/>
|
||||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
|
||||
/* -- css div popup ------------------------------------------------------------------------ */
|
||||
.popup_window {
|
||||
display: none;
|
||||
position: relative;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
/*border: solid #627173 1px; */
|
||||
padding: 10px;
|
||||
background-color: #99CCFF;
|
||||
font-family: "Lucida Console", "Courier New", Courier, monospace;
|
||||
text-align: left;
|
||||
font-size: 10pt;
|
||||
width: 1200px;
|
||||
}
|
||||
|
||||
/* -- report ------------------------------------------------------------------------ */
|
||||
|
||||
#show_detail_line .label {
|
||||
font-size: 85%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#show_detail_line {
|
||||
margin: 2em auto 1em auto;
|
||||
}
|
||||
|
||||
#total_row { font-weight: bold; }
|
||||
.hiddenRow { display: none; }
|
||||
.testcase { margin-left: 2em; }
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<script language="javascript" type="text/javascript"><!--
|
||||
output_list = Array();
|
||||
|
||||
/* level - 0:Summary; 1:Failed; 2:All */
|
||||
function showCase(level) {
|
||||
trs = document.getElementsByTagName("tr");
|
||||
for (var i = 0; i < trs.length; i++) {
|
||||
tr = trs[i];
|
||||
id = tr.id;
|
||||
if (id.substr(0,2) == 'ft') {
|
||||
if (level < 1) {
|
||||
tr.className = 'hiddenRow';
|
||||
}
|
||||
else {
|
||||
tr.className = '';
|
||||
}
|
||||
}
|
||||
if (id.substr(0,2) == 'pt') {
|
||||
if (level > 1) {
|
||||
tr.className = '';
|
||||
}
|
||||
else {
|
||||
tr.className = 'hiddenRow';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function showClassDetail(cid, count) {
|
||||
var id_list = Array(count);
|
||||
var toHide = 1;
|
||||
for (var i = 0; i < count; i++) {
|
||||
tid0 = 't' + cid.substr(1) + '.' + (i+1);
|
||||
tid = 'f' + tid0;
|
||||
tr = document.getElementById(tid);
|
||||
if (!tr) {
|
||||
tid = 'p' + tid0;
|
||||
tr = document.getElementById(tid);
|
||||
}
|
||||
id_list[i] = tid;
|
||||
if (tr.className) {
|
||||
toHide = 0;
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < count; i++) {
|
||||
tid = id_list[i];
|
||||
if (toHide) {
|
||||
document.getElementById('div_'+tid).style.display = 'none'
|
||||
document.getElementById(tid).className = 'hiddenRow';
|
||||
}
|
||||
else {
|
||||
document.getElementById(tid).className = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function showTestDetail(div_id){
|
||||
var details_div = document.getElementById(div_id)
|
||||
var displayState = details_div.style.display
|
||||
// alert(displayState)
|
||||
if (displayState != 'block' ) {
|
||||
displayState = 'block'
|
||||
details_div.style.display = 'block'
|
||||
}
|
||||
else {
|
||||
details_div.style.display = 'none'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function html_escape(s) {
|
||||
s = s.replace(/&/g,'&');
|
||||
s = s.replace(/</g,'<');
|
||||
s = s.replace(/>/g,'>');
|
||||
return s;
|
||||
}
|
||||
|
||||
/* obsoleted by detail in <div>
|
||||
function showOutput(id, name) {
|
||||
var w = window.open("", //url
|
||||
name,
|
||||
"resizable,scrollbars,status,width=800,height=450");
|
||||
d = w.document;
|
||||
d.write("<pre>");
|
||||
d.write(html_escape(output_list[id]));
|
||||
d.write("\n");
|
||||
d.write("<a href='javascript:window.close()'>close</a>\n");
|
||||
d.write("</pre>\n");
|
||||
d.close();
|
||||
}
|
||||
*/
|
||||
--></script>
|
||||
|
||||
<div class="container">
|
||||
<div class='heading'>
|
||||
<h1>接口测试报告</h1>
|
||||
<p><strong>Start Time:</strong> 2022-01-15 13:41:51</p>
|
||||
<p><strong>Duration:</strong> 0:00:00.003556</p>
|
||||
<p><strong>Status:</strong> <span class="text text-success">Pass <strong>2</strong></span></p>
|
||||
|
||||
<p class='description'>测试结果</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<p id='show_detail_line'>
|
||||
<span class="label label-primary" onclick="showCase(0)">Summary</span>
|
||||
<span class="label label-danger" onclick="showCase(1)">Failed</span>
|
||||
<span class="label label-default" onclick="showCase(2)">All</span>
|
||||
</p>
|
||||
<table id='result_table' class="table">
|
||||
<thead>
|
||||
<tr id='header_row'>
|
||||
<th>Test Group/Test case</td>
|
||||
<th>Count</td>
|
||||
<th>Pass</td>
|
||||
<th>Fail</td>
|
||||
<th>Error</td>
|
||||
<th>View</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr class='text text-success'>
|
||||
<td>testCase.ddt_case.MyTest</td>
|
||||
<td>2</td>
|
||||
<td>2</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td><a class="btn btn-xs btn-primary"href="javascript:showClassDetail('c1',2)">Detail</a></td>
|
||||
</tr>
|
||||
|
||||
<tr id='pt1.1' class='hiddenRow'>
|
||||
<td class='text text-success'><div class='testcase'>test_api_1</div></td>
|
||||
<td colspan='5' align='center'>
|
||||
|
||||
<!--css div popup start-->
|
||||
<a class="popup_link btn btn-xs btn-default" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.1')" >
|
||||
pass</a>
|
||||
|
||||
<div id='div_pt1.1' class="popup_window">
|
||||
<div style='text-align: right;cursor:pointer'>
|
||||
<a onfocus='this.blur();' onclick="document.getElementById('div_pt1.1').style.display = 'none' " >
|
||||
[x]</a>
|
||||
</div>
|
||||
<pre>
|
||||
|
||||
pt1.1: [2022-01-15 13:41:51.307929] INFO: jiekou: 测试用例开始执行
|
||||
[2022-01-15 13:41:51.308125] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:POST
|
||||
[2022-01-15 13:41:51.308411] INFO: jiekou: 输入参数:url:/openapi/api,key:aaaa,参数:{'password':'1222'},请求方式:None
|
||||
[2022-01-15 13:41:51.309817] INFO: jiekou: 返回结果:{'code': 1, 'result': "请求异常:Invalid URL '/openapi/api': No schema supplied. Perhaps you meant http:///openapi/api?"}
|
||||
[2022-01-15 13:41:51.309979] INFO: jiekou: 当前模块 断言测试结果
|
||||
[2022-01-15 13:41:51.310077] INFO: jiekou: 全部args参数参数信息 , ()
|
||||
[2022-01-15 13:41:51.310160] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40001'}
|
||||
[2022-01-15 13:41:51.310261] INFO: jiekou: 测试用例执行完毕
|
||||
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
<!--css div popup end-->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id='pt1.2' class='hiddenRow'>
|
||||
<td class='text text-success'><div class='testcase'>test_api_2</div></td>
|
||||
<td colspan='5' align='center'>
|
||||
|
||||
<!--css div popup start-->
|
||||
<a class="popup_link btn btn-xs btn-default" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.2')" >
|
||||
pass</a>
|
||||
|
||||
<div id='div_pt1.2' class="popup_window">
|
||||
<div style='text-align: right;cursor:pointer'>
|
||||
<a onfocus='this.blur();' onclick="document.getElementById('div_pt1.2').style.display = 'none' " >
|
||||
[x]</a>
|
||||
</div>
|
||||
<pre>
|
||||
|
||||
pt1.2: [2022-01-15 13:41:51.310391] INFO: jiekou: 测试用例开始执行
|
||||
[2022-01-15 13:41:51.310482] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:POST
|
||||
[2022-01-15 13:41:51.310559] INFO: jiekou: 输入参数:url:/openapi/api,key:dfeb1cc8125943d29764a2f2f5c33739,参数:{'password':'1222'},请求方式:None
|
||||
[2022-01-15 13:41:51.310906] INFO: jiekou: 返回结果:{'code': 1, 'result': "请求异常:Invalid URL '/openapi/api': No schema supplied. Perhaps you meant http:///openapi/api?"}
|
||||
[2022-01-15 13:41:51.311002] INFO: jiekou: 当前模块 断言测试结果
|
||||
[2022-01-15 13:41:51.311085] INFO: jiekou: 全部args参数参数信息 , ()
|
||||
[2022-01-15 13:41:51.311161] INFO: jiekou: 全部kwargs参数信息 , {'asserqingwang': 'code=40002'}
|
||||
[2022-01-15 13:41:51.311249] INFO: jiekou: 测试用例执行完毕
|
||||
|
||||
|
||||
</pre>
|
||||
</div>
|
||||
<!--css div popup end-->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr id='total_row'>
|
||||
<td>Total</td>
|
||||
<td>2</td>
|
||||
<td class="text text-success">2</td>
|
||||
<td class="text text-danger">0</td>
|
||||
<td class="text text-warning">0</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
<div id='ending'> </div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
test_Report/20220115-result.xls
Normal file
BIN
test_Report/20220115-result.xls
Normal file
Binary file not shown.
117
test_Report/202201151343-result.html
Normal file
117
test_Report/202201151343-result.html
Normal file
@@ -0,0 +1,117 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>http接口自动化测试报告</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- 引入 Bootstrap -->
|
||||
<link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
|
||||
<!-- 注意: 如果通过 file:// 引入 Respond.js 文件,则该文件无法起效果 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
.hidden-detail,.hidden-tr{
|
||||
display:none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class='col-md-4 col-md-offset-4' style='margin-left:3%;'>
|
||||
<h1>接口测试的结果</h1>
|
||||
<table class="table table-hover table-condensed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>开始时间:</strong> 2022-01-15 13:43:00.888436</td>
|
||||
</tr>
|
||||
<td><strong>结束时间:</strong> 2022-01-15 13:43:04.033432</td></tr>
|
||||
<td><strong>耗时:</strong> 0:00:03.144996</td></tr>
|
||||
<td><strong>结果:</strong>
|
||||
<span >Pass: <strong >0</strong>
|
||||
Fail: <strong >2</strong>
|
||||
exception: <strong >0</strong>
|
||||
weizhicuowu : <strong >0</strong></span></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</div> <div class="row " style="margin:60px">
|
||||
<div style=' margin-top: 18%;' >
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
<button type="button" id="check-all" class="btn btn-primary">所有用例</button>
|
||||
<button type="button" id="check-success" class="btn btn-success">成功用例</button>
|
||||
<button type="button" id="check-danger" class="btn btn-danger">失败用例</button>
|
||||
<button type="button" id="check-warning" class="btn btn-warning">错误用例</button>
|
||||
<button type="button" id="check-except" class="btn btn-defult">异常用例</button>
|
||||
</div>
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
</div>
|
||||
<table class="table table-hover table-condensed table-bordered" style="word-wrap:break-word; word-break:break-all; margin-top: 7px;">
|
||||
<tr >
|
||||
<td ><strong>用例ID </strong></td>
|
||||
<td><strong>用例名字</strong></td>
|
||||
<td><strong>key</strong></td>
|
||||
<td><strong>请求内容</strong></td>
|
||||
<td><strong>url</strong></td>
|
||||
<td><strong>请求方式</strong></td>
|
||||
<td><strong>预期</strong></td>
|
||||
<td><strong>实际返回</strong></td>
|
||||
<td><strong>结果</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr class="case-tr warning">
|
||||
<td>1.0</td>
|
||||
<td>图灵api接口</td>
|
||||
<td>aaaa</td>
|
||||
<td>{'password':'1222'}</td>
|
||||
<td>/openapi/api</td>
|
||||
<td>POST</td>
|
||||
<td>code=40001</td>
|
||||
<td>{'code': 40007, 'text': '您的请求内容为空。'}</td>
|
||||
<td bgcolor="fail">fail</td>
|
||||
</tr>
|
||||
|
||||
<tr class="case-tr warning">
|
||||
<td>2.0</td>
|
||||
<td>图灵api接口</td>
|
||||
<td>dfeb1cc8125943d29764a2f2f5c33739</td>
|
||||
<td>{'password':'1222'}</td>
|
||||
<td>/openapi/api</td>
|
||||
<td>POST</td>
|
||||
<td>code=40002</td>
|
||||
<td>{'code': 40007, 'text': '您的请求内容为空。'}</td>
|
||||
<td bgcolor="fail">fail</td>
|
||||
</tr>
|
||||
</div></div></table><script src="https://code.jquery.com/jquery.js"></script>
|
||||
<script src="https://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#check-danger").click(function(e){
|
||||
$(".case-tr").removeClass("hidden-tr");
|
||||
$(".success").addClass("hidden-tr");
|
||||
$(".warning").addClass("hidden-tr");
|
||||
$(".error").addClass("hidden-tr");
|
||||
});
|
||||
$("#check-warning").click(function(e){
|
||||
$(".case-tr").removeClass("hidden-tr");
|
||||
$(".success").addClass("hidden-tr");
|
||||
$(".danger").addClass("hidden-tr");
|
||||
$(".error").addClass("hidden-tr");
|
||||
});
|
||||
$("#check-success").click(function(e){
|
||||
$(".case-tr").removeClass("hidden-tr");
|
||||
$(".warning").addClass("hidden-tr");
|
||||
$(".danger").addClass("hidden-tr");
|
||||
$(".error").addClass("hidden-tr");
|
||||
});
|
||||
$("#check-except").click(function(e){
|
||||
$(".case-tr").removeClass("hidden-tr");
|
||||
$(".warning").addClass("hidden-tr");
|
||||
$(".danger").addClass("hidden-tr");
|
||||
$(".success").addClass("hidden-tr");
|
||||
});
|
||||
$("#check-all").click(function(e){
|
||||
$(".case-tr").removeClass("hidden-tr");
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user