loadRunner手动关联,通过 web_reg_save_param()函数

 

Action()
{

    //<B>sign up now</B></A> 
    /*
    web_reg_save_param_regexp(
        "ParamName=gloryroad",
        "RegExp=<B>(.*)</B></A>",
        SEARCH_FILTERS,
        "Scope=Body", 
        "IgnoreRedirections=No",
        LAST);
    */
    
   web_reg_save_param("var","LB=<B>","RB=</B></A>",LAST);
       
        
    web_url("index.htm", 
        "URL=http://127.0.0.1:1080/WebTours/index.htm", 
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=", 
        "Snapshot=t20.inf", 
        "Mode=HTML", 
        LAST);

    return 0;
}

 

结果:

 

posted @ 2019-01-17 21:12  夏晓旭  阅读(297)  评论(0编辑  收藏  举报