希望各位高手帮帮忙吧,关于jsessionid的问题。上传了脚本了不甚感激
原始代码:web_url("vams",
"URL=http://127.0.0.1:8888/vams/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=images/back3.gif", ENDITEM,
"Url=images/back2.gif", ENDITEM,
"Url=images/back4.gif", ENDITEM,
LAST);
lr_think_time(9);
web_submit_form("login.faces;jsessionid=E7AE2EEAC99241D3498EC5DD063FC687",
"Snapshot=t2.inf",
ITEMDATA,
"Name=login:userName", "Value=admin", ENDITEM,
"Name=login:password", "Value=admin123", ENDITEM,
"NamePfx=login:j_id_jsp_", "Value=0", ENDITEM,
"NamePfx=login:j_id_jsp_", "Value=0", ENDITEM,
自动关联后的代码
web_reg_save_param("WCSParam_Diff1",
"LB=jsessionid=",
"RB=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
"IgnoreRedirections=Yes",
LAST);
web_url("vams",
"URL=http://127.0.0.1:8888/vams/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=images/back3.gif", ENDITEM,
"URL=images/back2.gif", ENDITEM,
"URL=images/back4.gif", ENDITEM,
LAST);
lr_think_time(9);
web_submit_form("login.faces;jsessionid={WCSParam_Diff1}",
"Snapshot=t2.inf",
ITEMDATA,
有哪位高手 帮忙看看到底问题出在哪里了,脚本回放时一直都是失败,并且提示的是27979 错误,找不到表单
[ 本帖最后由 xiaorong523 于 2009-12-25 13:45 编辑 ] web_reg_save_param("WCSParam_Diff1",
"LB=login.faces;jsessionid=",
"RB=\"",
// "Ord=1",
"RelFrameId=1",
"Search=Body",
// "IgnoreRedirections=Yes",
LAST);
回复 2# 的帖子
谢谢你的回答。但是我注视了这两行代码后,还是运行不过去啊 ? 把完整的代码打个包放上来回复 4# 的帖子
已经上传脚本了 从这个脚本没看出什么问题,你把录制的脚本保存为lr格式的文件打包放上来看看
页:
[1]