首页 > 编程语言 > 详细

LoadRunner读取关联数组的个数和内容

时间:2015-12-25 15:19:03      阅读:414      评论:0      收藏:0      [点我收藏+]
web_reg_save_param_ex(
        "ParamName=response_header1",
        "LB=Set-Cookie: ",
        "RB=;",
        "Ordinal=All",    //多个条件符合就是返回数组
        SEARCH_FILTERS, 
            "RelFrameID=1",  //这个是有重定向的时候有用
            "Scope=Headers",
        LAST);

    web_url("popupLogin2013", 
        "URL=https://passport.jd.com/uc/popupLogin2013?clstag1=0&clstag2=0&r=0.45619612547335486&t=1451008297482", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=http://tuantrade.jd.com/quanguo-index.html", 
        "Snapshot=t26.inf", 
        "Mode=HTML", 
        LAST);

    arrSize = lr_paramarr_len("response_header1");  //这个函数返回的是数组的大小

    lr_output_message("符合条件的cookie数量为: %d", arrSize);

    lr_output_message("popupLogin2013 response header value = %s", lr_paramarr_idx("response_header1", 1));//注意下标是从1开始的

 

LoadRunner读取关联数组的个数和内容

原文:http://www.cnblogs.com/hushaojun/p/5075820.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!