Let us build a easy test plan which tests a web page. We write a test plan in Apache JMeter in order that we can test the performance of the net page shown by using the URL − http://www.wisdomjobs.com/.
Open the JMeter window by way of clicking on /home/manisha/apache-jmeter-2.9/bin/jmeter.sh. The JMeter window seem as below –
Change the call of test plan node to sample test within the call text box. You want to change the focus to workbench node and back to the test Plan node to peer the name getting reflected.
Now we upload our first detail in the window. We add one Thread group, that is a placeholder for all different elements like Samplers, Controllers, and Listeners. We want one so we will configure number of users to simulate.
In JMeter, all the node elements are brought through using the context menu.
We want to feature one Sampler in our Thread institution (users). As finished earlier for adding Thread group, this time we will open the context menu of the Thread group (users) node by right-clicking and we will add HTTP Request Sampler by means of selecting add > Sampler > HTTP request option.
It will upload one empty HTTP Request Sampler below the Thread group (users) node. allow us to configure this node detail –
We can now upload a listener. allow us to upload View results Tree Listener below the Thread group (user) node. it will ensure that the outcomes of the Sampler can be available to view on this Listener node detail.
To add a listener −
Now with all of the setup, let us execute the test plan. With the configuration of the Thread group (users), we preserve all of the default values. It way JMeter will execute the sampler simplest once. it is just like a single user, only once.
That is similar to a user visiting a web page through browser, with JMeter sampler. To execute the test plan, select Run from the menu and choose start option.
Apache JMeter asks us to save the take a look at plan in a disk file before really starting the test. this is important if you want to run the test plan multiple times. you may choose running it without saving too.
We have saved the setting of the thread group as single thread (one person only) and loop for 1 time (run only one time), hence we will get the end result of one single transaction within the View result Tree Listener.
Details of the above result are −
The remaining tab is reaction records. in this tab, the listener indicates the information received from server in text layout.
This is just a easy test plan which executes only one request. but JMeter's real strength is in sending the equal request, as though many users are sending it. to test the web servers with multiple users, we need to change the Thread group (users) settings.
JMeter Related Interview Questions
|SILK TEST Interview Questions||LoadRunner Interview Questions|
|Testing Tools Interview Questions||QTP Interview Questions|
|Selenium Interview Questions||Selenium WebDriver Interview Questions|
|Selenium IDE Interview Questions||Performance Testing Interview Questions|
|Server Load Balancing Interview Questions||Sql Loader Interview Questions|
|Protocol Testing Interview Questions|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.