|
我利用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, |
|