Skip to content

Commit cb04667

Browse files
author
DABURON Vincent
committed
Change version 1.4 add export result in html, csv or json format, add template html freemarker file
1 parent 1fe5fd6 commit cb04667

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2+
<html>
3+
<head>
4+
<meta content="text/html; charset=utf-8">
5+
<title>HTML KPIs Result From JMeter Report Csv</title>
6+
</head>
7+
<body>
8+
<style>
9+
table.table_jp {border-collapse: collapse;}
10+
table.table_jp, table.table_jp th, table.table_jp tr, table.table_jp td {
11+
border: 1px solid black;
12+
text-align: left;
13+
font-family: sans-serif;
14+
font-size:medium; }
15+
table.table_jp th:{background-color: #f8f8f8;}
16+
table.table_jp tr:nth-child(even) {background-color: #f2f2f2;}
17+
table.table_jp td:nth-child(5) { text-align: right; }
18+
</style>
19+
<h1>HTML KPIs Result From JMeter Report Csv</h1>
20+
<h2>Files In<h2>
21+
<table class="table_jp">
22+
<tr><td>File with KPIs</td><td>${globalResult.kpiFile}</td></tr>
23+
<tr><td>File CSV Report</td><td>${globalResult.csvJmeterReport}</td></tr>
24+
</table>
25+
<br>
26+
<h2>Test Summary</h2>
27+
<table class="table_jp">
28+
<tr><td>Number of failed tests</td><td <#if (globalResult.numberFailed &gt; 0)>style="color:Red;bold"</#if>><b>${globalResult.numberFailed}</b></td></tr>
29+
<tr><td>Number of tests</td><td><b>${globalResult.numberOfKpis}</b></td></tr>
30+
</table>
31+
<br>
32+
<h2>Table KPIs Results<h2>
33+
<table class="table_jp">
34+
<tr><th>name_kpi</th><th>metric_csv_column_name</th><th>label_regex</th><th>comparator</th><th>threshold</th><th>result</th><th>fail_msg</th></tr>
35+
<#list globalResult.checkKpiResults as checkKpiResult>
36+
<tr>
37+
<td>${checkKpiResult.nameKpi}</td>
38+
<td>${checkKpiResult.metricCsvColumnName}</td>
39+
<td>${checkKpiResult.labelRegex}</td>
40+
<td>${checkKpiResult.comparator}</td>
41+
<td>${checkKpiResult.threshold}</td>
42+
<td><#if checkKpiResult.kpiFail>fail<#else>sucess</#if></td>
43+
<td><#if checkKpiResult.kpiFail>${checkKpiResult.failMessage}</#if></td>
44+
</tr>
45+
</#list>
46+
</table>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)