LoadRunner压力测试之Unique Number参数类型、Random Number参数类型浅析

  前几天工作需要用LoadRunner进行压力测试,期间对手机号进行参数化设置。

当时选用了<Value>137{Random_quhao}{Unique_weiyi}</Value>模式,Random Number、Unque Number参数类型选择如下:

 Parameter type

 Random Number

 Unique Number

 Number(Block size per)

 9999

 9999

 Sample

 0001

 0001

 Number

 %04lu

 %04d

 Update value

 Each occurrence

 Each iteration

 when out of values

 Continue with last value

 Continue with last value

 压测后发现日志中有大量大于11位的手机号,这个问题纠结了两天。最后百度和博问终于解决了这个问题。要想取得固定位数的手机号,必须使用Random Number参数类型。

原文地址:https://www.cnblogs.com/yinze/p/7004003.html