diff --git a/README.md b/README.md
index 1052199..5f0ba59 100644
--- a/README.md
+++ b/README.md
@@ -124,7 +124,7 @@ The maven groupId, artifactId and version, this plugin is in the **Maven Central
```xml
io.github.vdaburon
junit-reporter-kpi-from-jmeter-report-csv
-1.4
+1.5
```
Just include the plugin in your `pom.xml` and execute `mvn verify`
or individual launch `mvn -DjmeterReportFile=synthesis.csv -DkpiFile=kpi.csv -DjunitFile=jmeter-junit-plugin-jmreport.xml exec:java@create_junit-report-kpi-from-jmeter-report`
@@ -142,7 +142,7 @@ or individual launch `mvn -DjmeterReportFile=synthesis.csv -DkpiFile=kpi.csv -Dj
io.github.vdaburon
junit-reporter-kpi-from-jmeter-report-csv
- 1.4
+ 1.5
@@ -186,10 +186,26 @@ This tool is a java jar, so it's could be use as simple jar (look at [Release](h
java -jar junit-reporter-kpi-from-jmeter-report-csv-<version>-jar-with-dependencies.jar -csvJMReport summary.csv -kpiFile kpi.csv -junitFile junit-report.xml -exitReturnOnFail true
+## Tool installed with jmeter-plugins-manager
+This tool could be installed with the jmeter-plugins-manager from jmeter.plugins.org.
+The tool name is : "vdn@github - junit-reporter-kpi-from-jmeter-report-csv tool"
+
+in JMETER_HOME\bin (Windows)
+
+junit-reporter-kpi-from-jmeter-report-csv.cmd -csvJMReport summary.csv -kpiFile kpi.csv -junitFile junit-report.xml -htmlOutFile result.html -csvOutFile result.csv
+
+or
+in JMETER_HOME/bin (Linux or MacOS)
+
+junit-reporter-kpi-from-jmeter-report-csv.sh -csvJMReport summary.csv -kpiFile kpi.csv -junitFile junit-report.xml -htmlOutFile result.html -csvOutFile result.csv
+
+
## Link to other project
Usually this plugin is use with [jmeter-graph-tool-maven-plugin](https://github.com/vdaburon/jmeter-graph-tool-maven-plugin)
## Versions
+version 1.5 add jmeter-plugins.org installer
+
version 1.4 export result in html, json or csv format
Version 1.3 change Fail Message when Equality
diff --git a/pom.xml b/pom.xml
index ccec51b..d80b5dd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.vdaburon
junit-reporter-kpi-from-jmeter-report-csv
- 1.4
+ 1.5
jar
Create a JUnit XML file with KPI rules from JMeter CSV Report
A tool that creates a JUnit XML file with KPI rules from JMeter CSV Report, export result in html, csv or json format
@@ -173,6 +173,10 @@
+
org.sonatype.plugins
nexus-staging-maven-plugin
1.6.13
@@ -184,5 +188,13 @@
+
+
+
+ src/main/resources
+
+ true
+
+
\ No newline at end of file
diff --git a/src/main/java/io/github/vdaburon/jmeter/utils/reportkpi/ToolInstaller.java b/src/main/java/io/github/vdaburon/jmeter/utils/reportkpi/ToolInstaller.java
new file mode 100644
index 0000000..f31e663
--- /dev/null
+++ b/src/main/java/io/github/vdaburon/jmeter/utils/reportkpi/ToolInstaller.java
@@ -0,0 +1,26 @@
+package io.github.vdaburon.jmeter.utils.reportkpi;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.file.Files;
+import java.nio.file.StandardCopyOption;
+
+public class ToolInstaller {
+ public static void main(String[] argv) throws IOException {
+ writeOut("junit-reporter-kpi-from-jmeter-report-csv.cmd", false);
+ writeOut("junit-reporter-kpi-from-jmeter-report-csv.sh", true);
+ }
+
+ private static void writeOut(String resName, boolean executable) throws IOException {
+ resName = "/io/github/vdaburon/jmeter/utils/reportkpi/" + resName;
+ File self = new File(ToolInstaller.class.getProtectionDomain().getCodeSource().getLocation().getFile());
+ File src = new File(resName);
+ String home = self.getParentFile().getParentFile().getParent();
+ File dest = new File(home + File.separator + "bin" + File.separator + src.getName());
+
+ InputStream is = ToolInstaller.class.getResourceAsStream(resName);
+ Files.copy(is, dest.toPath(), StandardCopyOption.REPLACE_EXISTING);
+ dest.setExecutable(executable);
+ }
+}
diff --git a/src/main/resources/io/github/vdaburon/jmeter/utils/reportkpi/junit-reporter-kpi-from-jmeter-report-csv.cmd b/src/main/resources/io/github/vdaburon/jmeter/utils/reportkpi/junit-reporter-kpi-from-jmeter-report-csv.cmd
new file mode 100644
index 0000000..32d9a03
--- /dev/null
+++ b/src/main/resources/io/github/vdaburon/jmeter/utils/reportkpi/junit-reporter-kpi-from-jmeter-report-csv.cmd
@@ -0,0 +1,27 @@
+@echo off
+
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements. See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License. You may obtain a copy of the License at
+rem
+rem http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+rem This tool read KPI declarations in a file and apply the KPI assertion on a JMeter Report CSV file and generates a result file in JUnit XML format and others formats Html, Json and Csv.
+rem Look README at https://github.com/vdaburon/JUnitReportKpiJMeterReportCsv
+
+setlocal
+
+cd /D %~dp0
+
+set CP=..\lib\ext\junit-reporter-kpi-from-jmeter-report-csv-${version}-jar-with-dependencies.jar
+
+java -jar %CP% %*
diff --git a/src/main/resources/io/github/vdaburon/jmeter/utils/reportkpi/junit-reporter-kpi-from-jmeter-report-csv.sh b/src/main/resources/io/github/vdaburon/jmeter/utils/reportkpi/junit-reporter-kpi-from-jmeter-report-csv.sh
new file mode 100644
index 0000000..098885c
--- /dev/null
+++ b/src/main/resources/io/github/vdaburon/jmeter/utils/reportkpi/junit-reporter-kpi-from-jmeter-report-csv.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+
+## This tool read KPI declarations in a file and apply the KPI assertion on a JMeter Report CSV file and generates a result file in JUnit XML format and others formats Html, Json and Csv.
+## Look README at https://github.com/vdaburon/JUnitReportKpiJMeterReportCsv
+
+cd `dirname $0`
+
+CP=../lib/ext/junit-reporter-kpi-from-jmeter-report-csv-${version}-jar-with-dependencies.jar
+
+java -jar $CP $*