51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 7860|回复: 0
打印 上一主题 下一主题

[原创] web_url("app") highest severity level was "ERROR

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-2-21 09:46:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
运行详细代码:

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          [MsgId: MMSG-27143]
Run-Time Settings file: "C:\Program Files\Mercury\LoadRunner\scripts\20090221test01\\default.cfg"          [MsgId: MMSG-27141]
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          [MsgId: MERR-27791]
Action.c(4): Warning -26000: Empty or no response for URL="http://127.0.0.1:8090/gktg/app"          [MsgId: MWAR-26000]
Action.c(4): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)          [MsgId: MWAR-26200]
Action.c(4): web_url("app") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
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          [MsgId: MERR-27791]
Action.c(4): Warning -26000: Empty or no response for URL="http://127.0.0.1:8090/gktg/app"          [MsgId: MWAR-26000]
Action.c(4): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)          [MsgId: MWAR-26200]
Action.c(4): web_url("app") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
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          [MsgId: MERR-27791]
Action.c(4): Warning -26000: Empty or no response for URL="http://127.0.0.1:8090/gktg/app"          [MsgId: MWAR-26000]
Action.c(4): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s)          [MsgId: MWAR-26200]
Action.c(4): web_url("app") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 3.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.


[ 本帖最后由 广州亚运 于 2009-2-21 09:51 编辑 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-27 10:20 , Processed in 0.074043 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表