forked from RaghavendhraK/cucumber-html-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_template.html
74 lines (63 loc) · 2.11 KB
/
custom_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<html>
<head>
<title>Cucumber Report</title>
<meta charset="UTF-8"/>
</head>
<body>
<main class="report-container">
{{#features}}
<section class="report" id="F_{{id}}">
<h2>{{keyword}}: {{name}} <span class="tags">{{tags}}</span></h2>
<p class="filename">{{uri}}</p>
<p class="story">{{description}}</p>
{{#elements}}
<h3 id="S_{{id}}">
{{keyword}}: {{name}}
{{#tags}}
<span class="scenario-tag">{{name}}</span>
{{/tags}}
</h3>
<table>
<tr class="header-row">
<th style="width: 100px;">Condition</th>
<th>Step</th>
<th style="width: 100px;">Line</th>
<th class="duration" style="width: 100px;">Duration</th>
<th style="width: 100px;">Status</th>
</tr>
{{#steps}}
<tr class="{{result.status}}">
<td>{{keyword}}</td>
<td>
{{name}}
<table class="datatable">
<!-- {{#arguments}} -->
<!-- {{#rows}} -->
<tr>
<!-- {{#cells}} -->
<td>{{.}}</td>
<!-- {{/cells}} -->
</tr>
<!-- {{/rows}} -->
<!-- {{/arguments}} -->
</table>
</td>
<td>{{line}}</td>
<td class="duration">{{#duration}}{{result.convertedDuration}}{{/duration}}</td>
<td class="status">{{result.status}}</td>
</tr>
<tr class="hidden {{result.status}}">
<td class="trace" colspan="4">
<pre>{{result.error_message}}</pre>
</td>
<td class="screenshot-link" data-features="{{featuresJson}}" data-index="{{index}}"></td>
</tr>
{{/steps}}
</table>
{{/elements}}
</section>
{{/features}}
</main>
</body>
</html>