vickiren 发表于 2009-8-19 17:53:09

紧急 等待 ZK框架下的性能测试

那个人用lr 测试过ZK框架的系统

我现在的问题是,我关联的很多部分 但是还是没有办法回放成功


下面我贴两个一样过程脚本,就是登录系统的脚本,给大家看看,帮我分析下


Action()
{

        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 6
        // {CSRule_1_UID2} = "AF28F5D191D053014AD452E8551B3DF5"
        // */

        web_reg_save_param("CSRule_1_UID2",
                "LB=jsessionid=",
                "RB=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);

        web_url("login.zul",
                "URL=http://192.168.1.15:8080/cablegis/login.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/button/z-btn-trendy-corner.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-x.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-y.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-ctr.gif", ENDITEM,
                "Url=zkau/web/zul/img/grid/text-bg.gif", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-0/js/zul/wnd2.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-2/js/zul/btn.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/img/spacer.gif;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/zk/img/progress2.gif", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-1/js/zul/vd.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-3/js/zul/zul.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-4/js/zul/lang/msgzul*.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                LAST);

        lr_start_transaction("login");

        lr_think_time(7);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5",
                Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=g3ql&cmd.0=onFocus&uuid.0=z_3q_71",                 "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5_2",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=g3ql&cmd.0=onChange&uuid.0=z_3q_71&data.0=admin&data.0=false&data.0=0&cmd.1=onFocus&uuid.1=z_3q_c1",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5_3",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=g3ql&cmd.0=onChange&uuid.0=z_3q_c1&data.0=123&data.0=false&data.0=19&cmd.1=onClick&uuid.1=z_3q_v1&data.1=39&data.1=13&data.1=",                 "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_url("index.zul",
                "URL=http://192.168.1.15:8080/cablegis/index.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/button/tb-btn-arrow.gif", ENDITEM,
                "Url=zkau/web/zul/img/menu2/pp-bg.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/tb-bg.png", ENDITEM,
                "Url=img/comm/DateReportForm.gif", ENDITEM,
                "Url=img/themeZk/tab-strip-bg.png", ENDITEM,
                "Url=zkau/web/zul/img/button/combobtn.gif", ENDITEM,
                "Url=img/themeZk/splt-h.png", ENDITEM,
                "Url=img/themeZk/splt-v.png", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-0/js/zul/wnd2.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-1/js/zkex/zul/borderlayout.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/_zcbzk.ald-3/js/dojoz/dojo.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-4/js/zul/menu2.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-6/js/zul/cb.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-2/js/zul/widget.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-5/js/zul/grid.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-7/js/zul/btn.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-8/js/zkmax/zul/portallayout.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-9/js/zul/tab2.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/_zcbzk.ald-11/js/ext/dojo/dojo.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-10/js/zul/zul.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-12/js/zul/vd.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-13/js/zul/lang/msgzul*.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/FisheyeList.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/__package__.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/xml/Parse.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Widget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/lang/declare.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/ns.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Manager.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/a11y.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/uri/__package__.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Parse.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/DomWidget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/HtmlWidget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/html/util.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/lfx/toggle.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/html/selection.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/templates/FisheyeList.css", ENDITEM,
                "Url=img/shortcut/logout.bmp", ENDITEM,
                "Url=img/themeZk/wtp-m.png", ENDITEM,
                "Url=img/themeZk/wtp-r.png", ENDITEM,
                "Url=img/themeZk/panel-tb.png", ENDITEM,
                "Url=img/themeZk/tool-btn.gif", ENDITEM,
                LAST);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5_4",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=g3ql&cmd.0=rmDesktop",                 "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t6.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        lr_end_transaction("login",LR_AUTO);

        return 0;
}

vickiren 发表于 2009-8-19 17:56:30

这个是另一个脚本

Action()
{

        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 6
        // {CSRule_1_UID2} = "FB063E38FCC2DE5775D9912BFA1EEF88"
        // */

        web_reg_save_param("CSRule_1_UID2",
                "LB=jsessionid=",
                "RB=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);

        web_url("login.zul",
                "URL=http://192.168.1.15:8080/cablegis/login.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/button/z-btn-trendy-corner.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-x.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-y.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-ctr.gif", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-0/js/zul/wnd2.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-1/js/zul/vd.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-2/js/zul/btn.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/img/spacer.gif;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/zk/img/progress2.gif", ENDITEM,
                "Url=zkau/web/zul/img/grid/text-bg.gif", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-3/js/zul/zul.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-4/js/zul/lang/msgzul*.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                LAST);

        lr_start_transaction("login");

        lr_think_time(10);

        web_submit_data("zkau;jsessionid=FB063E38FCC2DE5775D9912BFA1EEF88",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=gp2h&cmd.0=onFocus&uuid.0=z_p2_71",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("zkau;jsessionid=FB063E38FCC2DE5775D9912BFA1EEF88_2",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=gp2h&cmd.0=onChange&uuid.0=z_p2_71&data.0=admin&data.0=false&data.0=0&cmd.1=onFocus&uuid.1=z_p2_c1",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("zkau;jsessionid=FB063E38FCC2DE5775D9912BFA1EEF88_3",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=gp2h&cmd.0=onChange&uuid.0=z_p2_c1&data.0=123&data.0=false&data.0=11&cmd.1=onClick&uuid.1=z_p2_v1&data.1=28&data.1=11&data.1=",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_url("index.zul",
                "URL=http://192.168.1.15:8080/cablegis/index.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/menu2/pp-bg.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/tb-bg.png", ENDITEM,
                "Url=zkau/web/zul/img/button/tb-btn-arrow.gif", ENDITEM,
                "Url=img/comm/DateReportForm.gif", ENDITEM,
                "Url=img/themeZk/tab-strip-bg.png", ENDITEM,
                "Url=zkau/web/zul/img/button/combobtn.gif", ENDITEM,
                "Url=img/themeZk/splt-v.png", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-0/js/zul/wnd2.js", ENDITEM,
                "Url=img/themeZk/splt-h.png", ENDITEM,
                "Url=zkau/web/_zv0.4.1/_zcbzk.ald-3/js/dojoz/dojo.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-4/js/zul/menu2.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-1/js/zkex/zul/borderlayout.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-5/js/zul/grid.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-6/js/zul/cb.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-7/js/zul/btn.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-9/js/zul/tab2.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-8/js/zkmax/zul/portallayout.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-2/js/zul/widget.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-10/js/zul/zul.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/_zcbzk.ald-11/js/ext/dojo/dojo.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-12/js/zul/vd.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-13/js/zul/lang/msgzul*.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/FisheyeList.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/__package__.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/xml/Parse.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Widget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/lang/declare.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/ns.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Manager.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/a11y.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/uri/__package__.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Parse.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/DomWidget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/HtmlWidget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/html/util.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/lfx/toggle.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/html/selection.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/templates/images/tab_close.gif", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/templates/FisheyeList.css", ENDITEM,
                "Url=img/shortcut/logout.bmp", ENDITEM,
                "Url=img/themeZk/wtp-m.png", ENDITEM,
                "Url=img/themeZk/wtp-r.png", ENDITEM,
                "Url=img/themeZk/panel-tb.png", ENDITEM,
                "Url=img/themeZk/tool-btn.gif", ENDITEM,
                LAST);

        web_submit_data("zkau;jsessionid=FB063E38FCC2DE5775D9912BFA1EEF88_4",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid=gp2h&cmd.0=rmDesktop",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t6.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        lr_end_transaction("login",LR_AUTO);

        return 0;
}

vickiren 发表于 2009-8-19 18:03:03

根据两个脚本,我关联了UUID和 DTID之后 运行脚本还是不成功

如下 :

Action()
{

        web_set_max_html_param_len("1024");

        /* Registering parameter(s) from source task id 6
        // {CSRule_1_UID2} = "AF28F5D191D053014AD452E8551B3DF5"
        // */

        web_reg_save_param("CSRule_1_UID2",
                "LB=jsessionid=",
                "RB=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);
web_reg_save_param("dtid","LB=z.dtid=\"","RB=\" style=",
                                   "Ord=1",
                           "Search=Body",
                           "RelFrameId=1",
                LAST);

web_reg_save_param("uuid","LB=\"z_","RB=_0\"",
                                   "Ord=1",
                           "Search=Body",
                           "RelFrameId=1",
                LAST);
        web_url("login.zul",
                "URL=http://192.168.1.15:8080/cablegis/login.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/button/z-btn-trendy-corner.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-x.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-y.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/z-btn-trendy-ctr.gif", ENDITEM,
                "Url=zkau/web/zul/img/grid/text-bg.gif", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-0/js/zul/wnd2.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-2/js/zul/btn.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/img/spacer.gif;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/zk/img/progress2.gif", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-1/js/zul/vd.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-3/js/zul/zul.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-4/js/zul/lang/msgzul*.js;jsessionid={CSRule_1_UID2}", ENDITEM,
                LAST);

        lr_start_transaction("login");

        lr_think_time(7);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid={dtid}&cmd.0=onFocus&uuid.0=z_{uuid}_71",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t2.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5_2",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid={dtid}&cmd.0=onChange&uuid.0=z_{uuid}_71&data.0=admin&data.0=false&data.0=0&cmd.1=onFocus&uuid.1=z_{uuid}_c1",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5_3",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid={dtid}&cmd.0=onChange&uuid.0=z_{uuid}_c1&data.0=123&data.0=false&data.0=19&cmd.1=onClick&uuid.1=z_3q_v1&data.1=39&data.1=13&data.1=",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        web_url("index.zul",
                "URL=http://192.168.1.15:8080/cablegis/index.zul",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=zkau/web/zul/img/button/tb-btn-arrow.gif", ENDITEM,
                "Url=zkau/web/zul/img/menu2/pp-bg.gif", ENDITEM,
                "Url=zkau/web/zul/img/button/tb-bg.png", ENDITEM,
                "Url=img/comm/DateReportForm.gif", ENDITEM,
                "Url=img/themeZk/tab-strip-bg.png", ENDITEM,
                "Url=zkau/web/zul/img/button/combobtn.gif", ENDITEM,
                "Url=img/themeZk/splt-h.png", ENDITEM,
                "Url=img/themeZk/splt-v.png", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-0/js/zul/wnd2.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-1/js/zkex/zul/borderlayout.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/_zcbzk.ald-3/js/dojoz/dojo.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-4/js/zul/menu2.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-6/js/zul/cb.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-2/js/zul/widget.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-5/js/zul/grid.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-7/js/zul/btn.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-8/js/zkmax/zul/portallayout.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-9/js/zul/tab2.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/_zcbzk.ald-11/js/ext/dojo/dojo.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-10/js/zul/zul.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-12/js/zul/vd.js", ENDITEM,
                "Url=zkau/web/_zv08120909/_zcbzk.ald-13/js/zul/lang/msgzul*.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/FisheyeList.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/__package__.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/xml/Parse.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Widget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/lang/declare.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/ns.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Manager.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/a11y.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/uri/__package__.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/Parse.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/DomWidget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/HtmlWidget.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/html/util.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/lfx/toggle.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/html/selection.js", ENDITEM,
                "Url=zkau/web/_zv0.4.1/js/ext/dojo/src/widget/templates/FisheyeList.css", ENDITEM,
                "Url=img/shortcut/logout.bmp", ENDITEM,
                "Url=img/themeZk/wtp-m.png", ENDITEM,
                "Url=img/themeZk/wtp-r.png", ENDITEM,
                "Url=img/themeZk/panel-tb.png", ENDITEM,
                "Url=img/themeZk/tool-btn.gif", ENDITEM,
                LAST);

        web_submit_data("zkau;jsessionid=AF28F5D191D053014AD452E8551B3DF5_4",
                "Action=http://192.168.1.15:8080/cablegis/zkau;jsessionid={CSRule_1_UID2}?dtid={dtid}&cmd.0=rmDesktop",
                "Method=POST",
                "RecContentType=text/xml",
                "Referer=http://192.168.1.15:8080/cablegis/login.zul",
                "Snapshot=t6.inf",
                "Mode=HTML",
                ITEMDATA,
                LAST);

        lr_end_transaction("login",LR_AUTO);

        return 0;
}

vickiren 发表于 2009-8-19 18:10:55

现在的问题是,我找不到那个 data 后面的数据

dtid=gp2h&cmd.0=onChange&uuid.0=z_p2_c1&data.0=123&data.0=false&data.0=11&cmd.1=onClick&uuid.1=z_p2_v1&data.1=28&data.1=11&data.1=",

我查找完了所有的response
都找不到

vickiren 发表于 2009-8-19 23:02:24

没有人吗?

紧急呼救下,知道的还是给个 帮忙的救赎 方式哎!

ctf_htj 发表于 2009-11-18 18:14:57

最近也在研究zk测试问题,不知您搞定了没?我这倒是可以生成固定id了,但是lR测试时,borderlayout捕获不到。

linhd030 发表于 2012-11-13 14:28:19

老帖,有人搞定问题没?

灵犀 发表于 2012-12-21 16:54:58

最近也在用lr测试zk框架的网页,很头痛,也是测试登陆就碰到了问题,录制登陆脚本,参数化用户和密码,回放都没有报错,发现用户根本没有登陆到服务器,有懂得人指导一下?

C组十三 发表于 2013-5-25 21:17:13

使用LR11+IE9,HTTP协议,URL模式录制,做好关联Session与ID(主ID与控件ID),基本就能搞定。

zhengaiqi 发表于 2013-6-7 11:42:16

关注中。。

dhpls 发表于 2013-10-14 16:03:59

我也遇到zk框架下的性能测试问题 我想用jmeter来测试性能。 用Bodboy来录制登录脚本,play的时候其实没有登录成功。

dhpls 发表于 2013-11-27 17:53:51

zk 官网有ZK JMeter 插件,也有固定ID的代码和配置方法。
使用ZK HTTP Proxy Server,用360浏览器录制。

http://blog.zkoss.org/index.php/2013/08/06/zk-jmeter-plugin/
页: [1]
查看完整版本: 紧急 等待 ZK框架下的性能测试