刚学的LR,遇到问题求助,关于sessionID
Action(){
// web_reg_save_param("ps",
// "LB=PHPSESSID=",
// "RB=>",
// "ORD=1",
// "Search=Body",
// LAST);
web_add_cookie("AHSESS=t8o4q3jmlnnf7d23rdl1p0um86; DOMAIN= ");
web_add_cookie("Hm_lvt_5b0202817a57833ac94fb6820cba8b96=1465888520; DOMAIN= ");
web_add_cookie("PHPSESSID=9sim21hsrgf9b1s85ib5qck221; DOMAIN= ");//这条是我自己加的
web_url("admin",
"URL= ",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../Public/css/global.css", "Referer= ", ENDITEM,
"Url=../Public/images/from_nameico.png", "Referer= ", ENDITEM,
"Url=../Public/images/from_passwordico.png", "Referer= ", ENDITEM,
"Url=../Public/js/layer/skin/layer.css", "Referer= ", ENDITEM,
"Url=../Public/js/layer/skin/default/icon.png", "Referer= ", ENDITEM,
LAST);
lr_think_time(9);
web_submit_data("ajaxLogin.html",
"Action= ",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer= ",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=test", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
LAST); LR录制脚本只能录下AHSESS和Hm_lvt_5b0202817a57833ac94fb6820cba8b96,第三个是我自己加的,有什么办法录到第三个么
另外我尝试手动关联,但是手动关联后就报错
Action.c(17): Error -26377: No match found for the requested parameter "ps". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(17): web_url("admin") highest severity level was "ERROR", 73959 body bytes, 3627 header bytes 忘记说了,第三条PHPSESSID如果没有加的话是无法登陆的,所以我必须手动加,但是这个会在一段时间后失效(默认是关闭浏览器后失效) 是不是因为你设置的是会话 Cookie?VuGen 不保存在录制会话期间所使用的会话 Cookie。而是在录制时缓存会话 Cookie,然 后在停止录制时丢弃它们。希望能帮到你了。:) wincky_yanzi 发表于 2016-6-17 09:31
是不是因为你设置的是会话 Cookie?VuGen 不保存在录制会话期间所使用的会话 Cookie。而是在录制时缓存会话 ...
谢谢你的回复,但我还是不太懂。。
页:
[1]