JMeter has three thread group classifications: Thread Group, setUp thread Group, TearDown thread group, as shown in:
(1), Thread Group
This is the thread that we usually add to run. In layman's words, a thread group can be viewed as a virtual user group, and each thread in a thread group can be understood as a virtual user.
(2), Setup thread Group
A special type of threadgroup that can be used to perform a predictive pilot operation. These threads behave exactly like a normal thread-group component. The difference is that these types of threads perform a regular thread group execution before testing, similar to LoadRunner init, which is initialized at the beginning of the test.
(3), teardown thread Group
A special type of threadgroup that can be used to perform post-test actions. These threads behave exactly like a normal thread-group component. The difference is that these types of threads execute a periodic thread group after the test is finished, similar to Loadrunnner end, which is recycled at the end of the test.
The meaning of thread group parameter setting
We divide the thread group's settings into 3 regions:
Area one: What to do after the sampler fails (there are similar run Setup options in LoadRunner, compared to learning):
1, continue: Continue to perform the next operation;
2, start next Thread loop: Start the next cycle;
3. Stop thread: Stop threads and exit the thread (no longer performing the operation of this thread);
4, Stop test: wait for the current execution of the sampler end, the end of the entire test ;
5, stop Test now: stop testing immediately;
Zone Two: Thread properties
1, number of Threads (users): The number of threads, equivalent to the amount of simulated users;
2, Ramp-up Period (in seconds): The time required to reach the specified thread, such as the number of threads is 100, the time is set to 10s, then 10s load 100 threads, the number of threads launched per second =100/10=10;
3, Loop Count: If you fill in the specific values, is the number of cycles, if you select "Forever", the execution continues until the manual stop;
4, delay thread creation until needed: delay the creation of threads until necessary.
Zone Three: Scheduler configuration
The Scheduler (scheduler) needs to be checked for the scheduler configuration to take effect.
LoadRunner in the controller scene settings also have similar settings, generally used for timing to run the scene, such as we need some time in the evening to execute the scene, we can set the time of the scene execution, start the controller before work, it will not really go to execute at this time, Need to arrive at a specified time to execute.
Three thread groups for JMeter