Fundamentals of Jmeter

 Course Code : CTOJM 200 Source : CresTech
Course Length : 2 days

Apache JMeter is 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.

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.

Course Objectives
 
After completing this course, you will be able to:

    •    Identify what information needs to be gathered for load testing.
    •    Identify the components of JMeter.
    •    Apply the workflow recommended for creating a basic JMeter scenario.
    •    Assign scripts, run-time settings, load generators and Vusers to a JMeter scenario based on
         your load testing goals.
    •    Load test your application by running a scenario.


Participants, Prerequisites

The course is intended for beginners or intermediate testers, leads who need to develop or improve automation techniques using JMeter. While previous testing tool knowledge is not required.

Attendees should have the following

    •    Knowledge of various software applications
    •    Regression testing concepts
    •    Knowledge of different OS environments
    •    Knowledge of different web browsers


JMeter Contents

Introduction

    •    History
    •    The Future


Requirements

    •    Java Version
    •    Operating System


Running JMeter

    •    JMeter's Classpath
    •    Using a Proxy Server
    •    Non-GUI Mode
    •    Distributed Mode
    •    Overriding Properties via the Command Line
    •    Logging and Error Messages


Building a Test Plan

    •    Adding and Removing Elements
    •    Loading and Saving Elements
    •    Configuring Tree Elements
    •    Running a Test Plan
    •    Scoping Rules


Element of Test Plan

    •    Thread Group
    •    Controllers
    •    Samplers
    •    Logic Controllers
    •    Listeners
    •    Timers
    •    Assertions
    •    Configuration Elements
    •    Pre-Processor Elements
    •    Post-Processor Elements

Building a Web Test Plan

    •    Adding Users
    •    Adding Default HTTP Request Properties
    •    Adding Cookie Support
    •    Adding HTTP Requests
    •    Adding Post-Processor for Correlation
    •    Adding a Listener to View/Store the Test Results
    •    Saving the Test Plan
    •    Running the Test Plan


Building an Advance Web Test Plan

    •    Handling User Sessions with URL Rewriting
    •    Using a Header Manager


Building a Database Test Plan

    •    Adding Users
    •    Adding JDBC Requests
    •    Adding a Listener to View/Store the Test Results
    •    Saving the Test Plan
    •    Running the Test Plan


Building a Web Service Test Plan

    * Adding Users
    * Adding Web Service Requests
    * Adding a Listener to View/Store the Test Results
    * Saving the Test Plan
    * Running the Test Plan


Building a Monitor Test Plan

    •    Adding Server
    •    Adding HTTP Auth Manager (Works only for Tomcat5 Build)
    •    Adding HTTP Requests
    •    Adding Constant Timer
    •    Adding a Listener to View/Store the Test Results
    •    Adding Monitor Results
    •    Saving the Test Plan
    •    Running the Test Plan


Listeners

    •    Assertion Results
    •    BeanShell Listener
    •    Distribution Graph
    •    Graph Full Results
    •    Graph Results
    •    Monitor Results
    •    Simple Data Writer
    •    Spline Visualizer
    •    Aggregate Graph
    •    Aggregate Report
    •    Summary Report
    •    View Results in Table
    •    View Results Tree


Best Practice

    •    Limit the Number of Threads
    •    Where to Put the Cookie Manager
    •    Where to Put the Authorization Manager
    •    Using the Proxy Server to record test scripts
    •    User variables
    •    Reducing resource requirements
    •    BeanShell server

Case Studies
Functional (Regression) and Performance Testing of Investment Management system (for Mutual Funds)
read more...
Automation of an enterprise application using QC, QTP and BPT
read more...
White Papers
Most IT companies use automation testing tools developed by HP (Mercury) and IBM for functional and/
read more...
In this research paper we examine the need for load testing and highlight the shortcomings of open s
read more...