• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 軟件性能測試工具LoadRunner驗證碼的解決方案(2)

    發表于:2011-07-08來源:未知作者:領測軟件測試網采編點擊數: 標簽:loadrunner
    c.jsp Q Q 在C.JSP頁面上 在取得的驗證碼前后加上兩個Q主要為了loadrunner能夠捕獲到這個驗證碼做的標記。 下面我們看一下 loadrunner腳本: Action() { web _set_ma

      c.jsp

      Q<%=session.getattribute("rand")%>Q

    <%=session.getattribute("rand")%>

    <%=session.getattribute("rand")%>

      在C.JSP頁面上 在取得的驗證碼前后加上兩個Q主要為了loadrunner能夠捕獲到這個驗證碼做的標記。

      下面我們看一下 loadrunner腳本:

     

    Action()
    {
        web_set_max_html_param_len("1024");
        web_url("b.jsp",
            "URL=http://10.10.129.99:8080/blank/b.jsp",
            "Resource=0",
            "RecContentType=text/html",
            "Referer=",
            "Snapshot=t1.inf",
            "Mode=HTTP",
            LAST);

        web_concurrent_start(NULL);

        web_url("a.jsp",
            "URL=http://10.10.129.99:8080/blank/a.jsp",
            "Resource=1",
            "RecContentType=image/jpeg",
            "Referer=http://10.10.129.99:8080/blank/b.jsp",
            LAST);
    /*
        web_url("c.jsp",
            "URL=http://10.10.129.99:8080/blank/c.jsp",
            "Resource=0",
            "RecContentType=text/html",
            "Referer=http://10.10.129.99:8080/blank/b.jsp",
            "Snapshot=t2.inf",
            "Mode=HTTP",
            LAST);
    */
        web_concurrent_end(NULL);

    //獲取C.JSP頁面上的驗證碼

        web_reg_save_param("aaa",
            "LB/IC=Q",
            "RB/IC=Q",
            "Ord=1",
            "Search=body",
            LAST);

        web_url("c.jsp_2",
            "URL=http://10.10.129.99:8080/blank/c.jsp",
            "Resource=0",
            "RecContentType=text/html",
            "Referer=http://10.10.129.99:8080/blank/b.jsp",
            "Snapshot=t3.inf",
            "Mode=HTTP",
            LAST);

    //打印出來 也可以通過loadrunner log日志設置查看 param
        lr_log_message("-------:%s", lr_eval_string("{aaa}"));
        return 0;
    }

    <300;i++)

    <4;i++){

    <%=session.getattribute("rand")%>

      運行結果

     

    <%

    <300;i++)

    <4;i++){

     

     

     

     

     

     

     

     

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>