|
在性能测试脚本编译过程中,录制过程能够正常登陆系统进行操作,但是在replay过程中,不能正常登陆,不知是什么导致的,下面是录制的脚本,请高手指点!!
web_url("sales",
"URL=http://10.*.1.*:7201/sales",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://10.*.1.*:9060/cas/css/cas.css", "Referer=http://10.*.1.*:9060/cas/login?service=http%3A%2F%2F10.*.1.*%3A7201%2Fsales%2Fj_spring_cas_security_check.jsp&appname=SALES&appdesc=%E8%90%A5%E9%94%80%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F", ENDITEM,
"Url=http://10.*.1.*:9060/cas/css/ie_cas.css", "Referer=http://10.*.1.*:9060/cas/login?service=http%3A%2F%2F10.*.1.*%3A7201%2Fsales%2Fj_spring_cas_security_check.jsp&appname=SALES&appdesc=%E8%90%A5%E9%94%80%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F", ENDITEM,
"Url=http://10.*.1.*:9060/cas/images/ulic-um-logo.png", "Referer=http://10.*.1.*:9060/cas/login?service=http%3A%2F%2F10.*.1.*%3A7201%2Fsales%2Fj_spring_cas_security_check.jsp&appname=SALES&appdesc=%E8%90%A5%E9%94%80%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F", ENDITEM,
LAST);
web_add_cookie("67=1; DOMAIN=10.*.1.*");
web_submit_data("login",
"Action=http://10.*.1.*:9060/cas/login?service=http%3A%2F%2F10.*.1.*%3A7201%2Fsales%2Fj_spring_cas_security_check.jsp&appname=SALES&appdesc=%E8%90%A5%E9%94%80%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.*.1.*:9060/cas/login?service=http%3A%2F%2F10.*.1.*%3A7201%2Fsales%2Fj_spring_cas_security_check.jsp&appname=SALES&appdesc=%E8%90%A5%E9%94%80%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=xinxin001", ENDITEM,
"Name=password", "Value=Passwd123", ENDITEM,
"Name=lt", "Value=_cD6B137F9-D88E-64A4-A2BD-0BAB3A82A7FD_k68AF247C-3DFD-3954-E88B-1C3C955C22DD", ENDITEM,
"Name=_eventId", "Value=submit", ENDITEM,
"Name=submit", "Value=登录", ENDITEM,
EXTRARES,
"Url=http://10.*.1.*:7201/sales/images/bottom.gif", "Referer=http://10.*.1.*:7201/sales/footer.jsp", ENDITEM,
"Url=http://10.*.1.*:7201/sales/images/top2.jpg", "Referer=http://10.*.1.*:7201/sales/top.jsp", ENDITEM,
"Url=http://10.*.1.*:7201/sales/images/top1.jpg", "Referer=http://10.*.1.*:7201/sales/top.jsp", ENDITEM,
"Url=http://10.*.1.*:7201/sales/images/tab4c.jpg", "Referer=http://10.*.1.*:7201/sales/content.jsp", ENDITEM,
LAST);
web_url("welcome.jsp",
"URL=http://10.*.1.*:7201/sales/welcome.jsp",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.*.1.*:7201/sales/content.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
LAST); |
|