From 8441308b8d05c3acc6e61f11149b4e1d3b3ccd98 Mon Sep 17 00:00:00 2001 From: Ravindra Bhadti Date: Tue, 18 Jan 2022 21:51:56 +0000 Subject: [PATCH] Updating README.md (#23) --- README.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 61f8cc0..257fb55 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This action runs a JMeter performance test using a given JMX test file. It will ## Inputs ### `testFilePath` -**Required**: The path to the JMX test file to run with JMeter +**Required**: The path to the JMX test file to run with JMeter. Can also specify a folder, in which case all JMX files in that folder will be run. ### `outputReportsFolder` **Not Required**: The folder in which the JMeter reports are produced. @@ -28,7 +28,7 @@ Please see https://jmeter.apache.org/usermanual/get-started.html for more inform # 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.3.1 + uses: rbhadti94/apache-jmeter-action@v0.5.0 with: testFilePath: tests/sample_test.jmx outputReportsFolder: reports/ @@ -36,11 +36,20 @@ Please see https://jmeter.apache.org/usermanual/get-started.html for more inform # 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.3.1 + uses: rbhadti94/apache-jmeter-action@v0.5.0 with: testFilePath: tests/sample_test.jmx outputReportsFolder: reports/ args: "--loglevel INFO -JMyProperty=Value --jmeterlogconf=log.conf" + +# Use JMeter to run all tests in a folder +# Modify the logging level and pass in some custom properties and config +- name: Run All JMeter Tests In tests Folder + uses: rbhadti94/apache-jmeter-action@v0.5.0 + with: + testFilePath: tests/ + outputReportsFolder: reports/ + args: "--loglevel INFO -JMyProperty=Value --jmeterlogconf=log.conf" ``` ### Full Example Usage @@ -62,15 +71,27 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Run JMeter Action - uses: ./ + - name: Run JMeter Action on a test + uses: rbhadti94/apache-jmeter-action@v0.5.0 with: testFilePath: tests/sample_test.jmx outputReportsFolder: reports/ args: "--loglevel INFO" + - name: Run JMeter Action on other tests + uses: rbhadti94/apache-jmeter-action@v0.5.0 + with: + testFilePath: other-tests/ + outputReportsFolder: other_reports/ + args: "--loglevel INFO" + - uses: actions/upload-artifact@v1 with: name: jmeter-test-results path: reports/ + + - uses: actions/upload-artifact@v1 + with: + name: jmeter-test-results-other + path: other_reports/ ``` \ No newline at end of file