如何 运行 一些特定的采样器只执行一次?

how to run some specific sampler only once?

我有登录采样器,我只想 运行 一次以获取 cookie,但线程组 2 中的其他采样器将 运行 多次。

目前我运行计划运行登录也多次。如何将登录采样器配置为 运行 一次?

最简单的是将采样器置于Once Only Controller, this way it will be executed only during first Thread Group迭代

如果您的条件更复杂 - 选择 If Controller,您可以在其中指定自定义甚至多个条件来执行子(ren)采样器