Friday 11 July 2014

Important Elements in Jmeter

Following are the Important Elements in Jmeter.

 

Test Plan :
A Test Plan defines and provides a layout of how and what to test. It can be viewed as a container for running tests.

Work Bench :
Workbench node simply provides a place to temporarily store test elements while not in use, for copy/paste purposes. When you save your test plan, WorkBench items are not saved with it.

Thread Group :

Following are the important Components of a Test Plan
Thread Group :
The thread group elements control the number of threads JMeter will use during the test. 


We can also control the following via the Thread Group:
-By setting the number of Threads.
-By setting the Ramp Up Time
-By setting the number of test iterations.
-Action to be taken after a Sampler error
-Number of Threads
-Ramp-Up Period
-Loop Count
-Scheduler checkbox
-Scheduler Configuration


Controllers :

JMeter has two types of Controllers: Samplers and Logic Controllers.

Sampler:
Samplers allow JMeter to send specific types of requests to a server. They simulate a user's request for a page from the target server. Eg: HTTP Request, JDBC Request.

Logic Controller:
Logic Controllers lets you control order of processing of Samplers in a Thread. Logic Controllers can change the order of request coming from any of their child elements. Some examples are: ForEach Controller, While Controller.


Listeners:

Listeners let you view the results of Samplers in the form of tables, graphs, trees or simple text in some log files.
 Eg: View Result Tree, Aggregate Report

Timers :
We can add a timer element which will allow us to define a period to wait between each request.
 Eg: Constant Timer

 Assertions:
Assertions allow you to include some validation test on the response of your request made using a Sampler.
Eg : Response assertion, Xpath assertion


Pre Processor :
A Pre-Processor is something that will happen before a sampler executes.

Post Processor:
A Post Processor executes after a sampler finishes its execution.

Config Elements :
Configuration Elements allow you to create defaults and variables to be used by Samplers. They are used to add or modify requests made by Samplers.

No comments:

Post a Comment