JMeter How to run two parallel thread sets consecutively

蹲街弑〆低调 提交于 2020-05-28 11:54:50

问题


I need to create a Thread Group Using JMeter with 5 Thread Groups.

This is how I want this test to run:

  1. Thread 1 and 2 Starts Parallelly. (But Thread 1 only runs once and Thread 2 runs till it gets a success)
  2. 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)
  3. Once Thread 4 finishes Thread 5 needs to start.

Really appreciate if you can guide me to achieve this task.

Thanks in Advance.


回答1:


  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

  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!