Welcome To User Friendly Software Technical concepts

This Blog contains information of various technical concepts,The concepts are precise,informative with examples.visitors can easily understand the concepts of different technical related subjects like software Testing concepts , practice questions on sql And JMeter(Open source automation tool ) for Performance testing of an web application and about selenium tool used for functional testing of an web application

Friday, August 13, 2010

Basics of Jmeter

1) To work with Jmeter

Install JDK software which is used for java application.
Then install Jmeter
After installation,go to “bin” directory.
Double click on “Jmeter.bat”


JMeter proxy Step-by-step

To record the requests sent to the server follow the below mentioned steps

2) The main screen loads two elements in the left pane
Test Plan

The Test Plan is a container for running tests

Workbench.
The Workbench is a sandbox for any test or portion of a test that you
are working on. When you are ready to test what you have designed in
the Workbench, you can copy or move the elements into the Test Plan.



3) Right click on workbench and add the HTTP proxy: add
   -> non-test elements -> HTTP Proxy Server.

  Click on start button at the bottom of the  window.

4)


5) Start Internet Explorer, but do not close Jmeter.
6) From the tool bar, click “tools -> internet options”. This should bring up the     options.

7) Select the “connection” tab

8) Click “LAN settings”  button near the bottom.

9) On the connections tab, check “Use a proxy server for your LAN”. The address and port  fields should be enabled now.

10) Address – enter “Local host” or the IP address of your system

11) Port – enter “8080”.

12) Click “OK” button

13) Click “OK” button again. This should return you to the browser

14) In the “Address” bar at the top, enter   WWW.gmail.com           
and  hit the “enter” key.

15) Click on a few links on “Gmail page”  page.

16) Close internet explorer and bring up the Jmeter window.

17) Right click on the testplan and click add>thread group



18) Select “Thread group” and enter Number of threads 
  ,Ramp up Period, Loop   count .

19) Copy the paths from “Work bench” into “Thread group”.

20) Right on the Thread group ->add - > listener -> summary report .

21) 21) Save the test plan.
22) When you're ready to run the test, there's two ways:

                 1. Run -> Start
                 2. CRTL – R
 
23) While the test is running, in the upper right-hand corner, there should be a green square.
When the test is done, the box should be Grey.

Glossary

Thread Groups
A thread group allows you to define the behavior of a group of threads that will interact with your application. Think of each thread as a person sitting at their computer, trying to access a given Web page. You will use thread groups to define the number of threads that a test will launch.



Number of Threads -- You can enter as many threads to stimulate a load test. A single user is represented by each Thread so if you wish to simulate a load test with 5 concurrent users then you need to enter 5 as the value for this property.    

         
Ramp-Up Period -- It indicates the time taken by Jmeter to create all of the threads needed. If you set 10 seconds as the ramp-up period for 5 threads then the JMeter will take 10 seconds to create those 5 threads. Also by setting its value to 0 all the threads can be created at once.  

                                                
Forever -- If you choose this option then the Jmeter will keep sending the unspecific requests to the tested application. And if disabled then the test will be repeated the number of times entered in the Loop Count box.        

                                                                                    
Loop Count -- By specifying its value Jmeter gets to know that how many times a test is to be repeated provided that the Forever check box should be unchecked.      

Listeners :
Listeners gather data as your tests run, and allow you to report on that data. You can use listeners to create graphs or export data to files.
      

No comments:

Post a Comment

You Can Post Your Comment Here