`
CharlesCui
  • 浏览: 416819 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

类似开心网的《好友动态》--性能测试脚本

阅读更多
好友动态就是类似某某某和某某某成为了好朋友,
某某某许了一个什么什么心愿等类似的信息,
预期一周内将会有一亿的数据量。

char url[1024];
char *to_url;
long i=8001016;
char id[20];

vuser_init()
{
   to_url="http://www2.im.alisoft.com/webim/other/trasfer.htm?needsignin=2&signmode=im&redirect_url=http://wangwang.im.alisoft.com:18080/";

   lr_load_dll("AutoLogin_ConstructUrl.dll");

   GenerateTokenUrlEx("cnalichn8001015","q1w2e3r4",to_url,url,1024);

   lr_message("%s",url);

   lr_save_string(url,"autoUrl");

	lr_start_transaction("AutoLogin");

	web_reg_find("Text=sssss",LAST);

	web_url("AutoLogin",
			"Url={autoUrl}",
			LAST);

	lr_end_transaction("AutoLogin", LR_AUTO);

	return 0;
}


Action()
{

	lr_start_transaction("myFriendStatus");

	web_reg_find("Text=sssss",
				 LAST);

	web_url("Homepage",
			"URL=http://wangwang.im.alisoft.com:18080/mkt/user/userHomePage!homePage.jspa?userId=10058412950",
			"Mode=HTTP",//由于该页面将下面的url内嵌在一个iframe中,所以要将Mode设置为上下文无关的http模式。mode默认是html模式。
			LAST);

	web_reg_find("Text=heihei",
				 LAST);

	web_url("getFriendStatus",
		"URL=http://wangwang.im.alisoft.com:18080/mkt/user/userAction!userActionList.jspa?userId=10058412950",
		"Mode=HTTP",
		LAST);

	lr_end_transaction("myFriendStatus", LR_AUTO);

	return 0;
}


vuser_end()
{
	return 0;
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics