Leveraging GitHub Actions to Automate Performance Testing with JMeter

Pradap Pandiyan
5 min readMar 23, 2024

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">
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="List Of Countries">
<stringProp name="TestPlan.comments">You can run me using: jmeter -Jthreads=&lt;Number of threads&gt; -Jrampup=&lt;rampup in seconds&gt; -Jduration=&lt;duration in seconds&gt; -Jiterations=&lt;Number of iterations, -1 means infinite&gt; -e -o &lt;report output folder&gt;</stringProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments"…



Pradap Pandiyan

I’m a passionate QA Engineer. I’m a motovlogger, content creator, off-roader and freelancer. Buy me a coffee here https://www.buymeacoffee.com/pradappandiyan