Elements' Execution Order
The execution of elements in JMeter depends on their type and their scope:
- Samplers and Controllers are not scoped elements – they are executed where they are located.
- Pre-Processor, Post-Processor, Timer, Assertion, and Listener are scoped elements – they are executed where their scope applies AND their execution order depends both on their type and their position if two elements of the same type apply.
- Config Elements are also scoped elements, but their execution depends on their type.
The first rule for execution order is the following:
Figure 4.3: Execution order based on type
As you can see in the following screenshot, the positions of different elements do not impact the execution order:
Figure 4.4: Type and not position, impacts the order of execution
The second rule is that outer elements are executed before inner elements of the same type: