“Select next row”选择数据输入更新方法,以说明虚拟用户在脚本执行的过程中如何选择表中的数据。方法可以是:连续的、随机的、唯一的、或者与其它参数表的相同行。
① 顺序(Sequential):顺序地给虚拟用户分配参数值。
②随机(Random):从数据表中取随机数
③ 唯一(Unique):分配唯一的值给虚拟用户。
“Updta value on”选择数据的更新方式。
①Each iteration:每次循环取新值,每一次循环中都取相同的值。
②Each occurrence:只要发现该参数就要重新取值。
③Once:在所有的循环中都使用同一个值。
举个实例:4个虚拟用户,迭代2次,准备了8行参数。
Name |
Kim |
David |
Michael |
Jane |
Ron |
Alice |
Ken |
Julie |
Select next row
Update value on | Sequential | Random | Unique |
Each iteration |
All the Vusers use Kim in the first iteration, David in the second iteration, Michael inthe third iteration, etc. | 每次迭代时,随机从数据表中取数。 |
If you specified Each Iteration, for a test run of2iterations, the first Vuser takes Kim in the first iteration,David in the second.The second Vuser takes Michael,Jane. The thirdVuser,Ron,Alice |
Each occurrence |
All the Vusers use Kim in the first occurrence, David in the second occurrence,Michael in the third occurrence, etc. |
每次遇到随机取一个数值,即使在同一个迭代。
| 每个虚拟用户每次遇到取一个新的不同的数值,即使在同一个迭代。 |
Once | If you specified Once, all Vusers take Kim for all iterations |
第一次迭代时随机取值,该用户所有的子迭代值不变。
| If you specified Once, the first Vuser takes Kim for all iterations the second Vuser takes David for all iterations, etc. |