美文网首页
jmeter进阶二:使用Beanshell预处理器从指定列表中获

jmeter进阶二:使用Beanshell预处理器从指定列表中获

作者: 大象的眼泪2012 | 来源:发表于2019-01-07 10:26 被阅读0次

    import java.util.Random;

    int[] query = {100001,100002,100003,100004,101001,101002,102001,102002,102003,102004,102005,102006,102007,102008,103001,103002,104001,104002,104003,104004,104005,105001,105002,105003,106001,106002};

    Random random = new Random();

    int i = random.nextInt(query.length);

    vars.put("certificateOfLandPropertyId",query[i].toString());

    相关文章

      网友评论

          本文标题:jmeter进阶二:使用Beanshell预处理器从指定列表中获

          本文链接:https://www.haomeiwen.com/subject/uliyrqtx.html