51Testing软件测试论坛
标题:
关于并发的问题
[打印本页]
作者:
garbooshao
时间:
2006-7-7 09:44
标题:
关于并发的问题
用户注册的并发测试,测试用户注册后,点击【提交】按钮时100人并发时的性能
操作步骤:
录制代码,打开注册页面,输入注册信息,插入并发点,点击【提交】按钮,打开注册完成的页面,可继续其他操作。录制结束。
查看录制的脚本,并发点却在输入的注册信息之前,看不到点击【提交】按钮的操作代码,重新录制时,输入注册信息过程中,查看LR,没有相应代码生成,插入并发点,才生成并发代码,点击【提交】,输入信息才出现
以下是录制的部分代码,谁知道是怎么回事,是我操作问题么?
web_url("register.jsp",
"URL=http://192.168.0.42/level2/register.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.42/level2/",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_think_time( 82 );
lr_rendezvous("reg");
lr_think_time( 10 );
web_submit_form("register.jsp_2",
"Snapshot=t3.inf",
ITEMDATA,
"Name=account", "Value=bu{idd}", ENDITEM,
"Name=password", "Value=888888", ENDITEM,
"Name=password1", "Value=888888", ENDITEM,
"Name=type", "Value=个人", ENDITEM,
"Name=name", "Value=qq", ENDITEM,
"Name=idtype", "Value=身份证", ENDITEM,
"Name=idnum", "Value=310111111", ENDITEM,
"Name=phone", "Value=12345678", ENDITEM,
"Name=email", "Value=thyjkhkj", ENDITEM,
"Name=address", "Value=ffff", ENDITEM,
"Name=postcode", "Value=4444444", ENDITEM,
"Name=linkman", "Value=re", ENDITEM,
"Name=code", "Value=暂时没用", ENDITEM,
LAST);
web_url("index.jsp",
"URL=http://192.168.0.42/level2/member/index.jsp?register=1",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/bg.gif", "Referer=http://192.168.0.42/level2/member/top.jsp", ENDITEM,
LAST);
return 0;
作者:
pcl2004_27
时间:
2006-7-7 10:01
集合点函数插入到(注册函数)
web_submit_form("register.jsp_2",
"Snapshot=t3.inf",
ITEMDATA,
"Name=account", "Value=bu{idd}", ENDITEM,
"Name=password", "Value=888888", ENDITEM,
"Name=password1", "Value=888888", ENDITEM,
"Name=type", "Value=个人", ENDITEM,
"Name=name", "Value=qq", ENDITEM,
"Name=idtype", "Value=身份证", ENDITEM,
"Name=idnum", "Value=310111111", ENDITEM,
"Name=phone", "Value=12345678", ENDITEM,
"Name=email", "Value=thyjkhkj", ENDITEM,
"Name=address", "Value=ffff", ENDITEM,
"Name=postcode", "Value=4444444", ENDITEM,
"Name=linkman", "Value=re", ENDITEM,
"Name=code", "Value=暂时没用", ENDITEM,
LAST);
之前。
作者:
pcl2004_27
时间:
2006-7-7 10:01
web_submit_form("register.jsp_2",
"Snapshot=t3.inf",
ITEMDATA,
"Name=account", "Value=bu{idd}", ENDITEM,
"Name=password", "Value=888888", ENDITEM,
"Name=password1", "Value=888888", ENDITEM,
"Name=type", "Value=个人", ENDITEM,
"Name=name", "Value=qq", ENDITEM,
"Name=idtype", "Value=身份证", ENDITEM,
"Name=idnum", "Value=310111111", ENDITEM,
"Name=phone", "Value=12345678", ENDITEM,
"Name=email", "Value=thyjkhkj", ENDITEM,
"Name=address", "Value=ffff", ENDITEM,
"Name=postcode", "Value=4444444", ENDITEM,
"Name=linkman", "Value=re", ENDITEM,
"Name=code", "Value=暂时没用", ENDITEM,
LAST);
这个函数就是注册函数
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2