广州亚运 发表于 2009-2-21 09:46:33

web_url("app") highest severity level was "ERROR

运行详细代码:

Action()
{

        web_url("app",
                "URL=http://127.0.0.1:8090/gktg/app",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=assets/images/ERPIMAGES/btn_login.png", ENDITEM,
                "Url=assets/images/ERPIMAGES/btn_reset.png", ENDITEM,
                LAST);

        lr_start_transaction("login");

        lr_think_time(26);

        web_submit_form("app;jsessionid=BDE0E5E74F6DBC78CE7F335DED0D1D38",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=username", "Value={username}", ENDITEM,
                "Name=password", "Value={password}", ENDITEM,
                "Name=submit2", "Value=", ENDITEM,
                EXTRARES,
                "Url=assets/images/ERPIMAGES/top_tleft.png", "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle", ENDITEM,
                "Url=assets/images/ERPIMAGES/top_left.png", "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle", ENDITEM,
                "Url=assets/images/ERPIMAGES/top_tright.png", "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle", ENDITEM,
                "Url=assets/images/ERPIMAGES/top_tmid.png", "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle", ENDITEM,
                "Url=assets/images/ERPIMAGES/top_mid.png", "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle", ENDITEM,
                "Url=assets/images/ERPIMAGES/top_right.png", "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle", ENDITEM,
                LAST);

        lr_end_transaction("login",LR_AUTO);

        lr_think_time(4);

        web_custom_request("app_2",
                "URL=http://127.0.0.1:8090/gktg/app?service=ajax/MainTitle/CLOSESEESION",
                "Method=POST",
                "Resource=0",
                "Referer=http://127.0.0.1:8090/gktg/app?service=page/MainTitle",
                "Mode=HTML",
                "EncType=",
                LAST);

        return 0;
}

编译时:No relevant changes detected

运行时!
出错信息:

Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.0.0 for WINXP; WebReplay82 build 5727       
Run-Time Settings file: "C:\Program Files\Mercury\LoadRunner\scripts\20090221test01\\default.cfg"       
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Error -27791: Server "192.168.0.19" has shut down the connection prematurely       
Action.c(4): Warning -26000: Empty or no response for URL="http://127.0.0.1:8090/gktg/app"       
Action.c(4): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)       
Action.c(4): web_url("app") highest severity level was "ERROR", 0 body bytes, 0 header bytes       
Ending action Action.
Ending iteration 1.
Starting iteration 2.
Starting action Action.
Action.c(4): Error -27791: Server "192.168.0.19" has shut down the connection prematurely       
Action.c(4): Warning -26000: Empty or no response for URL="http://127.0.0.1:8090/gktg/app"       
Action.c(4): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)       
Action.c(4): web_url("app") highest severity level was "ERROR", 0 body bytes, 0 header bytes       
Ending action Action.
Ending iteration 2.
Starting iteration 3.
Starting action Action.
Action.c(4): Error -27791: Server "192.168.0.19" has shut down the connection prematurely       
Action.c(4): Warning -26000: Empty or no response for URL="http://127.0.0.1:8090/gktg/app"       
Action.c(4): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)       
Action.c(4): web_url("app") highest severity level was "ERROR", 0 body bytes, 0 header bytes       
Ending action Action.
Ending iteration 3.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

[ 本帖最后由 广州亚运 于 2009-2-21 09:51 编辑 ]
页: [1]
查看完整版本: web_url("app") highest severity level was "ERROR