Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 JMeter 填充数据库。有 2 个线程组并行填充 2 个表。在这两个表填满后,我需要启动最后一个线程组来填充第三个表。我该怎么做?是否可以同步 JMeter 线程组?
你可以为第三个线程组做一个 while 控制器,然后做这样的事情:
ThreadGroup 1 - 填写表 1 的代码 - 设置用户定义变量“Group1_done==true”作为最后一步
ThreadGroup 2 - 填充表 2 的代码 - 设置用户定义变量“Group2_done==true”作为最后一步
ThreadGroup 3 - WHILE CONTROLLER "Group1_done==true"&&"Group2_done==true" - 填写表 3 的代码