Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.

Similar presentations


Presentation on theme: "Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel."— Presentation transcript:

1 Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel

2 2 Day 7 JMeter Advanced Features

3  Workbench – Work area, where elements can be stored, but which is not utilized by the test plan.  Test Plan – Describes the overall performance test, including all setup and teardown, parameters, conditions, and operations and variables.  User Groups – define number of concurrent user and length of the performance test  Samplers – The actual requests sent and retrieved between the test object and JMeter  Listeners – Graphical and tabular representation of the test data  Hierarchy – defines the relationship of all object to one another, and controls the overall flow of the test. 3

4  Timers  Logical Controllers  Configuration Elements  Pre and Post processors  Variables

5  JMeter thread sends requests without pausing between each request.  You can specify a delay by adding one of the available timers to your Thread Group. Note: If you do not add a delay, JMeter could overwhelm your server by making too many requests in a very short amount of time.

6 TypeBehavior Constant TimerHave each thread pause for the same amount of time between requests Gaussian Random Timer Pauses each thread request for a random amount of time, with most of the time intervals ocurring near a particular value. Total delay is the sum of the Gaussian distributed value (with mean 0.0 and standard deviation 1.0) times the deviation value you specify, and the offset value. Uniform Random Timer Pauses each thread request for a random amount of time, with each time interval having the same probability of occurring. The total delay is the sum of the random value and the offset value. Constant Throughput Timer Introduces variable pauses, calculated to keep the total throughput (in terms of samples per minute) as close as possible to a give figure. Synchronizing TimerBlocks threads until X number of threads have been blocked, and then they are all released at once. Can create large instant loads at various points of the test plan. Bean Shell Timer, BSF Timer, JSR223 Timer Can be used to generate a delay using a scripting language

7 Logic Controllers determine the order in which Samplers are processed. ◦ Used to group samplers ◦ Used to group other controllers To add a controller: ◦ Right-click on a node ◦ Select Add > Logic Controller A list of available controllers will be displayed Note: controllers can only be added to a user group or to other controllers

8 TypeBehavior Simple ControllerLets you organize your Samplers and other Logic Controllers. Unlike other Logic Controllers, this controller provides no functionality beyond that of a storage device. Loop ControllerWill loop through samplers a certain number of times, in addition to the loop value you specified for the Thread Group Once Only ControllerThe Once Only Controller will execute always during the first iteration of any looping parent controller. Interleave ControllerWill alternate among each of the children (samplers or controllers) for each loop iteration Random ControllerPicks one of its sub-controllers and samplers at random at each pass of the loop. Random Order Controller The order of execution of the nodes will be random, however it will execute each child element at most once. Throughput ControllerControl how often its content gets executed. Has two modes - percent execution and total executions. Similar to Like the Once Only Controller (but the number of iterations is configurable)

9  Preprocessors are used to modify the Samplers in their scope ◦ Can be used to assign different values per user (see User Parameters)  Postprocessors are applied after samplers. ◦ Unless otherwise noted, Postprocessors are only applied to the parent sample, and not applied to child samples ◦ To ensure that a post-processor is applied only to a particular sampler, add it as a child of the sampler.

10 Random VariableUsed to generate random numeric strings and store them in variable for use later. May be formated using java.text.DecimalFormat format string. CounterAllows the user to create a counter that can be referenced anywhere in the Thread Group. The counter will loop from the start to the max, and then start over with the start, until the test has ended User Defined VariablesThe User Defined Variables element lets you define an initial set of variables, just as in the Test Plan. Note that all the UDV elements in a test plan - no matter where they are - are processed at the start, once. User Parameters (Pre-processor) Allows the user to specify values for User Variables specific to individual threads. For each thread, the variable will be assigned one of the values from the series in sequence. If there are more threads than values, the values get re-used.


Download ppt "Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel."

Similar presentations


Ads by Google