Go to file
Ravindra Bhadti 0fdb63a132
GH-18 Adding In JMeter Plugin Capability (#19)
* GH-18 adding in gitignore and jmeter plugins

* GH-18 adding in gitignore and jmeter plugins

* GH-18 adding in gitignore and jmeter plugins

* feature/gh-18 jmeter-plugins (#20)

Adding in plugin capabilities

Co-authored-by: Michael Meyers <mrmeyers99@gmail.com>
2021-09-15 17:49:19 +01:00
.github/workflows GH-9 Added new versions 2020-12-07 22:05:55 +00:00
tests JMeter dockerfile and action metadata file 2020-04-27 22:25:29 +01:00
.gitignore GH-18 Adding In JMeter Plugin Capability (#19) 2021-09-15 17:49:19 +01:00
Dockerfile GH-18 Adding In JMeter Plugin Capability (#19) 2021-09-15 17:49:19 +01:00
LICENSE Initial commit 2020-04-26 17:37:47 +01:00
README.md GH-8 Added full example usage 2020-12-12 17:34:58 +00:00
action.yaml GH-18 Adding In JMeter Plugin Capability (#19) 2021-09-15 17:49:19 +01:00
cleanup.sh GH-18 Adding In JMeter Plugin Capability (#19) 2021-09-15 17:49:19 +01:00
entrypoint.sh GH-18 Adding In JMeter Plugin Capability (#19) 2021-09-15 17:49:19 +01: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.3.1
  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.3.1
  with:
    testFilePath: tests/sample_test.jmx
    outputReportsFolder: reports/
    args: "--loglevel INFO -JMyProperty=Value --jmeterlogconf=log.conf"

Full Example Usage

Use JMeter to run the JMX test case and produce reports in the "reports/"directory in the workspace.

name: Test JMeter Action

on:
  push:
    branches:
      - master
  pull_request:
    branches: [master]

jobs:
  action_build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Run JMeter Action
        uses: ./
        with:
          testFilePath: tests/sample_test.jmx
          outputReportsFolder: reports/
          args: "--loglevel INFO"

      - uses: actions/upload-artifact@v1
        with:
          name: jmeter-test-results
          path: reports/