急!急!急!急!loadrunner关于关联sessionID的问题
在loadrunner中上传一个视频文件,使用了自动关联的方法关联了sessionID,脚本运行没用错误。在场景设置中使用十个用户并发。每个用户使用不同的用户名登陆。
在场景运行中十个用户加载完后就运行错误。错误代码-26617
页面显示报500错误。
想问问什么原因
谢谢 代码如下:
web_url("login.do",
"URL=http://1.1.1.10/login.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
EXTRARES,
LAST);
/* Registering parameter(s) from source task id 23
//{OracleAppJSESSIONID3} = "1E3D8A4553DDB3BD96B54297DA494F7C"
// */
web_reg_save_param("OracleAppJSESSIONID3",
"LB/IC=JSESSIONID=",
"RB/IC=;",
"Ord=1",
"Search=headers",
LAST);
web_submit_form("j_spring_security_check",
ITEMDATA,
"Name=j_username", "Value={user}", ENDITEM,
"Name=j_password", "Value=123456", ENDITEM,
"Name=_spring_security_remember_me", "Value=<OFF>", ENDITEM,
LAST);
web_url("multiUpload.do",
// "URL=http://1.1.1.10/caseFile/multiUpload.do?sourceUuid=&caseId=345&departmentId=54",
"URL=http://1.1.1.10/caseFile/multiUpload.do?",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=../js/lhgdialog/lhgdialog3.3.1/images/leftTop.png", "Referer=", ENDITEM,
"Url=../flash/MultiTrafficUploader.swf", "Referer=http://1.1.1.10/caseFile/multiUpload.do?sourceUuid=&caseId=&departmentId=54", ENDITEM,
LAST);
for(i=0;i<10;i++){
for (j=0;j<100;j++) {
web_submit_data("fileUpload.go",
"Action=http://1.1.1.10/caseFile/fileUpload.go;jsessionid={OracleAppJSESSIONID3}",
"Method=POST",
"RecContentType=text/html",
"Referer=",
"EncType=multipart/form-data",
"Mode=HTML",
ITEMDATA,
"name=Filename", "Value=123.mpeg",ENDITEM,
"name=illegalTimeStr","Value=08:00",ENDITEM,
"name=modifyTime","Value=1301021592000",ENDITEM,
"name=vehicleTypeCode","Value=灏忓瀷姹借溅鍙风墝",ENDITEM,
"name=name","Value=123.mpeg",ENDITEM,
"name=caseId","Value={caseid}",ENDITEM,
"name=filedata","Value=E:\\123.mpeg","File=Yes",ENDITEM,
LAST);
lr_output_message("caseid = %s", lr_eval_string("{caseid}"));
lr_think_time(5);
lr_output_message("temp = %s", lr_eval_string("{OracleAppJSESSIONID3}"));
}//for(j)
}//for(i)
web_url("logout.do",
"URL=http://1.1.1.10/logout.do?timeStamp=1322096817859",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTML",
LAST); 这个要看下日志 关联的左右边界不对吧,个人意见还需要你自己验证下。 参数取值策略设置为unique+once 参数设置使用过这种方式,情况还是一样。回复 5# thirfing 回复 6# 330254601
RTS中勾选扩展日志,场景运行后,找到对应日志,看错误具体是什么引起的 错误的log
Action.c(93): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://1.1.1.10/omm/caseFile/fileUpload.go;jsessionid=32985C534A5AED73FE179F5641136A31" 关联的左右边界通过自动关联有一些改动
web_reg_save_param("OracleAppJSESSIONID3",
"LB/IC=JSESSIONID=",
"RB/IC=; Path=/omm",
"Ord=1",
"Search=headers",
LAST); Start auto log messages stack - Iteration 1.
Action.c(93): web_submit_data("fileUpload.go") was successful, 0 body bytes, 120 header bytes
Action.c(110): caseid = 340
Action.c(111): lr_think_time: 5.00 seconds.
Action.c(112): temp = 49C84634728CE2748D72E6FE6AD28775
Action.c(93): web_submit_data("fileUpload.go") was successful, 0 body bytes, 120 header bytes
Action.c(110): caseid = 342
Action.c(111): lr_think_time: 5.00 seconds.
Action.c(112): temp = 49C84634728CE2748D72E6FE6AD28775
Action.c(93): web_submit_data("fileUpload.go") was successful, 0 body bytes, 120 header bytes
Action.c(110): caseid = 344
Action.c(111): lr_think_time: 5.00 seconds.
Action.c(112): temp = 49C84634728CE2748D72E6FE6AD28775
Action.c(93): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://1.1.1.10/omm/caseFile/fileUpload.go;jsessionid=49C84634728CE2748D72E6FE6AD28775"
End auto log messages stack.
输出的temp的值就是手动关联后找到的sessionid 回复 3# msnshow
错误的日志,在上面。能帮忙看看么。谢谢 把user也输出来,这样就能看到什么用户在操作什么case的时候出错了
页:
[1]