51Testing软件测试论坛
标题:
LoadRunner对多端口施压的脚本问题
[打印本页]
作者:
apollostory
时间:
2007-12-22 14:43
标题:
LoadRunner对多端口施压的脚本问题
我利用Lr对一台weblogic主机施压,该主机有四个端口。脚本设置如下,在实际执行中,我怎样才能知道虚拟用户已经分配在这几个端口上进行了并发操作?我感觉好像还是调用了一个端口?请高人指点。感激!感激!
char *ip_addr;
int intTime,residue,ip;
char *time;
vuser_init()
{
time = lr_eval_string("{user_id}");
intTime = atoi(time);
residue = intTime%4;
switch(residue)
{
case 0: ip_addr = "134.32.9.63:8001";
break;
case 1: ip_addr = "134.32.9.63:8002";
break;
case 2: ip_addr = "134.32.9.63:8003";
break;
case 3: ip_addr = "134.32.9.63:8004";
break;
default:ip_addr = "0";
break;
}
lr_save_string(ip_addr,"re_ip");
web_url("{re_ip}",
"URL=http://{re_ip}/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/js/rpc/src/ext/rpccore_c.js", ENDITEM,
"Url=/js/rpc/src/corevb_c.js", ENDITEM,
"Url=/js/rpc/src/objs/rpcpacket_c.js", ENDITEM,
"Url=/js/rpc/src/objs/list_c.js", ENDITEM,
"Url=/images/login_cnc.jpg", ENDITEM,
"Url=/images/login_system.jpg", ENDITEM,
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2