Articles → JMeter → Threadgroup In Jmeter
Threadgroup In Jmeter
What Is Thread Group?
How To Add Thread Group In Jmeter?
- Open jMeter
- Right-click on the test plan and click on Add → Threads (Users) → Thread Group
Click to Enlarge
Click to Enlarge
Different Elements Of Thread Group
- Right-click on Thread Group.
- Click on Add → Component name
Click to Enlarge
- Sampler - This is a request that will be processed by jMeter.
- Logic Controller - This element controls the action of the request. In other words, it controls the way the request is sent to server.
- Pre processor - This element is used to perform activity before the request is processed.
- Post Processor - If you require any information from the response then this element is used.
- Assertions - If we want to validate the response with the desired output then assertions are used.
- Timer - This element is used to add delay in your request.
- Test fragments - Test fragments is like another thread group which can be added inside the test plan.
- Config Elements - This element is used to create defaults and variables used by samplers.
- Listener - This element is used to view and analyze the results of performance testing in tabular or graphical form.
Thread Group Properties
Click to Enlarge
- Name – This is the name of the thread group.
- Comments – These are additional information that user can add about thread group
- Action to be taken after a sampler error – This section specifies what action needs to be performed if an error occurs.
- Continue – ignore the error and continue with the execution.
- Start next thread loop – ignore the error and continue the next iteration.
- Stop thread – stop the execution of current thread.
- Stop test – stop the entire execution of test.
- Stop test now – Test execution must be stopped abruptly.
- Number of Threads (users) – These are number of concurrent user sending requests.
- Ramp-Up Period (in seconds) – It means how much time jmeter will take to start full number of threads. For example if number of threads are 30 and Ramp-Up period is 180 seconds then it means after every 6 seconds (180/30) a new thread will be added.
- Loop count – This attribute specifies the number of iterations.
- Delay thread creation until needed – This option when checks performs ramp-up and startup delays before thread data is created.
- Scheduler – Provides option to execute your script for specific amount of time.