zoukankan      html  css  js  c++  java
  • "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指每个虚拟用户使用数值的范围

  • 相关阅读:
    算法训练(大富翁)
    算法训练题(奖励最小)
    算法训练题
    乔布斯
    算法题(符合题意的6位数)
    算法题(八皇后)
    算法题(分小组)
    汉诺塔
    递归算法题(兔子)
    字符串-mask-每个元音包含偶数次的最长子字符串
  • 原文地址:https://www.cnblogs.com/morebetter/p/262856.html
Copyright © 2011-2022 走看看