How to synchronize JMeter Thread groups

前端 未结 1 344
误落风尘
误落风尘 2021-01-13 15:43

I fill the database with JMeter. There is 2 thread groups which fill 2 tables in parallel. After these 2 tables filled I need to start the last thread group to fill the thir

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 16:50

    You could do a while controller for the third thread group, and do something like this:

    ThreadGroup 1 - Code to fill Table 1 - Set a UserDefined Variable "Group1_done==true" as the last step

    ThreadGroup 2 - Code to fill Table 2 - Set a UserDefined Variable "Group2_done==true" as the last step

    ThreadGroup 3 - WHILE CONTROLLER "Group1_done==true"&&"Group2_done==true" - Code to fill Table 3

    0 讨论(0)
提交回复
热议问题