You are on page 1of 21

V.V.S.

JANARDHAN

JMETER ?
Apache JMeter is open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.

V.V.S.JANARDHAN

What can I do with it?


Apache JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). 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. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.

V.V.S.JANARDHAN

WHAT DOES IT DO?


1. Apache JMeter features include: 2. Can load and performance test many different server types: 1. Web - HTTP, HTTPS 2. SOAP 3. Database via JDBC 4. LDAP 5. JMS 6. Mail - POP3(S) and IMAP(S) 3. Complete portability and 100% Java purity . 4. Full multithreading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by seperate thread groups. 5. Careful GUI design allows faster operation and more precise timings. 6. Caching and offline analysis/replaying of test results.

V.V.S.JANARDHAN

WHAT DOES IT DO?


7. Highly Extensible: 1. Pluggable Samplers allow unlimited testing capabilities. 2. Several load statistics may be choosen with pluggable timers . 3. Data analysis and visualization plugins allow great extendibility as well as personalization. 4. Functions can be used to provide dynamic input to a test or provide data manipulation. 5. Scriptable Samplers (BeanShell is fully supported; and there is a sampler which supports BSF-compatible languages)

V.V.S.JANARDHAN

BASIC REQUIREMENTS ?
JMETER requires your computing environment meets some minimum requirements.

JAVA VERSION

JMeter requires a fully compliant JVM 1.5 or higher.

Because JMeter uses only standard Java APIs, please do not file bug reports if your JRE fails to run JMeter because of JRE implementation issues.

V.V.S.JANARDHAN

OPERATING SYSTEMS
JMeter works under: Unix (Solaris, Linux, etc) Windows (98, NT, XP, etc) OpenVMS Alpha 7.3+

V.V.S.JANARDHAN

DEFAULT PAGE IN THE JMETER...

V.V.S.JANARDHAN

WHAT IS TESTPLAN ?
A test plan describes a series of steps JMeter will execute when run. A complete test plan will consist of one or more Thread Groups, logic conrollers, sample generating controllers, listeners, timers, assertions, and configuration elements.

V.V.S.JANARDHAN

WHAT IS THREAD GROUP ?


A Thread Group defines a pool of users that will execute a particular test case against your server. In the Thread Group GUI, you can control the number of users simulated (num of threads), the ramp up time (how long it takes to start all the threads), the number of times to perform the test, and optionally, a start and stop time for the test.

V.V.S.JANARDHAN

1.HOW TO ADD THREAD GROUP ?

V.V.S.JANARDHAN

SAMPLERS :
Samplers perform the actual work of JMeter. Each sampler (except Test Action) generates one or more sample results. The sample results have various attributes (success/fail, elapsed time, data size etc) and can be viewed in the various listeners.

LISTENERS :
Listeners do not process sample data in non-GUI mode, but the raw data will be displayed to the User or raw data will be saved if an output file has been configured. In order to analyse the data generated by a non-GUI test run, you need to load the file into the appropriate Listener.

V.V.S.JANARDHAN

HOW TO CREATE BASIC HTTP REQUEST ?

Right click on the Thread Group -> Add - > Sampler -> HTTP Request

V.V.S.JANARDHAN

HOW TO CREATE LISTENERS?

Right click on the Thread Group -> Add - > Listener -> View Results Tree

V.V.S.JANARDHAN

HOW DO I EXECUTE JMETER SCRIPT?


The easiest way to begin using JMeter is to first download the latest production release and install it Save the Test Plan(Follow the above steps to create Testplan and Thread group) Run the Test Plan(Ctrl + R) View the result of the Test Plan in the Listeners(view Result Tree, View Results Table)which you selected.

V.V.S.JANARDHAN

SAVING THE TEST PLAN


Although it is not required, we recommend that you save the Test Plan to a file before running it. To save the Test Plan, select "Save" or "Save Test Plan As ..." from the File menu (with the latest release, it is no longer necessary to select the Test Plan element first).(It will save as .jmx extension in your location.)
Note : JMeter allows you to save the entire Test Plan tree or only a portion of it. To save only the elements located in a particular "branch" of the Test Plan tree, select the Test Plan element in the tree from which to start the "branch", and then click your right mouse button to access the "Save Selection As ..." menu item. Alternatively, select the appropriate Test Plan element and then select "Save Selection As ..." from the Edit menu

V.V.S.JANARDHAN

RUNNING A TEST PLAN


To run your test plan, choose "Start" (Control + r) from the "Run" menu item. When JMeter is running, it shows a small green box at the right hand end of the section just under the menu bar. You can also check the "Run" menu. If "Start" is disabled, and "Stop" is enabled, then JMeter is running your test plan (or, at least, it thinks it is). The numbers to the left of the green box are the number of active threads / total number of threads. These only apply to a locally run test; they do not include any threads started on remote systems when using client-server mode.

V.V.S.JANARDHAN

HOW TO VIEW THE RESULTS?

V.V.S.JANARDHAN

V.V.S.JANARDHAN

V.V.S.JANARDHAN

V.V.S.JANARDHAN

You might also like