Skip to content

Commit ed4a11a

Browse files
author
Rui Li
committed
update outlook template
1 parent 05893f3 commit ed4a11a

File tree

3 files changed

+98
-13
lines changed

3 files changed

+98
-13
lines changed

htmloutputparallel/templates/report-outlook-friendly.jinja2

Lines changed: 96 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,17 @@ function showOutput(id, name) {
159159
<p class="attribute"><strong>Start Time:</strong> {{ start_time }}</p>
160160
<p class="attribute"><strong>Duration:</strong> {{ duration }}</p>
161161
<p class="attribute"><strong>Status:</strong>
162-
Total: {{ stats.total }}
163-
Pass: {{ stats.passes }}
164-
Skip: {{ stats.skipped }}
165-
Failures: {{ stats.failures }}
166-
Errors: {{ stats.errors}}</p>
162+
Total: {{ stats.total }}
163+
Pass: {{ stats.passes }}
164+
Skip: {{ stats.skipped }}
165+
Failures: {{ stats.failures }}
166+
Errors: {{ stats.errors}}
167+
</p>
167168

168169
</div>
169170

170171

171172

172-
<p id="show_detail_line">Show
173-
<a href="javascript:showCase(0)">Summary</a>
174-
<a href="javascript:showCase(1)">Failed</a>
175-
<a href="javascript:showCase(2)">All</a>
176-
</p>
177173
<table id="result_table">
178174
<colgroup>
179175
<col align="left">
@@ -228,8 +224,14 @@ function showOutput(id, name) {
228224
{% set test_status="Error" %}
229225
{%- endif %}
230226
{%- set description = test.shortDescription -%}
227+
228+
{% if test_status=="Pass" or test_status=="Skip" %}
229+
<tr id='{{ class + test.name }}' class='testcase' style='display: none;'>
230+
{%- else -%}
231+
<tr id='{{ class + test.name }}' class='testcase'>
232+
{%- endif %}
233+
231234

232-
<tr id='{{ class + test.name }}' class='testcase'>
233235
<td class="{{ test_status.lower() }}Case">
234236
{{ test.name }}
235237
{% if test.shortDescription %}
@@ -258,7 +260,90 @@ function showOutput(id, name) {
258260
{%- endfor -%}
259261
{%- endfor -%}
260262

263+
<!--
264+
<tr class="passClass">
265+
<td>SalesForce: Sales Force QueueSize Check</td>
266+
<td>1</td>
267+
<td>1</td>
268+
<td>0</td>
269+
<td>0</td>
270+
<td><a href="javascript:showClassDetail('c1',1)">Detail</a></td>
271+
</tr>
272+
273+
<tr id="pt1.1" class="hiddenRow">
274+
<td class="none"><div class="testcase">test_ASG1: Salesforce Queue Size for ASG-1</div></td>
275+
<td colspan="5" align="center">pass</td>
276+
</tr>
277+
278+
<tr class="failClass">
279+
<td>AmazonEvents: AWS events check</td>
280+
<td>2</td>
281+
<td>1</td>
282+
<td>1</td>
283+
<td>0</td>
284+
<td><a href="javascript:showClassDetail('c2',2)">Detail</a></td>
285+
</tr>
286+
287+
<tr id="pt2.1" class="hiddenRow">
288+
<td class="none"><div class="testcase">test_check_aws_events: Check amazon instances events</div></td>
289+
<td colspan="5" align="center">pass</td>
290+
</tr>
291+
292+
<tr id="ft2.2" class="none">
293+
<td class="failCase"><div class="testcase">test_prepaid_aws_instance: Check pre-paid aws instances</div></td>
294+
<td colspan="5" align="center">
261295
296+
<!-css div popup start->
297+
<a class="popup_link" onfocus="this.blur();" href="javascript:showTestDetail('div_ft2.2')">
298+
fail</a>
299+
300+
<div id="div_ft2.2" class="popup_window">
301+
<div style="text-align: right; color:red;cursor:pointer">
302+
<a onfocus="this.blur();" onclick="document.getElementById('div_ft2.2').style.display = 'none' ">
303+
[x]</a>
304+
</div>
305+
<pre>
306+
307+
ft2.2: AssertionError: {
308+
&quot;us-west-1&quot;: {
309+
&quot;c4.8xlarge&quot;: {
310+
&quot;count&quot;: 21,
311+
&quot;name&quot;: [
312+
&quot;canary273a-copes1-aca.rtc.citrixonline.com&quot;,
313+
&quot;canary273a-copes2-aca.rtc.citrixonline.com&quot;,
314+
&quot;canary273a-edge5-aca.rtc.citrixonline.com&quot;,
315+
&quot;canary273a-edge6-aca.rtc.citrixonline.com&quot;,
316+
&quot;canary273a-edge7-aca.rtc.citrixonline.com&quot;,
317+
&quot;canary273a-edge8-aca.rtc.citrixonline.com&quot;,
318+
&quot;canary273a-edge9-aca.rtc.citrixonline.com&quot;,
319+
&quot;canary273a-manager1-aca.rtc.citrixonline.com&quot;,
320+
&quot;canary273a-manager2-aca.rtc.citrixonline.com&quot;,
321+
&quot;canary273a-mixer1-aca.rtc.citrixonline.com&quot;,
322+
&quot;canary273a-mixer2-aca.rtc.citrixonline.com&quot;,
323+
&quot;canary273b-copes1-aca.rtc.citrixonline.com&quot;,
324+
&quot;canary273b-copes2-aca.rtc.citrixonline.com&quot;,
325+
&quot;canary273b-edge1-aca.rtc.citrixonline.com&quot;,
326+
&quot;canary273b-edge2-aca.rtc.citrixonline.com&quot;,
327+
&quot;canary273b-edge3-aca.rtc.citrixonline.com&quot;,
328+
&quot;canary273b-edge4-aca.rtc.citrixonline.com&quot;,
329+
&quot;canary273b-edge5-aca.rtc.citrixonline.com&quot;,
330+
&quot;canary273b-manager1-aca.rtc.citrixonline.com&quot;,
331+
&quot;canary273b-manager2-aca.rtc.citrixonline.com&quot;,
332+
&quot;canary273b-mixer1-aca.rtc.citrixonline.com&quot;
333+
],
334+
&quot;error&quot;: 1
335+
}
336+
}
337+
}
338+
339+
340+
</pre>
341+
</div>
342+
<!-css div popup end->
343+
344+
</td>
345+
</tr>
346+
-->
262347
<tr id="total_row">
263348
<td>Total</td>
264349
<td>13</td>

htmloutputparallel/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.2'
1+
__version__ = '1.3'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
description="Nose plugin to produce test results in html and works with parallel testing (--processes=N).",
1010
license="GNU GENERAL PUBLIC LICENSE, Version 3",
1111
url="https://github.com/ruivapps/htmloutputparallel",
12-
download_url='https://github.com/ruivapps/htmloutputparallel/tarball/1.2',
12+
download_url='https://github.com/ruivapps/htmloutputparallel/tarball/1.3',
1313
packages=["htmloutputparallel"],
1414
package_dir={'htmloutputparallel':'htmloutputparallel'},
1515
package_data={'htmloutputparallel': ['templates/*.jinja2']},

0 commit comments

Comments
 (0)