|
今天使用LR录制一个用户登陆,退出的东西,录制过程正常,回放就过不去。如果又同仁遇到过这个问题,请给点意见。
录制选用协议:web(http/html);
脚本如下:
web_url("mtsapp",
"URL=http://bsu.bic.com.cn:8443/mtsapp/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=keyboard/Keyboard.htc", "Referer=", ENDITEM,
"Url=resource/images/login_03.gif", ENDITEM,
"Url=resource/js/hsmcli.jar", "Referer=", ENDITEM,
LAST);
web_submit_data("login.do",
"Action=http://bsu.bic.com.cn:8443/mtsapp/login.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://bsu.bic.com.cn:8443/mtsapp/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=accountId", "Value=430000021", ENDITEM,
"Name=pwd", "Value=277d321d9d9fa81bac931ad2151bca8a6b0b115e79f83d3aca103317478572a8383dc3933c98fb3b12d7c3220661c8198040a6ae36389074d16af2bca0985236af98efeeae3ec44a2c313d9b454f2b53db298a97b3a43727d4f85d5b7ad7dd2f909d4a1cf99afd6c56779b75d3487106f345974d31faa7ad8f24d2e561c98ea7", ENDITEM,
"Name=addtionCode", "Value=", ENDITEM,
"Name=certLicence", "Value=", ENDITEM,
"Name=type", "Value=I", ENDITEM,
"Name=channelId", "Value=1", ENDITEM,
LAST);
web_url("index.jsp",
"URL=http://bsu.bic.com.cn:8443/mtsapp/index.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=resource/images/banner_bg.gif", "Referer=http://bsu.bic.com.cn:8443/mtsapp/indexBody.jsp", ENDITEM,
"Url=resource/images/banner_bg1.gif", "Referer=http://bsu.bic.com.cn:8443/mtsapp/indexBody.jsp", ENDITEM,
"Url=resource/images/sell.gif", "Referer=http://bsu.bic.com.cn:8443/mtsapp/indexBody.jsp", ENDITEM,
"Url=resource/images/buy.gif", "Referer=http://bsu.bic.com.cn:8443/mtsapp/indexBody.jsp", ENDITEM,
LAST);
web_reg_save_param("FMJuserid",
"LB=sessionId=", "RB=&product=",
LAST);
web_url("bluestream",
"URL=http://lqch.lq.com.cn:8888/bluestream?sessionId={FMJuserid}&product=2&clientProtocol=HTTP_JS®ister=topic,all|cctxv,1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://bsu.bic.com.cn:8443/mtsapp/index.jsp",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_custom_request("sys.do",
"URL=http://bsu.bic.com.cn:8443/mtsapp/sys.do",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://bsu.bic.com.cn:8443/mtsapp/indexBody.jsp",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=",
LAST);
该段代码是完成用户登陆的过程,其中回放到红色部分就执行不过去。我反复看了,红色不部分的内容是另外一台服务器向客户端自动更新内部的部分。当回访到该处的时候,系统找不到这个web_url。不能download这部分内容。 |
|