The execution order of Jmeter Different elements

If you want to know the what is the exact execution order of different in jmeter element , then read this post.

Timers, Assertions, Pre- and Post-Processors are only processed if there is a sampler to which they apply. Logic Controllers and Samplers are processed in the order in which they appear in the tree. and other test elements are processed according to the scope in which they are found, and the type of test element

Please find the Execution order

1 .Configuration elements

2. Pre-Processors

3. Timers

4. Sampler

5.Post-Processors Sample Result should not be null)

6.Assertions (Sample Result should not be null)

7.Listeners (Sample Result should not be null)

Lets take this example to understand this

 

The order of execution would be:
For sample request 1

  • Config Element |CSV Data Set Config
  • Pre-Processor User Parameters
  • Constant Timer 1
  • Constant Timer 1
  • Sampler 1 | HTTP Request
  • Post-processor | X path Extractor
  • Post Processor| Regular Expression Extractor
  • Response Assertion1
  • Listener |View Results Tree

 

For request 2

  • Config Element |CSV Data Set Config
  • Pre-Processor User Parameters
  • Constant Timer 1
  • Constant Timer 1
  • Sampler 2 | HTTP Request
  • Post-processor | X path Extractor
  • Post Processor| Regular Expression Extractor
  • Response Assertion1
  • Listener |View Results Tree

Scoping Rules

Script tree contains elements that are both hierarchical and ordered and Some elements in the trees are strictly hierarchical (Listeners, Config Elements, Post-Processors, Pre-Processors, Assertions, Timers), and some are primarily ordered (controllers, samplers).

 

  • Let’s see in this case the requests are named to reflect the order in which they will be executed.
  • Constant Timer will apply to HTTP Requests Two, Three, and Four (notice how the order is irrelevant for hierarchical elements).
  • Response assertion will apply only to HTTP Request Three.
  • Constant Timer 2 will affect all the requests.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: