You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
492 lines
13 KiB
492 lines
13 KiB
<head>
|
|
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title> - TestReport</title>
|
|
<style>
|
|
body {
|
|
background-color: #f2f2f2;
|
|
color: #333;
|
|
margin: 0 auto;
|
|
width: 960px;
|
|
}
|
|
#summary {
|
|
width: 960px;
|
|
margin-bottom: 20px;
|
|
}
|
|
#summary th {
|
|
background-color: skyblue;
|
|
padding: 5px 12px;
|
|
}
|
|
#summary td {
|
|
background-color: lightblue;
|
|
text-align: center;
|
|
padding: 4px 8px;
|
|
}
|
|
.details {
|
|
width: 960px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.details th {
|
|
background-color: skyblue;
|
|
padding: 5px 12px;
|
|
}
|
|
.details tr .passed {
|
|
background-color: lightgreen;
|
|
}
|
|
.details tr .failed {
|
|
background-color: red;
|
|
}
|
|
.details tr .unchecked {
|
|
background-color: gray;
|
|
}
|
|
.details td {
|
|
background-color: lightblue;
|
|
padding: 5px 12px;
|
|
}
|
|
.details .detail {
|
|
background-color: lightgrey;
|
|
font-size: smaller;
|
|
padding: 5px 10px;
|
|
line-height: 20px;
|
|
text-align: left;
|
|
}
|
|
.details .success {
|
|
background-color: greenyellow;
|
|
}
|
|
.details .error {
|
|
background-color: red;
|
|
}
|
|
.details .failure {
|
|
background-color: salmon;
|
|
}
|
|
.details .skipped {
|
|
background-color: gray;
|
|
}
|
|
|
|
.button {
|
|
font-size: 1em;
|
|
padding: 6px;
|
|
width: 4em;
|
|
text-align: center;
|
|
background-color: #06d85f;
|
|
border-radius: 20px/50px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease-out;
|
|
}
|
|
a.button{
|
|
color: gray;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
.button:hover {
|
|
background: #2cffbd;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
transition: opacity 500ms;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
line-height: 25px;
|
|
}
|
|
.overlay:target {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
.popup {
|
|
margin: 70px auto;
|
|
padding: 20px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
width: 50%;
|
|
position: relative;
|
|
transition: all 3s ease-in-out;
|
|
}
|
|
|
|
.popup h2 {
|
|
margin-top: 0;
|
|
color: #333;
|
|
font-family: Tahoma, Arial, sans-serif;
|
|
}
|
|
.popup .close {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 30px;
|
|
transition: all 200ms;
|
|
font-size: 30px;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
color: #333;
|
|
}
|
|
.popup .close:hover {
|
|
color: #06d85f;
|
|
}
|
|
.popup .content {
|
|
max-height: 80%;
|
|
overflow: auto;
|
|
text-align: left;
|
|
}
|
|
.popup .separator {
|
|
color:royalblue
|
|
}
|
|
|
|
@media screen and (max-width: 700px) {
|
|
.box {
|
|
width: 70%;
|
|
}
|
|
.popup {
|
|
width: 70%;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Test Report: </h1>
|
|
|
|
<h2>Summary</h2>
|
|
<table id="summary">
|
|
<tr>
|
|
<th>START AT</th>
|
|
<td colspan="4">2020-09-15 09:50:50</td>
|
|
</tr>
|
|
<tr>
|
|
<th>DURATION</th>
|
|
<td colspan="4">0.281 seconds</td>
|
|
</tr>
|
|
<tr>
|
|
<th>PLATFORM</th>
|
|
<td>HttpRunner 2.3.0 </td>
|
|
<td>CPython 3.8.4 </td>
|
|
<td colspan="2">Windows-10-10.0.18362-SP0</td>
|
|
</tr>
|
|
<tr>
|
|
<th>STAT</th>
|
|
<th colspan="2">TESTCASES (success/fail)</th>
|
|
<th colspan="2">TESTSTEPS (success/fail/error/skip)</th>
|
|
</tr>
|
|
<tr>
|
|
<td>total (details) =></td>
|
|
<td colspan="2">1 (1/0)</td>
|
|
<td colspan="2">1 (1/0/0/0)</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2>Details</h2>
|
|
|
|
|
|
|
|
<h3>删除会员</h3>
|
|
<table id="suite_1" class="details">
|
|
<tr>
|
|
<td>TOTAL: 1</td>
|
|
<td>SUCCESS: 1</td>
|
|
<td>FAILED: 0</td>
|
|
<td>ERROR: 0</td>
|
|
<td>SKIPPED: 0</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th colspan="2">Name</th>
|
|
<th>Response Time</th>
|
|
<th>Detail</th>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr id="record_1_1">
|
|
<th class="success" style="width:5em;">success</th>
|
|
<td colspan="2">删除会员</td>
|
|
<td style="text-align:center;width:6em;">255.39 ms</td>
|
|
<td class="detail">
|
|
|
|
|
|
|
|
<a class="button" href="#popup_log_1_1_1">log-1</a>
|
|
<div id="popup_log_1_1_1" class="overlay">
|
|
<div class="popup">
|
|
<h2>Request and Response data</h2>
|
|
<a class="close" href="#record_1_1_1">×</a>
|
|
|
|
<div class="content">
|
|
<h3>Name: 删除会员</h3>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Request:</h3>
|
|
<div style="overflow: auto">
|
|
<table>
|
|
|
|
<tr>
|
|
<th>url</th>
|
|
<td>
|
|
|
|
http://api-admin-test.qniao.cn/recycle-service/admin/member/delete-batch/member-expense-config
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>method</th>
|
|
<td>
|
|
|
|
POST
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>headers</th>
|
|
<td>
|
|
|
|
|
|
<div>
|
|
<strong>User-Agent</strong>: python-requests/2.24.0
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Accept-Encoding</strong>: gzip, deflate
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Accept</strong>: */*
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Connection</strong>: keep-alive
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Content-Type</strong>: application/json
|
|
</div>
|
|
|
|
<div>
|
|
<strong>X-APP-ID</strong>: 470236309865238555
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Authorization</strong>: Token a4289fbdfb3422e76232906b1ccdffb7
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Content-Length</strong>: 34
|
|
</div>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>body</th>
|
|
<td>
|
|
|
|
{"idList": ["503182395336429568"]}
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Response:</h3>
|
|
<div style="overflow: auto">
|
|
<table>
|
|
|
|
<tr>
|
|
<th>ok</th>
|
|
<td>
|
|
|
|
True
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>url</th>
|
|
<td>
|
|
|
|
http://api-admin-test.qniao.cn/recycle-service/admin/member/delete-batch/member-expense-config
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>status_code</th>
|
|
<td>
|
|
|
|
200
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>reason</th>
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>cookies</th>
|
|
<td>
|
|
|
|
{}
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>encoding</th>
|
|
<td>
|
|
|
|
UTF-8
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>headers</th>
|
|
<td>
|
|
|
|
|
|
<div>
|
|
<strong>Server</strong>: nginx
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Date</strong>: Tue, 15 Sep 2020 01:50:50 GMT
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Content-Type</strong>: application/json;charset=UTF-8
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Transfer-Encoding</strong>: chunked
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Connection</strong>: keep-alive
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Authorization</strong>: a4289fbdfb3422e76232906b1ccdffb7
|
|
</div>
|
|
|
|
<div>
|
|
<strong>X-Content-Type-Options</strong>: nosniff
|
|
</div>
|
|
|
|
<div>
|
|
<strong>X-XSS-Protection</strong>: 1; mode=block
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Cache-Control</strong>: no-cache, no-store, max-age=0, must-revalidate
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Pragma</strong>: no-cache
|
|
</div>
|
|
|
|
<div>
|
|
<strong>Expires</strong>: 0
|
|
</div>
|
|
|
|
<div>
|
|
<strong>X-Frame-Options</strong>: DENY
|
|
</div>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>content_type</th>
|
|
<td>
|
|
|
|
application/json;charset=UTF-8
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>json</th>
|
|
<td>
|
|
|
|
<pre>{'code': 0, 'message': 'successful', 'data': None}</pre>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<h3>Validators:</h3>
|
|
<div style="overflow: auto">
|
|
<table>
|
|
<tr>
|
|
<th>check</th>
|
|
<th>comparator</th>
|
|
<th>expect value</th>
|
|
<th>actual value</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="passed">
|
|
|
|
status_code
|
|
</td>
|
|
<td>equals</td>
|
|
<td>200</td>
|
|
<td>200</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
|
|
<h3>Statistics:</h3>
|
|
<div style="overflow: auto">
|
|
<table>
|
|
<tr>
|
|
<th>content_size(bytes)</th>
|
|
<td>45</td>
|
|
</tr>
|
|
<tr>
|
|
<th>response_time(ms)</th>
|
|
<td>255.39</td>
|
|
</tr>
|
|
<tr>
|
|
<th>elapsed(ms)</th>
|
|
<td>252.743</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</body>
|