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

<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:48:17</td>
</tr>
<tr>
<th>DURATION</th>
<td colspan="4">0.235 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;">197.34 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">&times;</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/new/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>: 252
</div>
</td>
</tr>
<tr>
<th>body</th>
<td>
{&#34;bidPrice&#34;: 1000, &#34;days&#34;: 30, &#34;description&#34;: &#34;\u65b0\u4eba\u9996\u5145\u4f18\u60e0\u5927\u5927~~&#34;, &#34;enable&#34;: 1, &#34;icon&#34;: &#34;http://medou.oss-cn-shenzhen.aliyuncs.com/saas/20200624155949.png&#34;, &#34;realPrice&#34;: 100, &#34;sellStrategy&#34;: &#34;common&#34;, &#34;title&#34;: &#34;\u5929&#34;}
</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/new/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:48:17 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>{&#39;code&#39;: 0, &#39;message&#39;: &#39;successful&#39;, &#39;data&#39;: 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>197.34</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>191.669</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</body>