My understanding of how the test processor processes the various tasks suggests that having the listener above the sampler has no effect to the fact that the listener is invoked only after the sampler starts executing. Similarly, having the preprocessor that sets a variable after the http sampler task has no effect to the fact that the variable is available to the http sampler irrespective of whether the preprocessor task is before or after the http sampler.
In the test plan settings, we can choose to run the thread group consecutively or not. However, within the thread group, assuming we have tasks like the below list. Is there any implicit ordering sequence that is enforced/followed by the test processor (like the example I have provided in paragraph 1)?
- Couple of HTTP request (samplers)
- HTTP header manager (config element)
- JSR223 PreProcessor (pre processor)
- Summary Report (listener)
- View result tree (listener)
- Flow control action (sampler)
- FTP request (sampler)
- If controller (logic controller) which contains few HTTP samplers
- JSON extractor (post processor)
- Response assertion (Assertion)
- Constant timer (Timer)
- Constant throughput timer (Timer)