|
|
<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-07-04T14:53:21.546364</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>DURATION</th>
|
|
|
<td colspan="4">0.325 seconds</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>PLATFORM</th>
|
|
|
<td>HttpRunner 2.5.5 </td>
|
|
|
<td>CPython 3.8.1 </td>
|
|
|
<td colspan="2">Windows-7-6.1.7601-SP1</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">2 (2/0/0/0)</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
<h2>Details</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>call demo_testcase with data 1</h3>
|
|
|
<table id="suite_1" class="details">
|
|
|
<tr>
|
|
|
<td>TOTAL: 2</td>
|
|
|
<td>SUCCESS: 2</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">10000000001 登录系统</td>
|
|
|
<td style="text-align:center;width:6em;">214.01 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: 10000000001 登录系统</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Request:</h3>
|
|
|
<div style="overflow: auto">
|
|
|
<table>
|
|
|
|
|
|
<tr>
|
|
|
<th>url</th>
|
|
|
<td>
|
|
|
|
|
|
https://public-interface.fjmaimaimai.com/mmm-partnermg/v1/auth/login
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>method</th>
|
|
|
<td>
|
|
|
|
|
|
POST
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>headers</th>
|
|
|
<td>
|
|
|
|
|
|
<pre>{
|
|
|
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36",
|
|
|
"Accept-Encoding": "gzip, deflate",
|
|
|
"Accept": "*/*",
|
|
|
"Connection": "keep-alive",
|
|
|
"Content-Type": "application/json;charset=utf-8",
|
|
|
"Content-Length": "83"
|
|
|
}</pre>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>body</th>
|
|
|
<td>
|
|
|
|
|
|
<pre>{
|
|
|
"password": "7c4a8d09ca3762af61e59520943dc26494f8941b",
|
|
|
"username": "10000000001"
|
|
|
}</pre>
|
|
|
|
|
|
</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>
|
|
|
|
|
|
https://public-interface.fjmaimaimai.com/mmm-partnermg/v1/auth/login
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>status_code</th>
|
|
|
<td>
|
|
|
|
|
|
200
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>reason</th>
|
|
|
<td>
|
|
|
|
|
|
OK
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>cookies</th>
|
|
|
<td>
|
|
|
|
|
|
{}
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>encoding</th>
|
|
|
<td>
|
|
|
|
|
|
utf-8
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>headers</th>
|
|
|
<td>
|
|
|
|
|
|
<pre>{
|
|
|
"Date": "Sat, 04 Jul 2020 14:53:22 GMT",
|
|
|
"Content-Type": "application/json; charset=utf-8",
|
|
|
"Transfer-Encoding": "chunked",
|
|
|
"Connection": "keep-alive",
|
|
|
"Vary": "Accept-Encoding, Accept-Encoding",
|
|
|
"Access-Control-Allow-Credentials": "true",
|
|
|
"Access-Control-Allow-Headers": "Origin,Authorization,Access-Control-Allow-Origin,Content-Type,x-requested-with",
|
|
|
"Access-Control-Allow-Methods": "*",
|
|
|
"Access-Control-Allow-Origin": "*",
|
|
|
"Access-Control-Expose-Headers": "Content-Length",
|
|
|
"Strict-Transport-Security": "max-age=15724800; includeSubDomains",
|
|
|
"Content-Encoding": "gzip"
|
|
|
}</pre>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>content_type</th>
|
|
|
<td>
|
|
|
|
|
|
application/json; charset=utf-8
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>body</th>
|
|
|
<td>
|
|
|
|
|
|
|
|
|
<pre>{
|
|
|
"code": 0,
|
|
|
"msg": "ok",
|
|
|
"data": {
|
|
|
"access": {
|
|
|
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTM5MTc2MDIsImlhdCI6MTU5Mzg3NDQwMiwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTU5Mzg3NDQwMiwidWlkIjoxfQ.UxDe_mYaDvonOU1f98xBizsE5iIJBMmuYrFHBXlHY_8",
|
|
|
"expiresIn": 43200
|
|
|
}
|
|
|
}
|
|
|
}</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">
|
|
|
|
|
|
content.msg
|
|
|
</td>
|
|
|
<td>equals</td>
|
|
|
<td>ok</td>
|
|
|
<td>ok</td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<h3>Statistics:</h3>
|
|
|
<div style="overflow: auto">
|
|
|
<table>
|
|
|
<tr>
|
|
|
<th>content_size(bytes)</th>
|
|
|
<td>310</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>response_time(ms)</th>
|
|
|
<td>214.01</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>elapsed(ms)</th>
|
|
|
<td>204.213</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
<tr id="record_1_2">
|
|
|
<th class="success" style="width:5em;">success</th>
|
|
|
<td colspan="2">10000000001 新增实际订单</td>
|
|
|
<td style="text-align:center;width:6em;">60.00 ms</td>
|
|
|
<td class="detail">
|
|
|
|
|
|
|
|
|
|
|
|
<a class="button" href="#popup_log_1_2_1">log-1</a>
|
|
|
<div id="popup_log_1_2_1" class="overlay">
|
|
|
<div class="popup">
|
|
|
<h2>Request and Response data</h2>
|
|
|
<a class="close" href="#record_1_2_1">×</a>
|
|
|
|
|
|
<div class="content">
|
|
|
<h3>Name: 10000000001 新增实际订单</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Request:</h3>
|
|
|
<div style="overflow: auto">
|
|
|
<table>
|
|
|
|
|
|
<tr>
|
|
|
<th>url</th>
|
|
|
<td>
|
|
|
|
|
|
https://public-interface.fjmaimaimai.com/mmm-partnermg/v1/order/actual/update
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>method</th>
|
|
|
<td>
|
|
|
|
|
|
POST
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>headers</th>
|
|
|
<td>
|
|
|
|
|
|
<pre>{
|
|
|
"User-Agent": "okhttp/3.12.3",
|
|
|
"Accept-Encoding": "gzip, deflate",
|
|
|
"Accept": "*/*",
|
|
|
"Connection": "keep-alive",
|
|
|
"Content-Type": "application/json;charset=utf-8",
|
|
|
"Authorization": "Bearer bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTM5MTc2MDIsImlhdCI6MTU5Mzg3NDQwMiwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTU5Mzg3NDQwMiwidWlkIjoxfQ.UxDe_mYaDvonOU1f98xBizsE5iIJBMmuYrFHBXlHY_8",
|
|
|
"Content-Length": "368"
|
|
|
}</pre>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>body</th>
|
|
|
<td>
|
|
|
|
|
|
<pre>{
|
|
|
"buyer": "我是买家21",
|
|
|
"buyerPhone": "13459147023",
|
|
|
"address": "福建省福州市收获地址1",
|
|
|
"partner": 29,
|
|
|
"partnerRatio": 99.99,
|
|
|
"salesmanRatio": 22.11,
|
|
|
"orderId": "20200704225321",
|
|
|
"orderName": "20200704225321",
|
|
|
"orderNum": 5000,
|
|
|
"orderPrice": 100000000,
|
|
|
"orderDist": "福建一区",
|
|
|
"orderStatue": 3
|
|
|
}</pre>
|
|
|
|
|
|
</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>
|
|
|
|
|
|
https://public-interface.fjmaimaimai.com/mmm-partnermg/v1/order/actual/update
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>status_code</th>
|
|
|
<td>
|
|
|
|
|
|
200
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>reason</th>
|
|
|
<td>
|
|
|
|
|
|
OK
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>cookies</th>
|
|
|
<td>
|
|
|
|
|
|
{}
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>encoding</th>
|
|
|
<td>
|
|
|
|
|
|
utf-8
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>headers</th>
|
|
|
<td>
|
|
|
|
|
|
<pre>{
|
|
|
"Date": "Sat, 04 Jul 2020 14:53:22 GMT",
|
|
|
"Content-Type": "application/json; charset=utf-8",
|
|
|
"Content-Length": "55",
|
|
|
"Connection": "keep-alive",
|
|
|
"Access-Control-Allow-Credentials": "true",
|
|
|
"Access-Control-Allow-Headers": "Origin,Authorization,Access-Control-Allow-Origin,Content-Type,x-requested-with",
|
|
|
"Access-Control-Allow-Methods": "*",
|
|
|
"Access-Control-Allow-Origin": "*",
|
|
|
"Access-Control-Expose-Headers": "Content-Length",
|
|
|
"Strict-Transport-Security": "max-age=15724800; includeSubDomains"
|
|
|
}</pre>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>content_type</th>
|
|
|
<td>
|
|
|
|
|
|
application/json; charset=utf-8
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>body</th>
|
|
|
<td>
|
|
|
|
|
|
|
|
|
<pre>{
|
|
|
"code": -1,
|
|
|
"msg": "服务异常",
|
|
|
"data": {}
|
|
|
}</pre>
|
|
|
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<h3>Validators:</h3>
|
|
|
<div style="overflow: auto">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<h3>Statistics:</h3>
|
|
|
<div style="overflow: auto">
|
|
|
<table>
|
|
|
<tr>
|
|
|
<th>content_size(bytes)</th>
|
|
|
<td>55</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>response_time(ms)</th>
|
|
|
<td>60.0</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>elapsed(ms)</th>
|
|
|
<td>56.931</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</body> |
|
|
\ No newline at end of file |
...
|
...
|
|