Skip to content

Commit 3cfb770

Browse files
author
DABURON Vincent
committed
version 1.7, Define unique table css class to avoid conflict, update libraries (jackson, commons-cli, commons-csv, freemarker, nexus-staging).
1 parent 37205f7 commit 3cfb770

File tree

4 files changed

+27
-25
lines changed

4 files changed

+27
-25
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ The maven groupId, artifactId and version, this plugin is in the **Maven Central
124124
```xml
125125
<groupId>io.github.vdaburon</groupId>
126126
<artifactId>junit-reporter-kpi-from-jmeter-report-csv</artifactId>
127-
<version>1.6</version>
127+
<version>1.7</version>
128128
```
129129
Just include the plugin in your `pom.xml` and execute `mvn verify` <br>
130130
or individual launch `mvn -DjmeterReportFile=synthesis.csv -DkpiFile=kpi.csv -DjunitFile=jmeter-junit-plugin-jmreport.xml exec:exec@create_junit-report-kpi-from-jmeter-report`
@@ -142,7 +142,7 @@ or individual launch `mvn -DjmeterReportFile=synthesis.csv -DkpiFile=kpi.csv -Dj
142142
<dependency>
143143
<groupId>io.github.vdaburon</groupId>
144144
<artifactId>junit-reporter-kpi-from-jmeter-report-csv</artifactId>
145-
<version>1.6</version>
145+
<version>1.7</version>
146146
</dependency>
147147
</dependencies>
148148

@@ -209,7 +209,9 @@ junit-reporter-kpi-from-jmeter-report-csv.sh -csvJMReport summary.csv -kpiFile k
209209
Usually this plugin is use with [jmeter-graph-tool-maven-plugin](https://github.com/vdaburon/jmeter-graph-tool-maven-plugin)
210210

211211
## Versions
212-
version 1.6 change the default freemaker directory for html_templates because same directory and same files name than others tools junit-report-kpi-xxx generate errors
212+
version 1.7 date 2025-04-25, Define unique table css class to avoid conflict, update libraries (jackson, commons-cli, commons-csv, freemarker, nexus-staging).
213+
214+
version 1.6 date 2032-07-11, Change the default freemaker directory for html_templates because same directory and same files name than others tools junit-report-kpi-xxx generate errors
213215

214216
version 1.5 add jmeter-plugins.org installer
215217

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.vdaburon</groupId>
88
<artifactId>junit-reporter-kpi-from-jmeter-report-csv</artifactId>
9-
<version>1.6</version>
9+
<version>1.7</version>
1010
<packaging>jar</packaging>
1111
<name>Create a JUnit XML file with KPI rules from JMeter CSV Report</name>
1212
<description>A tool that creates a JUnit XML file with KPI rules from JMeter CSV Report, export result in html, csv or json format</description>
@@ -69,28 +69,28 @@
6969
<dependency>
7070
<groupId>commons-cli</groupId>
7171
<artifactId>commons-cli</artifactId>
72-
<version>1.5.0</version>
72+
<version>1.9.0</version>
7373
</dependency>
7474

7575
<!-- Read or write CSV file -->
7676
<dependency>
7777
<groupId>org.apache.commons</groupId>
7878
<artifactId>commons-csv</artifactId>
79-
<version>1.10.0</version>
79+
<version>1.14.0</version>
8080
</dependency>
8181

8282
<!-- HTML out file result -->
8383
<dependency>
8484
<groupId>org.freemarker</groupId>
8585
<artifactId>freemarker</artifactId>
86-
<version>2.3.32</version>
86+
<version>2.3.34</version>
8787
</dependency>
8888

8989
<!-- JSON out file result -->
9090
<dependency>
9191
<groupId>com.fasterxml.jackson.core</groupId>
9292
<artifactId>jackson-databind</artifactId>
93-
<version>2.15.2</version>
93+
<version>2.18.3</version>
9494
</dependency>
9595

9696
</dependencies>
@@ -180,7 +180,7 @@
180180
-->
181181
<groupId>org.sonatype.plugins</groupId>
182182
<artifactId>nexus-staging-maven-plugin</artifactId>
183-
<version>1.6.13</version>
183+
<version>1.7.0</version>
184184
<extensions>true</extensions>
185185
<configuration>
186186
<serverId>ossrh</serverId>

src/main/resources/templates_freemarker_reportkpi/template_div_result.ftl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
<div>
22
<style>
3-
table.table_jp {border-collapse: collapse;}
4-
table.table_jp, table.table_jp th, table.table_jp tr, table.table_jp td {
3+
table.table_jp2 {border-collapse: collapse;}
4+
table.table_jp2, table.table_jp2 th, table.table_jp2 tr, table.table_jp2 td {
55
border: 1px solid black;
66
text-align: left;
77
font-family: sans-serif;
88
font-size:medium; }
9-
table.table_jp th:{background-color: #f8f8f8;}
10-
table.table_jp tr:nth-child(even) {background-color: #f2f2f2;}
11-
table.table_jp td:nth-child(5) { text-align: right; }
9+
table.table_jp2 th:{background-color: #f8f8f8;}
10+
table.table_jp2 tr:nth-child(even) {background-color: #f2f2f2;}
11+
table.table_jp2 td:nth-child(5) { text-align: right; }
1212
</style>
1313
<h2>HTML KPIs Result From JMeter Report Csv</h2>
1414
<h3>Files In<h3>
15-
<table class="table_jp">
15+
<table class="table_jp2">
1616
<tr><td>File with KPIs</td><td>${globalResult.kpiFile}</td></tr>
1717
<tr><td>File CSV Report</td><td>${globalResult.csvJmeterReport}</td></tr>
1818
</table>
1919
<br>
2020
<h3>Test Summary</h3>
21-
<table class="table_jp">
21+
<table class="table_jp2">
2222
<tr><td>Number of failed tests</td><td <#if (globalResult.numberFailed &gt; 0)>style="color:Red;bold"</#if>><b>${globalResult.numberFailed}</b></td></tr>
2323
<tr><td>Number of tests</td><td><b>${globalResult.numberOfKpis}</b></td></tr>
2424
</table>
2525
<br>
2626
<h3>Table KPIs Results<h3>
27-
<table class="table_jp">
27+
<table class="table_jp2">
2828
<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>
2929
<#list globalResult.checkKpiResults as checkKpiResult>
3030
<tr>

src/main/resources/templates_freemarker_reportkpi/template_html_result.ftl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@
66
</head>
77
<body>
88
<style>
9-
table.table_jp {border-collapse: collapse;}
10-
table.table_jp, table.table_jp th, table.table_jp tr, table.table_jp td {
9+
table.table_jp2 {border-collapse: collapse;}
10+
table.table_jp2, table.table_jp2 th, table.table_jp2 tr, table.table_jp2 td {
1111
border: 1px solid black;
1212
text-align: left;
1313
font-family: sans-serif;
1414
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; }
15+
table.table_jp2 th:{background-color: #f8f8f8;}
16+
table.table_jp2 tr:nth-child(even) {background-color: #f2f2f2;}
17+
table.table_jp2 td:nth-child(5) { text-align: right; }
1818
</style>
1919
<h1>HTML KPIs Result From JMeter Report Csv</h1>
2020
<h2>Files In<h2>
21-
<table class="table_jp">
21+
<table class="table_jp2">
2222
<tr><td>File with KPIs</td><td>${globalResult.kpiFile}</td></tr>
2323
<tr><td>File CSV Report</td><td>${globalResult.csvJmeterReport}</td></tr>
2424
</table>
2525
<br>
2626
<h2>Test Summary</h2>
27-
<table class="table_jp">
27+
<table class="table_jp2">
2828
<tr><td>Number of failed tests</td><td <#if (globalResult.numberFailed &gt; 0)>style="color:Red;bold"</#if>><b>${globalResult.numberFailed}</b></td></tr>
2929
<tr><td>Number of tests</td><td><b>${globalResult.numberOfKpis}</b></td></tr>
3030
</table>
3131
<br>
3232
<h2>Table KPIs Results<h2>
33-
<table class="table_jp">
33+
<table class="table_jp2">
3434
<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>
3535
<#list globalResult.checkKpiResults as checkKpiResult>
3636
<tr>

0 commit comments

Comments
 (0)