webIM 登陆测试, 录制脚本如下, 验证回放时候报错, 求解答
录制一个WebIM登陆, 想要测同时100人登陆的压力情况.录制结果如下.回放脚本报错, Action.c(38) -26627 HTTP status-code=404 (not found) for URL=http://192.168.1.254:5280/http-bind
查看脚本, 也没有登录的信息, 看样子, 是录制了下面的 IM在线的窗口了.
请问: 1, WebIM怎样录制登陆
2, 下面的代码动态值应该怎样修改.
万分感谢
-----------------------------------
Action()
{
web_url("live.gif",
"URL=http://www.g-fox.cn/live.gif?channelid=firefox.com.cn&fxversion=19.0.2&ceversion=2013.3&ver=4&actcode4=%7B150ef40e-d207-4018-92c2-6f6279632bde%7D&uk=%7B8d7104e3-15f8-4de6-866f-935897d96e0f%7D&dk=V2dPSPLthep6NJ7zDhMjWdJjOvbhXCwLwK2zAlLzc99r/QRwYmXitw==&prevsessionlen=1&locale=zh-CN&moexts=cehomepage,cemigration,coba,cpmanager,livemargins,quicklaunch,share_all_cn,tabimprovelite",
"Resource=1",
"RecContentType=image/gif",
"Referer=",
"Snapshot=t4.inf",
LAST);
lr_think_time(8);
web_custom_request("http-bind",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873268' xmlns='http://jabber.org/protocol/httpbind' to='192.168.1.254' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>",
LAST);
web_custom_request("http-bind_2",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t6.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873269' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/></body>",
LAST);
web_custom_request("http-bind_3",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873270' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9IjEwMDAwIixyZWFsbT0iIixub25jZT0iMzA0OTIwNTAxMSIsY25vbmNlPSI5ZWM1M2NkMDY2ZDEzZDJkMjYzN2ZjYTc2N2I1NWJiNCIsbmM9IjAwMDAwMDAxIixxb3A9ImF1dGgiLGRpZ2VzdC11cmk9InhtcHAvMTkyLjE2OC4xLjI1NCIscmVzcG9uc2U9IjRkOWYwNzQxNWUyNzQwMDhkZDNkNWY4ZDg0NzExZGNiIixjaGFyc2V0PSJ1dGYtOCI=</response></body>",
LAST);
web_custom_request("http-bind_4",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t8.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873271' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/></body>",
LAST);
web_custom_request("http-bind_5",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t9.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873272' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054' to='192.168.1.254' xml:lang='en' xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/>",
LAST);
web_custom_request("http-bind_6",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t10.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873273' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><iq type='set' id='_bind_auth_2' xmlns='jabber:client'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>web_client</resource></bind></iq></body>",
LAST);
web_custom_request("http-bind_7",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t11.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873274' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><iq type='set' id='_session_auth_2' xmlns='jabber:client'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq></body>",
LAST);
web_custom_request("http-bind_8",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t12.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873275' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'><iq type='get' xmlns='jabber:client'><query xmlns='jabber:iq:roster'/></iq></body>",
EXTRARES,
"Url=http://192.168.1.254:8080/web_im/img/head.jpg", "Referer=http://192.168.1.254:8080/web_im/index.html", ENDITEM,
"Url=http://192.168.1.254:8080/web_im/img/webim_minwin_bg.png", "Referer=http://192.168.1.254:8080/web_im/css/main.css", ENDITEM,
LAST);
web_custom_request("http-bind_9",
"URL=http://192.168.1.254:5280/http-bind",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.254:8080/web_im/index.html",
"Snapshot=t13.inf",
"Mode=HTML",
"EncType=text/plain; charset=UTF-8",
"Body=<body rid='1647873276' xmlns='http://jabber.org/protocol/httpbind' sid='4a46034ea82e57474edd6cda3347dbcab4f6c054'/>",
LAST);
return 0;
} 做一下关联先~~ 回复 2# ffwithvv
谢谢你的回复. 可以具体一些吗? 刚入门. 万分感谢 404是URL不存在啊 404是URL不存在啊
页:
[1]