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指每个虚拟用户使用数值的范围

  • 相关阅读:
    简单工厂模式_C#_设计模式
    单例模式_C#设计模式
    快速排序_排序算法_算法
    关于缓存C#
    网络编程的4种IO模型
    一些自己总结
    驱动漏洞中的__try和ProbeForRead
    poj2318
    poj1113
    poj 1904
  • 原文地址:https://www.cnblogs.com/morebetter/p/262856.html
Copyright © 2011-2022 走看看