mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 23:41:22 +08:00
update html report template
This commit is contained in:
@@ -47,7 +47,8 @@
|
|||||||
background-color: lightgrey;
|
background-color: lightgrey;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
text-align: center;
|
line-height: 20px;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
.details .success {
|
.details .success {
|
||||||
background-color: greenyellow;
|
background-color: greenyellow;
|
||||||
@@ -75,6 +76,7 @@
|
|||||||
a.button{
|
a.button{
|
||||||
color: gray;
|
color: gray;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.button:hover {
|
.button:hover {
|
||||||
background: #2cffbd;
|
background: #2cffbd;
|
||||||
@@ -90,6 +92,7 @@
|
|||||||
transition: opacity 500ms;
|
transition: opacity 500ms;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
line-height: 25px;
|
||||||
}
|
}
|
||||||
.overlay:target {
|
.overlay:target {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
@@ -188,35 +191,6 @@
|
|||||||
{% set suite_index = loop.index %}
|
{% set suite_index = loop.index %}
|
||||||
<h3>{{test_suite_summary.name}}</h3>
|
<h3>{{test_suite_summary.name}}</h3>
|
||||||
<table id="suite_{{suite_index}}" class="details">
|
<table id="suite_{{suite_index}}" class="details">
|
||||||
<tr>
|
|
||||||
<th>base_url</th>
|
|
||||||
<td colspan="2">{{test_suite_summary.base_url}}</td>
|
|
||||||
<th colspan="2" class="detail">
|
|
||||||
<a class="button" href="#suite_output_{{suite_index}}">parameters & output</a>
|
|
||||||
<div id="suite_output_{{suite_index}}" class="overlay">
|
|
||||||
<div class="popup">
|
|
||||||
<h2>Parameters and Output</h2>
|
|
||||||
<a class="close" href="#suite_{{suite_index}}">×</a>
|
|
||||||
<div class="content">
|
|
||||||
<div style="overflow: auto">
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>variables</th>
|
|
||||||
<th>output</th>
|
|
||||||
</tr>
|
|
||||||
{% if in_out in test_suite_summary %}
|
|
||||||
<tr>
|
|
||||||
<td>{{test_suite_summary.in_out.in}}</td>
|
|
||||||
<td>{{test_suite_summary.in_out.out}}</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>TOTAL: {{test_suite_summary.stat.testsRun}}</td>
|
<td>TOTAL: {{test_suite_summary.stat.testsRun}}</td>
|
||||||
<td>SUCCESS: {{test_suite_summary.stat.successes}}</td>
|
<td>SUCCESS: {{test_suite_summary.stat.successes}}</td>
|
||||||
@@ -235,7 +209,7 @@
|
|||||||
{% set record_index = "{}_{}".format(suite_index, loop.index) %}
|
{% set record_index = "{}_{}".format(suite_index, loop.index) %}
|
||||||
{% set record_meta_datas = record.meta_datas_expanded %}
|
{% set record_meta_datas = record.meta_datas_expanded %}
|
||||||
<tr id="record_{{record_index}}">
|
<tr id="record_{{record_index}}">
|
||||||
<th class="{{record.status}}" style="width:5em;">{{record.status}}</td>
|
<th class="{{record.status}}" style="width:5em;">{{record.status}}</th>
|
||||||
<td colspan="2">{{record.name}}</td>
|
<td colspan="2">{{record.name}}</td>
|
||||||
<td style="text-align:center;width:6em;">{{ record.response_time }} ms</td>
|
<td style="text-align:center;width:6em;">{{ record.response_time }} ms</td>
|
||||||
<td class="detail">
|
<td class="detail">
|
||||||
|
|||||||
Reference in New Issue
Block a user