51Testing软件测试论坛
标题:
如何测试并发登录的问题?
[打印本页]
作者:
远方的小企鹅
时间:
2015-11-5 11:33
标题:
如何测试并发登录的问题?
我想测试下并发登录,现在已经把用户名和密码参数化了,也已经增加了事物,如何设置检查点呢?
作者:
远方的小企鹅
时间:
2015-11-5 11:35
Action()
{
web_add_cookie("hx_username=\"2lHFmqjlIyo=\"; DOMAIN=www.zhx.com");
web_reg_find("Text=最慧学 - 个性化学习网站",
LAST);
web_url("www.zhx.com",
"URL=http://www.zhx.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=http://addons.g-fox.cn/firstLocation.gif?p=false&a=false&e=false&bsp=3&r=0.02382870521014302", "Referer=", ENDITEM,
"Url=http://adu.g-fox.cn/adu.gif?channelid=firefox.3gj&fxversion=41.0.2&ceversion=2015.7&ver=2_2&pk=%7Bb524cbbf-7988-496e-8c2e-213192c87212%7D&uk=%7B9ae44743-33ee-42db-9304-b11ee6154215%7D&cehome=true&locale=zh-CN&moexts=easyscreenshot,coba,tabtweak,cehomepage,cpmanager,commonfix,wx-assistant&age=90&default=true&defaultHttp=true&flash=19.0.0.226&now=1446685877447", "Referer=", ENDITEM,
LAST);
lr_think_time(190);
web_reg_find("Search=Body",
"SaveCount=count",
"Text={username}",
LAST);
lr_rendezvous("登录");
lr_start_transaction("登录");
web_submit_data("login",
"Action=http://www.zhx.com/login",
"Method=POST",
"TargetFrame=",
"RecContentType=application/json",
"Referer=http://www.zhx.com/",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=subjects", "Value={\"000000001\":202,\"8a489d1a46610857014661085c910003\":206,\"8a489d1a4637f67a014660ae9d4a03b2\":206,\"2c9180884f2478a0014f258054a00025\":206,\"2c91808c4f71b897014f73303ddc0002\":102}", ENDITEM,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
EXTRARES,
"Url=http://adu.g-fox.cn/adu-1.gif?channelid=firefox.3gj&fxversion=41.0.2&ceversion=2015.7&ver=2_2&pk=%7Bb524cbbf-7988-496e-8c2e-213192c87212%7D&uk=%7B9ae44743-33ee-42db-9304-b11ee6154215%7D&cehome=true&locale=zh-CN&moexts=easyscreenshot,coba,tabtweak,cehomepage,cpmanager,commonfix,wx-assistant&age=90&default=true&defaultHttp=true&flash=19.0.0.226&now=1446686178072", "Referer=", ENDITEM,
LAST);
web_reg_find("Text=首页 - 最慧学",
LAST);
web_url("www.zhx.com_2",
"URL=http://www.zhx.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.zhx.com/",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
作者:
猫星人
时间:
2015-11-5 13:13
web_add_cookie,这句去掉。网站也打不开啊、、、
作者:
zhuruize
时间:
2015-11-5 16:27
web_reg_find这个函数就是添加检查点的,你已经加了2个了
作者:
远方的小企鹅
时间:
2015-11-6 09:06
web_reg_find这个函数就是添加检查点的,你已经加了2个了
这个是我录制时,自动生成的两个检查点呢 , "Name=subjects", "Value={\"000000001\":202,\"8a489d1a46610857014661085c910003\":206,\"8a489d1a4637f67a014660ae9d4a03b2\":206,\"2c9180884f2478a0014f258054a00025\":206,\"2c91808c4f71b897014f73303ddc0002\":102}", ENDITEM, 这个是不是有验证码了??
作者:
稻香老农
时间:
2015-11-6 13:37
加一个 集合点
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2