"Run Thread Groups consecutively" 如何影响 setUp/tearDown 线程组
How "Run Thread Groups consecutively" affects on setUp/tearDown Thread Group
我正在检查 setUp/tearDown 线程组行为的正确性,当 "Run Thread Groups consecutively" 进入 "Test Plan" 被检查和未被检查时。
假设我们以下面的"Test Plan"结构为例
不检查 "Run Thread Groups consecutively"我们有
- 线程组"Iterate Over Dump"和"Iterate Over Tmp Result"同时执行。
- setUp/tearDown Thread Group在每个Thread Group之前和之后分别执行一两次。
通过检查 "Run Thread Groups consecutively" 我们有
- 线程组 "Iterate Over Dump" 和 "Iterate Over Tmp Result" 按顺序执行,如 "Test Plan".
所示
- setUp线程组在"Iterate Over Dump"之前执行一次,tearDown线程组在"Iterate Over Tmp Result"之后执行一次。
我使用 "Run Thread Groups consecutively" 偶然发现了这种差异,因为我需要连续执行,但我没有找到使用 setUp/tearDown 对这种行为的任何直接描述。
如果我猜对了,我可以删除我放置的 "If controller" 以避免双重 setUp/tearDown 执行。正确吗?
此致
setUp Thread Group 将作为第一个线程组执行,但它是一个普通线程组,将执行线程数中定义的次数。
The difference is that these type of threads execute before the test proceeds to the executing of regular Thread Groups.
tearDown Thread Group 除了将作为最后一个线程组执行外,将执行相同的操作。
execute after the test has finished executing its regular Thread Groups.
否则可能会被认为是一个错误。
我正在检查 setUp/tearDown 线程组行为的正确性,当 "Run Thread Groups consecutively" 进入 "Test Plan" 被检查和未被检查时。
假设我们以下面的"Test Plan"结构为例
不检查 "Run Thread Groups consecutively"我们有
- 线程组"Iterate Over Dump"和"Iterate Over Tmp Result"同时执行。
- setUp/tearDown Thread Group在每个Thread Group之前和之后分别执行一两次。
通过检查 "Run Thread Groups consecutively" 我们有
- 线程组 "Iterate Over Dump" 和 "Iterate Over Tmp Result" 按顺序执行,如 "Test Plan". 所示
- setUp线程组在"Iterate Over Dump"之前执行一次,tearDown线程组在"Iterate Over Tmp Result"之后执行一次。
我使用 "Run Thread Groups consecutively" 偶然发现了这种差异,因为我需要连续执行,但我没有找到使用 setUp/tearDown 对这种行为的任何直接描述。
如果我猜对了,我可以删除我放置的 "If controller" 以避免双重 setUp/tearDown 执行。正确吗?
此致
setUp Thread Group 将作为第一个线程组执行,但它是一个普通线程组,将执行线程数中定义的次数。
The difference is that these type of threads execute before the test proceeds to the executing of regular Thread Groups.
tearDown Thread Group 除了将作为最后一个线程组执行外,将执行相同的操作。
execute after the test has finished executing its regular Thread Groups.
否则可能会被认为是一个错误。