|
软件背景:一个B/S的程序,只有一个前台邮件订阅(无需登录)和后台设置两
部分,PHP+Apache+mysql,邮件服务器采用第三方,无需考虑性能
访客的操作只有两个动作:
1.选择所需订阅的栏目,输入E-mail地址,点击‘我要订阅’,此部分只有一
个判断订阅栏目是否重复的判断,无需考虑压力
见附件《填写.gif》
2.选择所需订阅E-mail的语种,点击‘提交’,要测试的就是这里,考虑多个
用户同时提交,了解应用服务器的承受能力
见附件《提交.gif》
录制脚本如下:
Action()
{
web_url("ems",
"URL=http://192.168.1.91/ems/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=images/1_bg2_2.jpg", ENDITEM,
"Url=images/1_bg2_1.jpg", ENDITEM,
"Url=images/1_bg1.jpg", ENDITEM,
"Url=images/titleLine_bg.jpg", ENDITEM,
"Url=images/button_silver.gif", ENDITEM,
"Url=images/1_bg3.jpg", ENDITEM,
LAST);
lr_think_time(9);
//邮箱地址已订阅过栏目的判断
web_url("subscription.php",
"URL=http://192.168.1.91/ems/subscription.php?email=51525929@qq.com&programs=5,25,",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.91/ems/",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_submit_form("validate.php",
"Snapshot=t3.inf",
ITEMDATA,
"Name=slanguage", "Value=绠\x80浣撲腑鏂\x87", ENDITEM, //选择语言
"Name=submit", "Value= 鎻\x90 浜\xA4", ENDITEM, //提交
LAST);
//订阅成功返回页面
web_url("success_fs.html",
"URL=http://192.168.1.91/ems/success_fs.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.91/ems/",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
return 0;
}
请问如何实现多个用户同时并发的思路?
[ 本帖最后由 小露宝 于 2010-1-4 09:15 编辑 ] |
|