|
PARAMETER的sequential是如何设置取值的(望能解答,我实在很困惑)
我研究了手册,又实际操作了一下,很疑惑,望解答
操作手册是这样来说明sequential 的
Sequential
The Sequential method assigns parameter values to a Vuser sequentially. As a running Vuser accesses the data table, it takes the next available row of data.If you specify Each Iteration in the Update Value on list box, the Vuser takes
the next value from the data table for each iteration.
If you specify Each Occurrence in the Update Value on list box, the Vuser takes the next value from the data table for each occurrence of the parameter, even if it is within the same iteration.
If you specify Once in the Update Value on list box, the value assigned in the first iteration is used for all subsequent iterations for each Vuser.
然后手册还举了一个例子
First Name
Kim
David
Michael
Jane
Ron
Alice
Ken
Julie
For example, assume that your table has the values shown in the table at left.
If you selected Each Iteration, all the Vusers use Kim in the first iteration, David in the second iteration, Michael in
the third iteration, etc.
If you selected Each Occurrence, all the Vusers use Kim in the first occurrence, David in the second occurrence,
Michael in the third occurrence, etc.
If you specified Once, all Vusers take Kim for all iterations.If there are not enough values in the data table, VuGen
returns to the first value in the table, continuing in a loop until the end of the test.
OK,我设置select next row:sequential ; update value on:each iteration ;在run-in time setting----run logic----number of
iteration 为1。
按照手册的说法:
第一个虚拟用户在第一次循环取值时,取KIM;第二次循环取david;第三次取michael.........
第二个虚拟用户在第一次循环取值时,取KIM;第二次循环取david;第三次取michael.........
第三个虚拟用户在第一次循环取值时,取KIM;第二次循环取david;第三次取michael.........
四...........................
五...............................
但是因为我的number of iteration取值为1,也就是只会有1次循环,那么无论我取多少个虚拟用户,也只应该有一个用户----kim登录页面。
可是,我在后台数据检查,却发现这些用户全部登录页面了(我取虚拟用户数为30),请问这是什么原因? |
|