TA的每日心情 | 无聊 2017-4-10 01:47 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
3#
楼主 |
发表于 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;
} |
|