- Install Java JDK 8 or above
- Install apache maven
- Install apache jmeter
BASE_URL
- Application url, currently defaulted to local environment.
USERS
- Number of users (threads), Defaulted to 1.
RAMP_UP_PERIOD
- Period of time over which to ramp up to number of threads as defined by USERS
. Defaulted to 1.
LOAD_DURATION
- Period of time maintain maximum number of threads as defined by USERS
.
-
jmeter -t src/test/jmeter/ApplicationsServiceMyselfJourneyTestPlan.jmx
-
jmeter -t src/test/jmeter/ApplicationsServiceAgentJourneyTestPlan.jmx
-
jmeter -t src/test/jmeter/ApplicationsServiceOrgJourneyTestPlan.jmx
-
You will now see the Jmeter application opened with the Test Plan
-
You can now make any changes to the test plan using GUI and save them
-
Always execute using 1 user in GUI mode as more users will cause GUI to hang up
-
At the root of the project Create a folder called testResults and give full read and write access to it
-
Inside the testResults folder create a folder called JmeterTestResults and give full read and write access to it
-
Inside the testResults folder create a folder called tests and give full read and write access to it
-
Inside the tests folder create a folder called Agent and give full read and write access to it
-
Inside the tests folder create a folder called Myself and give full read and write access to it
-
Inside the tests folder create a folder called Org and give full read and write access to it
-
Then execute below command with
USERS
,RAMP_UP_PERIOD
and LOAD_DURATION depending on requirementjmeter -n -f -JUSERS=1 -JRAMP_UP_PERIOD=1 -JLOAD_DURATION=120 -t ./src/test/jmeter/ApplicationsServiceMyselfJourneyTestPlan.jmx -l ./testResults/JmeterTestResults/ApplicationsServiceMyselfJourneyTestPlan.jtl -e -o ./testResults/tests/Myself/Output
jmeter -n -f -JUSERS=1 -JRAMP_UP_PERIOD=1 -JLOAD_DURATION=120 -t ./src/test/jmeter/ApplicationsServiceAgentJourneyTestPlan.jmx -l ./testResults/JmeterTestResults/ApplicationsServiceAgentJourneyTestPlan.jtl -e -o ./testResults/tests/Agent/Output
jmeter -n -f -JUSERS=1 -JRAMP_UP_PERIOD=1 -JLOAD_DURATION=120 -t ./src/test/jmeter/ApplicationsServiceOrgJourneyTestPlan.jmx -l ./testResults/JmeterTestResults/ApplicationsServiceOrgJourneyTestPlan.jtl -e -o ./testResults/tests/Org/Output
-
After the above execution is completed navigate to below folder depending on test plan that was executed above
testResults > tests > Myself > Output
testResults > tests > Agent > Output
testResults > tests > Org > Output
-
Open index.html file using any browser which will display the performance test results in a web page
-
execute below command with
USERS
,RAMP_UP_PERIOD
and LOAD_DURATION depending on requirementmvn clean compile verify -DUSERS=5 -DRAMP_UP_PERIOD=5 -DLOAD_DURATION=180
-
After the above execution is completed navigate to below folder
target > jmeter > reports > applications-service-performance-tests
-
Open index.html file using any browser which will display the performance test results in a web page