Professional Documents
Culture Documents
How To Setup Jmeter
How To Setup Jmeter
How To Setup Jmeter
Prerequisites:
1. AWS Account
2. Create Two Virtual Machines as Master and Slave
3. Create both the VM in same subnet.
4. JMeter installation file.
5. Java 1.8
1.1 One VM created in AWS, open the Master VM and install Java and JMeter.
1.2 JMeter can be downloaded from https://jmeter.apache.org/download_jmeter.cgi and
look for below binaries and download zip folder.
2.1.1 First, we need to start the Jmeter Server, to do so go to jmeter placed folder upto
bin location and open the location in the cmd prompt. Refer image below.
2.1.2 Place the mouse pointer on the bar and type cmd then enter, it wil open you the
cmd prompt.
2.1.3 On the command Prompt type “jmeter-server” and enter, it will show something
like below. The server has been started.
2.1.4 Now, to run jmeter gui, again go to the jmeter bin location and open in command prompt
and type “jmeter” , it will open a GUI and it will show something like below.
2.1.5 Now all the services are running, Do the same on the slave system also.
Server rmi property: By default it is false, change as true and uncomment it.
Open user.propeties file from the same bin location and add these below two
properties.
3. Slave Configuration:
4. Firewall Configuration:
4.1 Turn off the Domain, Private and Public Profile Firewall in both the Master and Slave.
Type “Firewall” and look for “Windows defender Firewall with Advanced Security” and click on
that.
4.3 Click on Domain Profile and Turn Off and Apply, follow these for the Private and Public
Profile as well.
Login to AWS and Click on Services > Go to EC2 > Instances Running
Check the Security Group name and Click on the Security Groups that is found under the left
side of Network & Security.
Click on the SecurityGroup ID and it will open the below screen, edit and add the rules provided
below.
1. Create jmx file by recording session using blazemeter.
2. Need to segregate the task by creating label for each click like login, click assessment,
click checkbox, Start Assessment, Finish Assessment, logout.
3. Then need to login to download jmx
4. Need to exclude unwanted like css, js and logo related to ease the load.
5. Instead need to add “Retrieve all Embedded Resources” in Advanced Setting for each
included HTTP Request.
6. Login and get the token
7. To add variable Add> Post Processor> add regular expression extractor
8. Then replace auth value with create c_token variable, likewise replace email and userid.
i.e., replace single value in to dynamic value for userid , email and roleid.
9. Need to change username, email, roleid in body data also as a dynamic expression.
10. Clear cache and cookie every time we run the test.
11. Check Retrieve all embedded resources.
12. Signar connect – gets error
13. Dashboard.htm, signin page, login html redirects many resources.
14. Method not available getskillloggerenableornot
15. Change attempt no into dynamic values
Infinite :
Specific thread lifetime should be checked and provide duration like 300mins.
We can add both master and slave IP in the master system jmeter.properties.