loadrunner 运行求帮助
设置6个用户上传,单号的user不会出错。双号的user不能运行场景双号会报错如下:
Action.c(15): Error -27796: Failed to connect to server "129.168.200.80:80": Connection timed out
点击脚本出错行 发现,2、4、6这三个出错用户不能登录到系统 Action.c(66): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://129.168.200.80/omm_spc/casefile/fileUpload.go;jsessionid=A4EFCCE494AB5FF09CC7E4D087E07373" Action()
{
int i=1;
int j=1;
// web_add_cookie("USERRECENTLYOPENCASEINFOdg01=_299_166_4_67_69; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOlj1=_107_205_157_159_126_104_87_86_76; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOdg02=_4; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOlj4=_202_208; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOlj2=_107_254; DOMAIN=129.168.200.80");
web_url("omm_spc",
"URL=http://129.168.200.80/omm_spc",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("default.go",
"URL=http://129.168.200.80/omm_spc/default.go?timestamp=1324287170557",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_reg_save_param("Session",
"LB=JSESSIONID=",
"RB=; Path=/omm_spc",
"Ord=1",
"Search=All",
LAST);
lr_start_transaction("登录");
web_submit_form("InterceptLogin.do",
"Snapshot=t3.inf",
ITEMDATA,
"Name=j_username", "Value={username}", ENDITEM,
"Name=j_password", "Value=12345678", ENDITEM,
"Name=_spring_security_remember_me", "Value=<OFF>", ENDITEM,
LAST);
lr_end_transaction("登录", LR_AUTO);
lr_output_message ("session = %s",lr_eval_string ("{Session}"));
lr_think_time (2);
for (i=1;i<=20;i++) {
for (j=1;j<=10;j++) {
lr_start_transaction("上传");
web_submit_data("fileUpload.go;jsessionid={Session}",
"Action=http://129.168.200.80/omm_spc/casefile/fileUpload.go;jsessionid={Session}",
// "Action=http://129.168.200.80/omm_spc/flow/getAllOperationalFlow.do",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
ITEMDATA,
"Name=Filename", "Value=1.mpeg", ENDITEM,
"Name=name", "Value={filename}.mpeg", ENDITEM,
"Name=modifyTime", "Value=1324287185854", ENDITEM,
"Name=caseId", "Value={caseid}", ENDITEM,
"Name=filedata","Value=E:\\1.mpeg","File=Yes",ENDITEM,
LAST);
lr_end_transaction("上传", LR_AUTO);
lr_think_time(8);
}//for j循环
}//for i循环
web_url("logout.do",
"URL=http://129.168.200.80/omm_spc/logout.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
return 0;
} 本帖最后由 330254601 于 2012-5-8 17:27 编辑
http://bbs.51testing.com/thread-58918-1-3.html下载rpc.rstatd安装包
/etc/xinetd.d/下的三个conf文件rlogin ,rsh,rexec 这三个配置文件,
omm111:~/gcc/rpc.rstatd-4.0.1 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/root/gcc/rpc.rstatd-4.0.1/missing: Unknown `--run' option
Try `/root/gcc/rpc.rstatd-4.0.1/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
使用 make命令时
omm111:~/gcc/rpc.rstatd-4.0.1 # make
make: *** No targets specified and no makefile found.Stop.
页:
[1]