spikesource hints'n'tips

Our Top Tags

                                       

Mailing List

Keep uptodate with the latest hints'n' tips as they are published by signing up to our mailing list.

Our RSS Feeds








Latest Linux News

Hosted Zimbra Email Catches On With Managed Service Providers

Saturday, 19 July 2008
MSPmentor: "When it comes to hosted email, why zig when you can zag? That explains the strategy at EtomicMail, a managed service provider that’s hosting Zimbra — an open source email platf

An Open Source Seeing Eye Dog for Web Surfers

Saturday, 19 July 2008
LinuxInsider: "WebAnywhere is an open source, Web-based application that acts as a screen reader of sorts for blind people. Its developer, a student at the University of Washington, designed it so tha

Perl and Bash Versions Of Binary To Decimal Conversion Script

Saturday, 19 July 2008
The Linux and Unix Menagerie: "As promised, in yesterday's post on converting binary values to decimal in C, today we're going to follow up with straight-up ports to Perl and shell. Actually, they'll

E4X: JavaScript on Steroids

Saturday, 19 July 2008
IBM Developerworks: "E4X is designed to simplify the task of writing JavaScript code for XML. It is an efficient, powerful tool that you can use to interact with XML nodes and attributes. The primary

Linux 2.6.26 Kernel Benchmarks

Saturday, 19 July 2008
Phoronix: "Over the weekend the Linux 2.6.26 kernel was released. This quarterly update to the Linux kernel introduced Kernel-based Virtual Machine improvements, new One Laptop Per Child support, a ne

Latest Digg Entries

How to install JMeter and use it for testing

posted Sunday, 11 September 2005

JMeter - Getting started

  1. Download the latest production release from http://jakarta.apache.org/builds/jakarta-jmeter/release/
  2. Install it - simply unzip the zip/tar file into the directory where you want JMeter to be installed
  3. Requirements: JDK1.4 or higher installed and JAVA_HOME environment variable set
  4. To run JMeter, run the jmeter.bat (for Windows) or jmeter (for Linux/Unix) file, which will be under bin directory. For testing from behind a firewall/proxy server, start jmeter with the required command line parameters (proxy server IP, port number, etc) as follows:
    jmeter -H my.proxy.server -P 8000 -u username -a password
  5. To start testing, open an existing script (*.jmx) file and click Start under Run menu. JMeter lights up a green square in the upper-right-hand corner to indicate if a test is currently running.
  6. Click any one of the Listeners such as Assertion Results to see the test results. Alternatively you can configure it to store in a file with extension, jtl, as an XML document.

JMeter - Elements of a Test Plan

  • ThreadGroup is the starting point of any test plan, all elements of a test plan must be under a thread group (number of threads, number of times). Each thread represents a user. For functional testing, number of threads can be one.
  • Samplers - a type of controller - used to send requests to a server (e.g, HTTP Request) - JMeter sends requests in the order that they appear in the test plan (tree).
  • Logic Controllers - another type of controller - logic that JMeter uses to decide when to send requests.
  • Listeners provide access to the information JMeter gathers about the test cases while JMeter runs (e.g., Assertion Results, View Results Tree).
  • Assertions - to assert facts about responses received (e.g., Response Assertion that checks the text in the response).
  • Configuration Elements - it can add to or modify requests.
  • After adding all the required elements, save the test plan and then run it.

JMeter - Building a Web Test Plan

  • Add Users - Add a Thread group specifying the number of threads, number of times, etc. Each thread represents a user. For functional testing, number of threads can be one.
  • Add Default HTTP Request Properties.
  • Add Cookie Support - add an HTTP Cookie Manager to each Thread Group, otherwise JMeter will ignore cookies and lose session data.
  • Add HTTP Requests - JMeter sends requests in the order that they appear in the tree.
  • Add Assertions - to assert facts about responses received (e.g., Response Assertion that checks the text in the response).
  • Add a Listener to View Store the Test Results.
  • After adding all the elements, save the test plan and then run it.

tags:    

links: digg this    del.icio.us    technorati    




1. shafee mohammed left...
Thursday, 1 December 2005 8:56 am

plz guide me to use jmeter without any problem


2. santosh kumar singh left...
Friday, 9 December 2005 6:24 am

I requared the full information of jmeter


3. sowmiya left...
Tuesday, 9 May 2006 10:35 am

i would like to know how to record scripts in jmeter?...i need the answer as soon as possible...


4. anni left...
Monday, 22 May 2006 6:39 am

how to install Jmeter and use it to test the application


5. John left...
Monday, 22 May 2006 8:37 am

gdgdg


6. Aneesh left...
Friday, 26 May 2006 9:06 am

How to write scripts


7. Riza left...
Friday, 9 June 2006 4:31 pm

I created a script for 1 user. The timing is relatively low than when i do it manually. Why is the timing skewed in jmeter?


8. zer0effect left...
Friday, 23 June 2006 3:39 pm

Great Site


9. igor left...
Friday, 14 July 2006 7:47 am

very unusefull


10. Manish Sohaney left...
Thursday, 20 July 2006 6:06 pm

Good tutorial on JMeter: http://www.onjava.com/pub/a/onjava/2003/01/15/jmeter.html


11. ram left...
Monday, 13 November 2006 9:55 am

I am running with many threads... I want to give different parameters for different threads


12. Mehul Patel left...
Friday, 10 August 2007 12:25 pm

I want to know that whether Jmeter can be used for application that is developed in Jave or it can also be used for application that is developed in .Net


Related Posts

How can I start a Java process and retain its process id?

Monday, 2 October 2006 2:41 P GMT
How can I start a Java process and retain its process id?

Handling different Java runtimes on a single machine

Thursday, 14 September 2006 10:48 A GMT
This entry takes a quick look at how you can best utilise different Java JVMs on the linux using a couple of techniques.

Invoking Jetty as an embedded server

Wednesday, 16 August 2006 2:24 P GMT
Ever wondered how to invoke Jetty as an embedded server? David Yu from the Jetty Mailing list recently posted a way you can do this.

How to install JMeter and use it for testing

Sunday, 11 September 2005 8:00 A GMT
Apache JMeter is a 100% pure Java desktop application designed to test performance on static/dynamic resources such as static files, Servlets, CGI scripts. JMeter can also be used to regression test application by creating test scripts.

Introduction to JVM crashes

Friday, 9 September 2005 10:33 A GMT
Things to look for when checking a JVM crash

Configuring JGroups to avoid using multicasting

Wednesday, 31 August 2005 7:54 A GMT
JGroups - the cluster library used by Jboss, uses multicasting for cluster communication. This article discusses configuration of JGroups so that it does not use multi casting.

How to import a certificate from file in Java using keytool

Wednesday, 17 August 2005 4:56 P GMT
How to import a certificate from file in Java using keytool