51Testing软件测试论坛
标题:
录制QQ,MSN的脚本能用一般用什么协议
[打印本页]
作者:
investmark
时间:
2005-6-13 10:27
标题:
录制QQ,MSN的脚本能用一般用什么协议
问一下各位手,录制QQ,MSN的性能测试脚本一般用什么协议,我使用了Windows Sockers 协议录制登录功能,但是回放时会出现“Action.c(60): Error : socket0 - Software caused connection abort. Error code : 10053.”这样的错误,不知道是怎么回事了。请高手指点一下。
作者:
kernzhang
时间:
2005-6-13 11:33
MSN是典型的web/Winsock协议进行录制的!
作者:
cookie_msn
时间:
2005-6-13 15:59
可以试试录制MSN脚本,这个问题好,帮你顶起来.
作者:
investmark
时间:
2005-6-13 16:47
我用Web/Winsocket Dual Protocol 录制msn的登录:代码如下:
vuser_init()
{
web_url("login2.srf",
"URL=https://loginnet.passport.com/login2.srf",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
EXTRARES,
"Url=http://c.msn.com/c.gif?did=1&t=6N*xTJzprGbAKHoN51oGyBg8yAiaqJ7VtEBI267HADW59vjdLb8ZhaNS8A8y5zkMrNK6ePOjSVdEIul!lXavjEFk0C3FSxtPd8dmRD8oGfU7bOPMSHSOF4l3sae2GF9SMT&p=6ZonIFizpGGkZxCwg0z89R8tgiBKc!RlDPXnQxy7ivw1c!QWZtPRS3IFpgdPkbpMYJdNl6ePcVuTsKVCP0uLMPwMwLDu6ET0u5gUkAoBW5tdi9pn9c2i8HFAHRcyIhYUS6rYSoqsyuOF2xlX4KqhmJ5FyuvEK4ccsGVz5U9UUGucZ0CRbGygEDRwC3zjMa5QitIyAakl9GXDY$", "Referer=", ENDITEM,
LAST);
web_custom_request("MsgrConfig.asmx",
"URL=http://config.messenger.msn.com/Config/MsgrConfig.asmx",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?> <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><GetClientConfig xmlns='http://www.msn.com/webservices/Messenger/Client'> <clientinfo> <Country>CN</Country> <CLCID>0804</CLCID> <
LCID>0804</PLCID> <GeoID>45</GeoID> </clientinfo> </GetClientConfig></soap:Body></soap:Envelope>",
EXTRARES,
"Url=http://www.msn.com.cn/blipimages/cn/tab/mop/moppng.png", "Referer=", ENDITEM,
LAST);
web_custom_request("schematizedstore.asmx",
"URL=http://storage.msn.com/storageservice/schematizedstore.asmx",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<?xml version=\"1.0\" encoding=\"utf-8\"?> <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Header><StorageApplicationHeader xmlns=\"http://www.msn.com/webservices/storage/w10\"><ApplicationID>Messenger Client 7.0</ApplicationID></StorageApplicationHeader><StorageUserHeader xmlns=\"http://www.msn.com/webservices/storage/w10\"><
uid>0</Puid><UserAuthCache></UserAuthCache><IPAddress/></StorageUserHeader></soap:Header><soap:Body><GetItemVersion xmlns=\"http://www.msn.com/webservices/storage/w10\"><spaceVersionRequests><SpaceVersionRequest><SpaceHandle><RelationshipName>MySpace</RelationshipName><Alias><NameSpace>MyStuff</NameSpace><Name>
investmark_2004@hotmail.com
</Name></Alias></SpaceHandle><LastModifiedDate>2004-01-01T00:00:00.0000000-08:00</LastModifiedDate></SpaceVersionRequest><SpaceVersionRequest><SpaceHandle><ResourceID>1puJWV4AiCytcJvOxWJ6BXrQ!101</ResourceID></SpaceHa"
"ndle><LastModifiedDate>2004-01-01T00:00:00.0000000-08:00</LastModifiedDate></SpaceVersionRequest></spaceVersionRequests><spaceRequestFilter><SpaceFilterAttributes>Annotation</SpaceFilterAttributes><FilterValue>1</FilterValue></spaceRequestFilter></GetItemVersion></soap:Body></soap:Envelope>",
LAST);
lr_think_time( 18 );
web_url("ADSAdClient31.dll",
"URL=http://rad.msn.com/ADSAdClient31.dll?GetAd?PG=IMSCHI?SC=HF?ID=000600008dde24ae",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=http://www.msn.com.cn/blipimages/cn/tab/Icon/taobao.png", "Referer=", ENDITEM,
"Url=http://www.msn.com.cn/blipimages/cn/tab/Icon/ourgame.png", "Referer=", ENDITEM,
"Url=http://www.msn.com.cn/blipimages/cn/tab/Icon/sensky.png", "Referer=", ENDITEM,
"Url=http://www.msn.com.cn/blipimages/cn/tab/Icon/didibaba.png", "Referer=", ENDITEM,
"Url=http://msn.allyes.com/main/adfshow?local=blank.swf", "Referer=", ENDITEM,
LAST);
return 0;
}
在这些代码中好像没有登录的用户名,也不知道哪步是属于登录的???
作者:
call888
时间:
2005-6-13 17:46
investmark_2004@hotmail.com
1puJWV4AiCytcJvOxWJ6BXrQ!101
作者:
investmark
时间:
2005-6-14 09:09
标题:
To call888
有两个问题:
1)这里有两个“web_custom_request”,第一个是干什么用的,我们添加事务点的时候是不是只给第二个添加就能算出登录时间了?
2)这里的密码是加密的吧,我能用明码显示出来吗?
作者:
sunshinelius
时间:
2005-6-14 11:16
据我所知,msn和qq用的是SIP协议,而这个协议目前在loadrunner7.8中是不支持的,所以录制msn和qq只能用winsock协议,他们上面的一些操作如果是web请求,也可以用http协议捕获到
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2