Skip to content

Latest commit

 

History

History

jmeter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

JMeter

Apache JMeter is a load and performance testing tool. This example demonstrates how to use JMeter to execute a test plan that makes HTTP requests to a web application.

It is based on a customized JMeter Docker image.

As an example web application the reference application T2-Project is used.

JMeter Execution

JMeter gets executed as part of the flow in usage_scenario.yml with the following command:

jmeter -Jhostname=gcb-backend -Jport=8080 -JnumExecutions=1 -JnumUser=1 -JrampUp=0 -JnumProducts=1 -JthinkTimeMin=0 -JthinkTimeAdditionalRange=0 -JpauseBeforeExecution=0 -JpauseAfterExecution=0 -JloggingEnabled=true -n -t /tmp/repo/jmeter-test-plan.jmx

hostname, port, numExecutions, numUser, rampUp, numProducts, thinkTimeMin, thinkTimeAdditionalRange, pauseBeforeExecution, pauseAfterExecution and loggingEnabled are environment variables that get passed to JMeter. They are specific for this test plan (jmeter-test-plan.jmx). If you want to understand this test plan you can use the JMeter GUI and open the file jmeter-test-plan.jmx.

Running the measurement

To check how to run the measurements check out our Documentation

OpenEnergyBadge

These badges show the energy cost for running this code on a single machine and the emissions per order (SCI score).