51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3070|回复: 1
打印 上一主题 下一主题

[原创] 调试LR脚本JBOSS后台抛出异常

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-10-25 15:22:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
调试到
web_submit_data("zkau;jsessionid=0BD36691DAB670449C0D1340E868E7E3_2",
"Action=http://192.168.3.20:8080/AppFrame/zkau;jsessionid={JSESSIONID2}",
这一步的时候JBOSS后台抛出异常:
15:03:54,046 ERROR [STDERR] javax.ejb.EJBException: java.lang.IllegalArgumentException: id to load is required for loading
15:03:54,046 ERROR [STDERR]     at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
15:03:54,046 ERROR [STDERR]     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)

LR脚本如下:
vuser_init()
{

        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 3
        // {JSESSIONID2} = "0BD36691DAB670449C0D1340E868E7E3"
        // */

        web_reg_save_param("JSESSIONID2",
                "LB/IC=jsessionid=",
                "RB/IC=\"",
                "Ord=1",
                "Search=body",
                "RelFrameId=1",
                LAST);

        web_url("login.zul",
                "URL=http://192.168.3.20:8080/AppFrame/login.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=images/login_03.gif", ENDITEM,
                "Url=images/login_06.gif", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/wnd.js;jsessionid={JSESSIONID2}", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/widget.js;jsessionid={JSESSIONID2}", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/zul.js;jsessionid={JSESSIONID2}", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/vd.js;jsessionid={JSESSIONID2}", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/lang/msgzul*.js;jsessionid={JSESSIONID2}", ENDITEM,
                "Url=zkau/web/zk/img/progress.gif;jsessionid={JSESSIONID2}", ENDITEM,
                LAST);

        lr_think_time(7);

        web_submit_data("zkau;jsessionid=0BD36691DAB670449C0D1340E868E7E3",
                "Action=http://192.168.3.20:8080/AppFrame/zkau;jsessionid={JSESSIONID2}",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.3.20:8080/AppFrame/login.zul",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=dtid", "Value=g3r5", ENDITEM,
                "Name=cmd.0", "Value=onChange", ENDITEM,
                "Name=uuid.0", "Value=z_3r_5", ENDITEM,
                "Name=data.0", "Value=1234", ENDITEM,
                "Name=cmd.1", "Value=onChange", ENDITEM,
                "Name=uuid.1", "Value=z_3r_7", ENDITEM,
                "Name=data.1", "Value=1234", ENDITEM,
                "Name=cmd.2", "Value=onClick", ENDITEM,
                "Name=uuid.2", "Value=z_3r_8", ENDITEM,
                "Name=data.2", "Value=47", ENDITEM,
                "Name=data.2", "Value=19", ENDITEM,
                "Name=data.2", "Value=", ENDITEM,
                LAST);

        web_url("AppStartServlet",
                "URL=http://192.168.3.20:8080/AppFrame/AppStartServlet",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/wnd/wto-l.gif", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/zul/img/wnd/wto-m.gif", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/zul/img/wnd/wto-r.gif", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/wnd.js", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/widget.js", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=images/topframegb.jpg", "Referer=http://192.168.3.20:8080/AppFrame/showHeader.zul", ENDITEM,
                "Url=images/tbbg.gif", "Referer=http://192.168.3.20:8080/AppFrame/showHeader.zul", ENDITEM,
                "Url=images/bt_homeout.gif", "Referer=http://192.168.3.20:8080/AppFrame/showHeader.zul", ENDITEM,
                "Url=images/bt_mout.gif", "Referer=http://192.168.3.20:8080/AppFrame/showHeader.zul", ENDITEM,
                "Url=images/bt_resignout.gif", "Referer=http://192.168.3.20:8080/AppFrame/showHeader.zul", ENDITEM,
                "Url=zkau/web/zk/img/progress.gif", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/zul.js", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/vd.js", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/lang/msgzul*.js", "Referer=http://192.168.3.20:8080/AppFrame/showContent.zul", ENDITEM,
                "Url=images/bt_resignin.gif", "Referer=http://192.168.3.20:8080/AppFrame/showHeader.zul", ENDITEM,
                LAST);

        web_submit_data("zkau;jsessionid=0BD36691DAB670449C0D1340E868E7E3_2",
                "Action=http://192.168.3.20:8080/AppFrame/zkau;jsessionid={JSESSIONID2}",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.3.20:8080/AppFrame/login.zul",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=dtid", "Value=g3r5", ENDITEM,
                "Name=cmd.0", "Value=rmDesktop", ENDITEM,
                EXTRARES,
                "Url=images/menubg.gif", "Referer=http://192.168.3.20:8080/AppFrame/showMenu.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/tree.js", "Referer=http://192.168.3.20:8080/AppFrame/showMenu.zul", ENDITEM,
                "Url=zkau/web/zk/img/progress.gif", "Referer=http://192.168.3.20:8080/AppFrame/showMenu.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/sel.js", "Referer=http://192.168.3.20:8080/AppFrame/showMenu.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/zul.js", "Referer=http://192.168.3.20:8080/AppFrame/showMenu.zul", ENDITEM,
                "Url=zkau/web/_zver7g/_zcbzk.ald/js/zul/lang/msgzul*.js", "Referer=http://192.168.3.20:8080/AppFrame/showMenu.zul", ENDITEM,
                LAST);

        return 0;
}

[ 本帖最后由 ymtest 于 2007-10-25 15:30 编辑 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2007-10-25 15:28:40 | 只看该作者
LR版本:LR9.0
协议:AJAX+Windows Sockets
HTTP/HTML Level:HTML-based script
请各位帮忙看看
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-24 11:48 , Processed in 0.072731 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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