Go to file
Ravindra Bhadti 0ecaadd6ca
Merge pull request #12 from rbhadti94/feature/GH-11-java-11-issue
GH-11 Fixing JAVA_HOME env issue
2020-12-06 19:50:51 +00:00
.github/workflows GH-11 Adding JAVA_HOME env var in entrypoint.sh 2020-12-06 19:48:06 +00:00
tests JMeter dockerfile and action metadata file 2020-04-27 22:25:29 +01:00
Dockerfile GH-9 Alpine 3.12 and JMeter 5.4.0 2020-12-06 18:02:57 +00:00
LICENSE Initial commit 2020-04-26 17:37:47 +01:00
README.md GH-2 using v0.2.0 in README.md 2020-04-27 22:33:00 +01:00
action.yaml GH-2 Added optional arguments followed by documentation 2020-04-27 22:25:29 +01:00
entrypoint.sh GH-11 Adding JAVA_HOME env var in entrypoint.sh 2020-12-06 19:48:06 +00:00

README.md

Test Action

Apache JMeter Github Action

This action runs a JMeter performance test using a given JMX test file. It will output a log file and a results file.

Inputs

testFilePath

Required: The path to the JMX test file to run with JMeter

outputReportsFolder

Not Required: The folder in which the JMeter reports are produced.

args - Optional Arguments

Not Required: Additional arguments to pass to JMeter. In the format

--flag <argument>
# OR
--flag <argument>=<value>

Please see https://jmeter.apache.org/usermanual/get-started.html for more information on the possible arguments

Example usage

# Use JMeter to run the JMX test case and produce reports in the "reports/"
# directory in the workspace.
- name: Run JMeter Tests
  uses: rbhadti94/apache-jmeter-action@v0.2.0
  with:
    testFilePath: tests/sample_test.jmx
    outputReportsFolder: reports/

# Use JMeter to run the JMX test case.
# Modify the logging level and pass in some custom properties and config
- name: Run JMeter Tests with modified logging and custom properties
  uses: rbhadti94/apache-jmeter-action@v0.2.0
  with:
    testFilePath: tests/sample_test.jmx
    outputReportsFolder: reports/
    args: "--loglevel INFO -JMyProperty=Value --jmeterlogconf=log.conf"