JMeter Execution Order rules:
- Configuring components
- Front-facing processor
- Timer
- Sampling device
- Post processor (unless server response is empty)
- Assertion
- Listener
The timer, assertion, pre/post processor is executed only when the sampler is present in the scope, and the logic controller and sampler are executed in the order in which they appear in the test tree. Other test elements are executed according to their own scopes, and in addition to the type of test element to which they belong (the test components belonging to the same type are executed in the order they appear in the test tree).
The test plan example is as follows:
- Controller
- Post-processor1
- Sampler1
- Sampler2
- Timer1
- Assertion1
- Pre-processor1
- Timer2
- Post-processor2
The execution sequence is as follows:
- Pre-processor1
- Timer1
- Timer2
- Sampler1
- Post-processor1
- Post-processor2
- Assertion1
- Pre-processor1
- Timer1
- Timer2
- Sampler2
- Post-processor1
- Post-processor2
- Assertion1
JMeter Learning Notes--jmeter Execution order rules