-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change version 1.2 add installer and script shell for jmeter-plugins-…
…manager
- Loading branch information
DABURON Vincent
committed
Jul 10, 2023
1 parent
21a0fc0
commit a9289cf
Showing
5 changed files
with
110 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/io/github/vdaburon/jmeter/utils/comparekpi/ToolInstaller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package io.github.vdaburon.jmeter.utils.comparekpi; | ||
|
||
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-compare-jmeter-report-csv.cmd", false); | ||
writeOut("junit-reporter-kpi-compare-jmeter-report-csv.sh", true); | ||
} | ||
|
||
private static void writeOut(String resName, boolean executable) throws IOException { | ||
resName = "/io/github/vdaburon/jmeter/utils/comparekpi/" + 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); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
.../github/vdaburon/jmeter/utils/comparekpi/junit-reporter-kpi-compare-jmeter-report-csv.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 2 JMeter Report CSV files (current and reference) and generates a result file in JUnit XML format and other formats html, csv and json. | ||
rem Look README at https://github.com/vdaburon/JUnitReportKpiCompareJMeterReportCsv | ||
|
||
setlocal | ||
|
||
cd /D %~dp0 | ||
|
||
set CP=..\lib\ext\junit-reporter-kpi-compare-jmeter-report-csv-${version}-jar-with-dependencies.jar | ||
|
||
java -jar %CP% %* |
25 changes: 25 additions & 0 deletions
25
...o/github/vdaburon/jmeter/utils/comparekpi/junit-reporter-kpi-compare-jmeter-report-csv.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 2 JMeter Report CSV files (current and reference) and generates a result file in JUnit XML format and other formats html, csv and json. | ||
## Look README at https://github.com/vdaburon/JUnitReportKpiCompareJMeterReportCsv | ||
|
||
cd `dirname $0` | ||
|
||
CP=../lib/ext/junit-reporter-kpi-compare-jmeter-report-csv-${version}-jar-with-dependencies.jar | ||
|
||
java -jar $CP $* |