-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from QAInsights/update/minor-edits
Minor edits
- Loading branch information
Showing
5 changed files
with
45 additions
and
44 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# About PerfAction | ||
# 🚀 PerfAction | ||
|
||
[![](https://img.shields.io/badge/dev.to-Actions%20Hackathon-blue)](https://dev.to/qainsights/perfaction-run-jmeter-performance-tests-191) | ||
[![saythanks](https://img.shields.io/badge/say-thanks-1EAEDB.svg)](https://saythanks.io/to/catch.nkn%40gmail.com) | ||
|
@@ -8,13 +8,14 @@ | |
|
||
This GitHub Action helps to automate performance testing using [Apache JMeter](https://jmeter.apache.org/) and its [plugins](https://jmeter-plugins.org/). | ||
|
||
PerfAction also featured in LoadTestWorld 2021 conference. | ||
PerfAction also featured in `LoadTestWorld 2021` conference. | ||
|
||
![PerfAction for JMeter](./assets/Banner.jpg) | ||
|
||
# How to use this GitHub Action? | ||
# 🤔 How to use this GitHub Action? | ||
|
||
## Prerequisites | ||
|
||
Following are the prerequisites for this GitHub Action: | ||
|
||
* `test-plan-path` | ||
|
@@ -25,12 +26,13 @@ Following are the prerequisites for this GitHub Action: | |
* Additional arguments you can pass it to your test plan execution | ||
* `test-results` | ||
This comment has been minimized.
Sorry, something went wrong. |
||
* Optional | ||
* If you want your result to have a different extension than jtl such as .csv , default value result.jtl | ||
## Usage | ||
* If you want your result to have a different extension than jtl such as `.csv` default value `result.jtl`. | ||
|
||
### Example #1 with no arguments | ||
## 👇 Usage | ||
|
||
``` | ||
### Example #1 with no arguments | ||
|
||
```yaml | ||
- name: JMeter Test | ||
uses: QAInsights/[email protected] | ||
with: | ||
|
@@ -45,7 +47,7 @@ Following are the prerequisites for this GitHub Action: | |
### Example #2 with arguments | ||
``` | ||
```yaml | ||
- name: JMeter Test | ||
uses: QAInsights/[email protected] | ||
with: | ||
|
@@ -60,9 +62,9 @@ Following are the prerequisites for this GitHub Action: | |
``` | ||
### Example #3 with arguments to Generate HTML Reports | ||
make sure you create directory with the name where you want html report to be saved. | ||
Please make sure that you create a directory where you want to generate HTML report. | ||
``` | ||
```yaml | ||
- name: Create reports directory | ||
run: mkdir reports | ||
|
||
|
@@ -83,10 +85,9 @@ make sure you create directory with the name where you want html report to be sa | |
with: | ||
name: jmeter-html-reports | ||
path: reports | ||
``` | ||
## Download JMeter Test Results | ||
## 📥 Download JMeter Test Results | ||
By default, this GitHub Action will log the performance statistics under `result.jtl`. After the execution, it will be uploaded to the GitHub artifacts. | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#!/bin/sh | ||
echo ${JMETER_HOME} | ||
echo ${JMETER_CMD_RUNNER_VERSION} | ||
echo ${JMETER_PLUGIN_MANAGER_VERSION} | ||
echo ${JMETER_PLUGIN_INSTALL_LIST} | ||
# Author: NaveenKumar Namachivayam | ||
# Website: www.qainsights.com | ||
# Purpose: Install JMeter Plugins | ||
|
||
# Download CMDRunner | ||
echo "Downloading CMDRunner" | ||
curl -L http://search.maven.org/remotecontent?filepath=kg/apc/cmdrunner/${JMETER_CMD_RUNNER_VERSION}/cmdrunner-${JMETER_CMD_RUNNER_VERSION}.jar --output ${JMETER_HOME}/lib/cmdrunner-${JMETER_CMD_RUNNER_VERSION}.jar | ||
|
||
# Download Plugin Manager | ||
echo "Downloading Plugin Manager" | ||
curl -L https://jmeter-plugins.org/get/ --output ${JMETER_HOME}/lib/ext/jmeter-plugins-manager-${JMETER_PLUGIN_MANAGER_VERSION}.jar | ||
|
||
# Install Plugin Manager | ||
java -cp /opt/apache/apache-jmeter-${JMETER_VERSION}/lib/ext/jmeter-plugins-manager-${JMETER_PLUGIN_MANAGER_VERSION}.jar org.jmeterplugins.repository.PluginManagerCMDInstaller | ||
|
||
# Install JMeter plugins | ||
cd /opt/apache/apache-jmeter-${JMETER_VERSION}/bin/ | ||
java -jar ${JMETER_HOME}/lib/cmdrunner-${JMETER_CMD_RUNNER_VERSION}.jar --tool org.jmeterplugins.repository.PluginManagerCMD install ${JMETER_PLUGIN_INSTALL_LIST} | ||
|
||
chmod a+x ${JMETER_HOME}/bin/*.sh | ||
|
||
pwd | ||
|
||
ls -l ${JMETER_HOME}/bin/*.sh | ||
|
||
# Set execute permissions for JMeter shell scripts | ||
chmod a+x ${JMETER_HOME}/bin/*.sh |
how to use the test-results to get as csv format in github workflow