diff --git a/README.md b/README.md
index 92e4746..aae69ca 100644
--- a/README.md
+++ b/README.md
@@ -117,7 +117,7 @@ The maven groupId, artifactId and version, this plugin is in the **Maven Central
```xml
io.github.vdaburon
junit-reporter-kpi-from-jmeter-dashboard-stats
-1.3
+1.4
```
Just include the plugin in your `pom.xml` and execute `mvn verify`
or individual launch `mvn -DjsonStats=statistics.json -DkpiFile=kpi.csv -DjunitFile=jmeter-junit-plugin-jmstats.xml exec:java@create_junit-report-kpi-from-jmeter-json-statics`
@@ -136,7 +136,7 @@ or individual launch `mvn -DjsonStats=statistics.json -DkpiFile=kpi.csv -DjunitF
io.github.vdaburon
junit-reporter-kpi-from-jmeter-dashboard-stats
- 1.3
+ 1.4
@@ -180,12 +180,28 @@ 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-dashboard-stats-<version>-jar-with-dependencies.jar -jsonStats statistics.json -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-dashboard-stats tool"
+
+in JMETER_HOME\bin (Windows)
+
+junit-reporter-kpi-from-jmeter-dashboard-stats.cmd -jsonStats statistics.json -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-dashboard-stats.sh -jsonStats statistics.json -kpiFile kpi.csv -junitFile junit-report.xml -htmlOutFile result.html -csvOutFile result.csv
+
+
## Link to others projects
Usually this plugin is use with [jmeter-maven-plugin](https://github.com/jmeter-maven-plugin/jmeter-maven-plugin) set `true` to generate the dashboard with `statistics.json` file.
You could also use [jmeter-graph-tool-maven-plugin](https://github.com/vdaburon/jmeter-graph-tool-maven-plugin)
## Versions
+version 1.4 add jmeter-plugins.org installer
+
version 1.3 export result in html, json or csv format
Version 1.2 change the Test Suite Name
diff --git a/pom.xml b/pom.xml
index e5a510e..afb31c4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.vdaburon
junit-reporter-kpi-from-jmeter-dashboard-stats
- 1.3
+ 1.4
jar
Create a JUnit XML file with KPI rules from JMeter Dashboard Stats
A tool that creates a JUnit XML file with KPI rules from JMeter JMeter Dashboard stats.json and generates a result file in JUnit XML format and other formats : html, csv and json.
@@ -188,5 +188,13 @@
+
+
+
+ src/main/resources
+
+ true
+
+
\ No newline at end of file
diff --git a/src/main/java/io/github/vdaburon/jmeter/utils/jsonkpi/ToolInstaller.java b/src/main/java/io/github/vdaburon/jmeter/utils/jsonkpi/ToolInstaller.java
new file mode 100644
index 0000000..00f01b6
--- /dev/null
+++ b/src/main/java/io/github/vdaburon/jmeter/utils/jsonkpi/ToolInstaller.java
@@ -0,0 +1,26 @@
+package io.github.vdaburon.jmeter.utils.jsonkpi;
+
+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-dashboard-stats.cmd", false);
+ writeOut("junit-reporter-kpi-from-jmeter-dashboard-stats.sh", true);
+ }
+
+ private static void writeOut(String resName, boolean executable) throws IOException {
+ resName = "/io/github/vdaburon/jmeter/utils/jsonkpi/" + 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/jsonkpi/junit-reporter-kpi-from-jmeter-dashboard-stats.cmd b/src/main/resources/io/github/vdaburon/jmeter/utils/jsonkpi/junit-reporter-kpi-from-jmeter-dashboard-stats.cmd
new file mode 100644
index 0000000..6261d5f
--- /dev/null
+++ b/src/main/resources/io/github/vdaburon/jmeter/utils/jsonkpi/junit-reporter-kpi-from-jmeter-dashboard-stats.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 Run Generating JUnit Report based on custom Key Performance Indicators (KPIs) applied to the JMeter Dashboard Statistics Json file
+rem Look README at https://github.com/vdaburon/JUnitReportKpiJMeterDashboardStats
+
+setlocal
+
+cd /D %~dp0
+
+set CP=..\lib\ext\junit-reporter-kpi-from-jmeter-dashboard-stats-${version}-jar-with-dependencies.jar
+
+java -jar %CP% %*
diff --git a/src/main/resources/io/github/vdaburon/jmeter/utils/jsonkpi/junit-reporter-kpi-from-jmeter-dashboard-stats.sh b/src/main/resources/io/github/vdaburon/jmeter/utils/jsonkpi/junit-reporter-kpi-from-jmeter-dashboard-stats.sh
new file mode 100644
index 0000000..9140d3e
--- /dev/null
+++ b/src/main/resources/io/github/vdaburon/jmeter/utils/jsonkpi/junit-reporter-kpi-from-jmeter-dashboard-stats.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.
+
+## Run Generating JUnit Report based on custom Key Performance Indicators (KPIs) applied to the JMeter Dashboard Statistics Json file
+## Look README at https://github.com/vdaburon/JUnitReportKpiJMeterDashboardStats
+
+cd `dirname $0`
+
+CP=../lib/ext/junit-reporter-kpi-from-jmeter-dashboard-stats-${version}-jar-with-dependencies.jar
+
+java -jar $CP $*