|
如题,我用自动关联录制ZK写项目录制部分脚本如下:
跟ajax录制的脚本大同小异,web_url("zk.wcs;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267", 不知道这个里面的jsessionid干什么用的。
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 8
// {JSESSIONID2} = "2DF691D60A8521F8ABF4CB15BCDDA267"
// */
web_reg_save_param("JSESSIONID2",
"LB/IC=jsessionid=",
"RB/IC=\"",
"Ord=1",
"Search=body",
"RelFrameId=1",
LAST);
web_url("index.zul",
"URL=http://localhost:8888/newsips/term/index.zul",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("zk.wcs;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267", //这个jseesionid 不知道是写死的,我用{JSESSIONID2} 代替也没成功 不知道这个jsessionid是什么干什么用的,也做过参数化,没有成功。 "URL=http://localhost:8888/newsips/zkau/web/d1e98f25/zul/css/zk.wcs;jsessionid={JSESSIONID2}",
"Resource=1",
"RecContentType=text/css",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t2.inf",
LAST);
web_url("zk.wpd;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267",
"URL=http://localhost:8888/newsips/zkau/web/d1e98f25/js/zk.wpd;jsessionid={JSESSIONID2}",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t3.inf",
LAST);
web_url("zul.lang.wpd;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267",
"URL=http://localhost:8888/newsips/zkau/web/d1e98f25/js/zul.lang.wpd;jsessionid={JSESSIONID2}",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t4.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("zul.wnd.wpd;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267",
"URL=http://localhost:8888/newsips/zkau/web/_zv2010090312/js/zul.wnd.wpd;jsessionid={JSESSIONID2}",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t5.inf",
LAST);
web_url("zul.inp.wpd;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267",
"URL=http://localhost:8888/newsips/zkau/web/_zv2010090312/js/zul.inp.wpd;jsessionid={JSESSIONID2}",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t6.inf",
LAST);
web_url("zhtml.wpd;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267",
"URL=http://localhost:8888/newsips/zkau/web/_zv2010090312/js/zhtml.wpd;jsessionid={JSESSIONID2}",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t7.inf",
LAST);
。。。。。。
lr_think_time(61);
//下边是登陆时候的脚本
web_submit_data("zkau;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267",
"Action=http://localhost:8888/newsips/zkau;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267?dtid=zd_v801&cmd_0=onChange&uuid_0=z_v80_q&data_0=%7B%22value%22%3A%22kxg%22%2C%22start%22%3A3%7D&cmd_1=onOK&uuid_1=z_v80_3&data_1=%7B%22reference%22%3A%22z_v80_q%22%2C%22keyCode%22%3A13%2C%22which%22%3A13%7D",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t16.inf",
"Mode=HTTP",
ITEMDATA,
LAST);
web_submit_data("zkau;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267_2",
"Action=http://localhost:8888/newsips/zkau;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267?dtid=zd_v801&cmd_0=onOK&uuid_0=z_v80_3&data_0=%7B%22reference%22%3A%22z_v80_q%22%2C%22keyCode%22%3A13%2C%22which%22%3A13%7D&cmd_1=onOK&uuid_1=z_v80_3&data_1=%7B%22reference%22%3A%22z_v80_q%22%2C%22keyCode%22%3A13%2C%22which%22%3A13%7D",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t17.inf",
"Mode=HTTP",
ITEMDATA,
LAST);
lr_think_time(4);
web_submit_data("zkau;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267_3",
"Action=http://localhost:8888/newsips/zkau;jsessionid=2DF691D60A8521F8ABF4CB15BCDDA267?dtid=zd_v801&cmd_0=onClick&uuid_0=z_v80_v&data_0=%7B%22pageX%22%3A534%2C%22pageY%22%3A423%2C%22which%22%3A1%2C%22x%22%3A15%2C%22y%22%3A6%7D",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://localhost:8888/newsips/term/index.zul",
"Snapshot=t18.inf",
"Mode=HTTP",
ITEMDATA,
LAST);
}
回放时不成功,困扰我好几天了,网上也是各种搜索,不知道那位大侠对ZK项目做过压力测试,希望能得到您帮助,小弟不胜感激,在线等候您的回复。。。 |
|