4/26/16

Distributed Testing in JMeter

Distributed Testing in JMeter:

Distributed testing is a kind of testing which use multiple systems to perform stress testing. Distributed testing is applied for testing web sites and server applications when they are working with multiple clients simultaneously.Distributes testing uses client-server model as figure below:















Before you start,there are a couple of things to check.

1. the firewalls on the systems are turned off.
2. all the clients are on the same subnet.
3. the server is in the same subnet, if 192.x.x.x or 10.x.x.x ip addresses are used. If the server
doesn't use 192 or 10 ip address, there shouldn't be any problems.
4. Make sure JMeter can access the server.
5. Make sure you use the same version of JMeter on all the systems. Mixing versions may not work
correctly.



Master: the system running JMeter GUI, control each slave.

Slave: the system running jmeter-server, receive command from the master and send a request to server under test.Target: the web server under test, get request from slaves.
System configuration:
On the slave systems, go to jmeter/bin directory and execute file "jmeter-server.bat".
On the master systems, go to /bin directory and edit file jmeter.properites, add IP slave machine as below




Run the test:
On the master machine, run JMeter GUI and open the test plan.Click Run on the menu bar; select Remote start -> select the IP address of slave machine


No comments:

Post a Comment