mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
display parameters and output in report
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
__title__ = 'HttpRunner'
|
__title__ = 'HttpRunner'
|
||||||
__description__ = 'One-stop solution for HTTP(S) testing.'
|
__description__ = 'One-stop solution for HTTP(S) testing.'
|
||||||
__url__ = 'https://github.com/HttpRunner/HttpRunner'
|
__url__ = 'https://github.com/HttpRunner/HttpRunner'
|
||||||
__version__ = '1.5.1'
|
__version__ = '1.5.2'
|
||||||
__author__ = 'debugtalk'
|
__author__ = 'debugtalk'
|
||||||
__author_email__ = 'mail@debugtalk.com'
|
__author_email__ = 'mail@debugtalk.com'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
|
|||||||
+4
-1
@@ -151,7 +151,10 @@ class TestSuite(unittest.TestSuite):
|
|||||||
if not out:
|
if not out:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
in_out = {"in": variables, "out": out}
|
in_out = {
|
||||||
|
"in": variables or {},
|
||||||
|
"out": out
|
||||||
|
}
|
||||||
if in_out not in outputs:
|
if in_out not in outputs:
|
||||||
outputs.append(in_out)
|
outputs.append(in_out)
|
||||||
|
|
||||||
|
|||||||
@@ -187,10 +187,35 @@
|
|||||||
{% for test_suite_summary in details %}
|
{% for test_suite_summary in details %}
|
||||||
{% set suite_index = loop.index %}
|
{% set suite_index = loop.index %}
|
||||||
<h3>{{test_suite_summary.name}}</h3>
|
<h3>{{test_suite_summary.name}}</h3>
|
||||||
<table class="details">
|
<table id="suite_{{suite_index}}" class="details">
|
||||||
<tr>
|
<tr>
|
||||||
<th>base_url</th>
|
<th>base_url</th>
|
||||||
<td colspan="4">{{test_suite_summary.base_url}}</td>
|
<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>
|
||||||
|
{% for in_out in test_suite_summary.output %}
|
||||||
|
<tr>
|
||||||
|
<td>{{in_out.in}}</td>
|
||||||
|
<td>{{in_out.out}}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>TOTAL: {{test_suite_summary.stat.testsRun}}</td>
|
<td>TOTAL: {{test_suite_summary.stat.testsRun}}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user