Project for load testing the Logistics application. The test is based on Apache JMeter and is executed through the JMeter Maven Plugin on top of Maven (installation required). To open the Logistics JMeter test plan in JMeter GUI, execute:
mvn jmeter:configure jmeter:gui -DguiTestFile=src/test/jmeter/test-plan.jmx
In order to run the test, execute the command below, replacing <logistics_host> and <logistics_port> with the hostname/ip and port where the Logistics application is available ("clean" is for deleting previous results):
mvn clean verify -Dserver.host=<logistics_host> -Dserver.port=<logistics_port>
The command mvn clean verify -Dserver.host=esign.com.br -Dserver.port=80
, for example, executes the test against the instance of the application at http://www.esign.com.br/logistics.
You can also execute docker-compose up -d
to run the Logistics application locally. Then, run the test against it: mvn clean verify -Dserver.host=localhost -Dserver.port=8080
.
The test .cvs results file is placed in the folder target/jmeter/results. During the test execution, if the error rate is greater than 1%, the test fails. This configuration can be changed by modifying the value of errorRateThresholdInPercent in the pom.xml file.