|
我们的软件系统是用JAVA开发的,网址一打开服务器就会动态产生一个SESSIONID,之后就通过这个SESSIONID进行数据交互,LoadRunner如何能获取这个ID呢?
下面是我用LoadRunner录制下来的代码,想要获取里面的“JUP1_1178780802892”这个值
如有知情者,请不吝赐教,小女子不甚感激
Action()
{
web_url("index.jsp",
"URL=http://localhost:6666/GUIServer/index.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t48.inf",
"Mode=HTML",
LAST);
web_url("index_login.jsp",
"URL=http://localhost:6666/GUIServer/index_login.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t49.inf",
"Mode=HTML",
LAST);
web_url("com.newgrand.wm.logon.model.logoneditor.html",
"URL=http://localhost:6666/GUIServer/wm/com.newgrand.wm.logon.model.logoneditor.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:6666/GUIServer/servlet/StartJupPage?PAGEURL=/wm/com.newgrand.wm.logon.model.logoneditor.html",
"Snapshot=t50.inf",
"Mode=HTML",
EXTRARES,
"Url=images/logon_bg.jpg", ENDITEM,
"Url=../HTMLBasedGUI/general/buttonback_jup.jpg", ENDITEM,
"Url=../jup/styles/JUP_BLUE.css", ENDITEM,
"Url=../jup/styles/images/blue/Toolbar.gif", ENDITEM,
"Url=../HTMLBasedGUI/general/tanicon_popupinputonly.gif", ENDITEM,
LAST);
web_submit_form("Connector",
"Snapshot=t51.inf",
ITEMDATA,
"Name=SESSIONID", "Value=JUP1_1178780802892", ENDITEM,
"Name=PAGEINITPARAM", "Value=PAGEURL=/wm/com.newgrand.wm.logon.model.logoneditor.html", ENDITEM,
"Name=XML", "Value=i1819003905079000005JUP1_11787808028926079281070859692380com.newgrand.wm.logon.model.LogonEditordummyhttp://localhost:6666/GUIServer/wm/com.newgrand.wm.logon.model.logoneditor.htmlfalsep1300056pageInitParamPAGEURL=/wm/com.newgrand.wm.logon.model.logoneditor.htmlp1500003pagePixelHeight708p1400004pagePixelWidth1014x08inittini", ENDITEM,
"Name=STAMP", "Value=INIT", ENDITEM,
LAST);
return 0;
}
[ 本帖最后由 流星贝儿 于 2007-5-10 16:33 编辑 ] |
|