51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1687|回复: 3
打印 上一主题 下一主题

[原创] loadrunner 运行求帮助

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-12-21 14:50:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
设置6个用户上传,单号的user不会出错。双号的user不能运行场景
双号会报错如下:
Action.c(15): Error -27796: Failed to connect to server "129.168.200.80:80": [10060] Connection timed out

点击脚本出错行 发现,2、4、6这三个出错用户不能登录到系统
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-12-21 17:41:16 | 只看该作者
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"
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2011-12-21 17:43:10 | 只看该作者
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;
}
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2012-5-8 17:26:06 | 只看该作者
本帖最后由 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 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-20 09:13 , Processed in 0.081433 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表