Document 3
Document 3
plan are executed. The execution order is crucial for understanding how JMeter processes
different components during a test. Here’s a general breakdown of how elements are
executed in JMeter:
1. Test Plan
• The Test Plan is the root element of any JMeter test. It doesn't perform any actions
itself, but it contains all other components. It ensures that the test is run according
to the configuration defined.
2. Thread Groups
3. Samplers
• Samplers define the actual requests to the server, such as HTTP requests, FTP
requests, database requests, etc.
• They are executed in the order they appear within the Thread Group.
4. Pre-Processors
5. Timers
• Timers introduce a delay between requests. These are executed after a sampler
but before the next request is sent.
• Example: To simulate real-world scenarios where there are pauses between
requests.
6. Post-Processors
• Post-Processors are executed after a sampler, and they are used to process the
response data.
• Common use: Extracting information from the response (like using Regular
Expression Extractor to capture data).
7. Assertions
• Assertions are executed after a sampler and are used to validate the response of
the sampler.
• They check the response against expected values or conditions.
• If an assertion fails, the result is marked as failed, but the execution continues.
8. Listeners
• Listeners are responsible for collecting and displaying the results of the test
execution.
• They are not executed in the sequence but instead gather data after the samplers
and other components run.
• Example: View Results Tree, Aggregate Report, Graph Results, etc.