问题
I need to create a Thread Group Using JMeter with 5 Thread Groups.
This is how I want this test to run:
- Thread 1 and 2 Starts Parallelly. (But Thread 1 only runs once and Thread 2 runs till it gets a success)
- Once Thread 2 finishes running, Thread 3 and 4 should start running parrallaly.(But Thread 3 only runs once and Thread 4 runs till it gets a success)
- Once Thread 4 finishes Thread 5 needs to start.
Really appreciate if you can guide me to achieve this task.
Thanks in Advance.
回答1:
If you don't need to pass anything between the Thread Groups the easiest would be just putting all the requests under one Thread Group and control the concurrency using Parallel Controller
- If you need to pass something between Thread Groups, i.e. Thread3 requires some data from Thread2 - consider using Inter-Thread Communication Plugin
Both plugins can be installed using JMeter Plugins Manager
来源:https://stackoverflow.com/questions/62020935/jmeter-how-to-run-two-parallel-thread-sets-consecutively