Member-only story
Leveraging GitHub Actions to Automate Performance Testing with JMeter
Introduction: This article will help to set up the Jmeter scripts on the GitHub actions and generate the Apache report from scratch.
Setting up JMeter Test Plan: Before diving into GitHub Actions, you need to create a JMeter test plan. This involves identifying the scenarios to test, designing test scripts, and configuring JMeter accordingly. Ensure your test plan covers the scenario that you want to test.
I have created a JMeter file with some of the parameters configuration. I will use the parameter to change some of the data on the run time.
This is the test file that I have used for testing a RestAPI for an open-source URL.
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="List Of Countries">
<stringProp name="TestPlan.comments">You can run me using: jmeter -Jthreads=<Number of threads> -Jrampup=<rampup in seconds> -Jduration=<duration in seconds> -Jiterations=<Number of iterations, -1 means infinite> -e -o <report output folder></stringProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments"…