Learning j meter

5,050 views

Published on

jemeter learning basics.

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
5,050
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
162
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Learning j meter

  1. 1. Learning JMeter<br />Getting Started With Jmeter<br /> <br />I. What is Jmeter?<br />Apache JMeter is a 100% pure Java desktop application designed to load test, functional behavior and measure performance. JMeter may be used to test performance both on static and dynamic resources . It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types.<br />II. Why choose Apache Jmeter?<br />There are wide load testing tools to choose from. There are open source tools like Open STA, http_load, The Grinder, Siege including Jmeter and commercial tools like LoadRunner, WebLoad etc. But why would we pick Jmeter?<br />Jmeter is FREE! – no monthly charges<br />Easy to install and use – 100% JAVA with friendly GUI<br />Feature rich<br />Record from browser<br />Load test data from files<br />Add logic, variables and functions<br />Run distributed testing from multiple machines<br />Variety of protocols: Web – HTTP, HTTPS; SOAP; Database via JDBC; LDAP; JMS; Mail – POP3<br />
  2. 2. III. What are the requirements of Jmeter?<br />Java Virtual Machine – JMeter requires a fully compliant JVM 1.4 or higher<br />Operating System<br />Unix (Solaris, Linux, etc)<br />Windows (98, NT, XP, etc)<br /> <br /> <br /> <br />IV. Installation:<br />Install Jmeter from following website, select Binary- 2.4 Zip file:<br />http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi<br />Install Badboy software from following website:<br />http://www.badboy.com.au/and select 2.1.2_beta_1 version.<br /> <br />Download and install Jmeter plug-ins from following website:<br />http://code.google.com/p/jmeter-plugins/<br />For comprehensive tutorials visit: http://jakarta.apache.org/jmeter/<br /> <br />V. Creating and Running the application:<br />Firstly, we have to record the script using Badboy software, so start the Badboy.<br />Enter the URL of a website or application you want to test in the address bar of <br />Badboy Software.<br />Press the ENTER key, it will start recording.<br />Once recording is over, click on Record On /Off button to stop recording.<br /> <br />
  3. 3. VI. Importing Recorded script to Jmeter:<br />Click on File  Export to Jmeter<br />Save the file. The file will be get saved with .JMX extension. <br /> <br /> <br /> <br /> <br /> <br />VII. How to run JMeter?<br />Unzip Jmeter distribution file to desired path<br />Go to “bin” directory<br />Run Jmeter file<br />Windows : double click jmeter.bat<br />Mac : double click ApacheJmeter.jar<br />Unix : double click jmeter.sh OR run ./jmeter from the command line<br />VIII. How to import the recorded script into Jmeter:<br />Click on FileOpen<br />Select the saved recorded file and click on Open. <br /> <br />IX. Creating Thread group:<br /> <br />Click on Thread group.<br />Assign no. of users, Ramp up period and loop.<br /> <br />
  4. 4. X. Selecting Result formats:<br /> <br />Right click on Thread groupAddSampler<br />Select the appropriate Samplers according to the results that you want to view.<br /> <br />XI. Running the Thread group:<br />1. Click on RunStart. It will start running the opened script. <br />2. If the script is in running state the button at the top right corner will be displayed in green color and after that it will change to gray color. <br />XII. Results:<br />Click on respective samplers to view results.<br /> <br />XIII. Converting and copying the generated graph:<br />Right click on the graph and select appropriate option.<br /> <br />

×