LR工具-参数化

“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.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值