Q. 21 How to reduce the memory requirement for execution using JMeter?
Ans: To reduce the memory requirements following steps need to be followed:
Ans: Below is the steps followed to record a script:
Ans: The generation of a huge volume of user load does not possible using the same machine. The solution is either to increase the resources of the machine or use a distributed structure. The distributed load testing is the process through which numerous systems can be used for simulating a load of a large number of users and those systems act as load generators.
Q. 24 How can distributed load testing be achieved?
Ans: By using the master-slave configuration, JMeter can do distribute load testing.
Q. 25 How to do master-slave configuration in JMeter?
Ans: Master-Slave configuration is a part of Distributed Testing in which more than one machine is used to perform load testing of the server under test. It is very important that all machines are on the same network and all have the same version of JMeter. In distributed testing, one machine is made as the Master and the others are kept as slaves by doing below configurations:
Previous: JMeter Interview Question #4
Ans: To reduce the memory requirements following steps need to be followed:
a. Use non-GUI mode for test execution using below command:
jmeter –n –t test.jmx –l test.jtl
b. Do not use listeners or disable them before the test started.
c. Don’t use functional mode.
d. Try to implement scripting logic using available element only
e. Try to avoid the code (you can use only in that case when the specific JMeter element is not available)
f. If you are writing the code logic then use Groovy instead of BeanShell.
g. Use CSV output rather than XML.
h. Save the data which you need.
i. Use as few Assertions as possible.Q. 22 How do you record the script using Test Script Recorder?
Ans: Below is the steps followed to record a script:
a. Add HTTP(s) Test Script Recorder
b. Enter the port number
c. Enter the host URL
d. Add a Recording Controller in the test plan and select the same as Target so that all the recordings are stored under it.
e. Configure the browser with manual proxy settings pointing to the same port number used in the test script recorder
f. Click "Start" button in HTTP(s) Test Script RecorderQ. 23 What is distributed load testing?
Ans: The generation of a huge volume of user load does not possible using the same machine. The solution is either to increase the resources of the machine or use a distributed structure. The distributed load testing is the process through which numerous systems can be used for simulating a load of a large number of users and those systems act as load generators.
Q. 24 How can distributed load testing be achieved?
Ans: By using the master-slave configuration, JMeter can do distribute load testing.
Q. 25 How to do master-slave configuration in JMeter?
Ans: Master-Slave configuration is a part of Distributed Testing in which more than one machine is used to perform load testing of the server under test. It is very important that all machines are on the same network and all have the same version of JMeter. In distributed testing, one machine is made as the Master and the others are kept as slaves by doing below configurations:
a. On master machine, edit the jmeter.properties file and add the IP addresses of slave machines against the remote_host field in the file.
b. Save the file and open the JMeter again.
c. Now from the Run menu in JMeter, select Remote Start and choose the IP of the machine to be invoked.
d. Choose the Run menu and select Remote Start all to start all the slave machines for your testing.
Next: JMeter Interview Question #6
Previous: JMeter Interview Question #4
No comments:
Post a Comment