"unique number"类型的参数设置

以下是我在51testing上提的问题及回答内容:
我的提问:
在文档中介绍如何使用“unique number”的使用方法如下:
When you use a Unique Number parameter type, you specify a start number
and a block size. The block size indicates the size of the block of numbers
assigned to each Vuser. Each Vuser begins at the bottom of its range and
increments the parameter value for each iteration. For example, if you set
the Start number at 1 with a block of 500, the first Vuser uses the value 1
and the next Vuser uses the value 501, in their first iterations.
但是,我设置后却不是这样
脚本如下:
Action1()
{
        "{key}";
        lr_output_message("%s",lr_eval_string("{key}"));
       
        return 0;
}
其中对key设置为start=1,block=500
但是在输出中仍是
1
2
是自动加1 ,并不是自动加500。
请问这是为什么呢?
请指教。谢谢

jut984907网友回答:
当有两个虚拟用户,每个虚拟用户循环100次时
第一个虚拟用户的第一个循环数值=1,第二个循环=2,第三个=3....
那么,第二个虚拟用户第一个循环数值=501,第二个循环=502,第三个=503....
block指每个虚拟用户使用数值的范围

原文地址:https://www.cnblogs.com/morebetter/p/262856.html