|
各位师哥,师姐,小弟遇到了一个难题,就是loadrunner,测试dwr,spring的问题:
这是其中一段脚本代码;看了以后我就直接晕了,请问这种情况怎么处理,dwr需要特殊处理吗,如何参数化,在线等
web_custom_request("ProjectTypeService.getProjectType.dwr",
"URL=http://localhost:8080/ccpms/dwr/projectType/call/plaincall/ProjectTypeService.getProjectType.dwr",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/ccpms/project/projecttypebeta.html",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=text/plain",
"Body=callCount=\npage=/ccpms/project/projecttypebeta.html\nhttpSessionId=B679CC14C97793A8708F593995E06A A7\nscriptSessionId=D7127F6CA83E494CFEBA146172699F2360 \nc0scriptName=ProjectTypeService\nc0-methodName=getProjectType\nc0-id=0\nbatchId=0\n",
LAST);
web_custom_request("ProjectTypeService.getNextProjectTypeCode.dwr",
"URL=http://localhost:8080/ccpms/dwr/projectType/call/plaincall/ProjectTypeService.getNextProjectTypeCo.dwr", "Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/ccpms/project/projecttypebeta.html",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=text/plain",
"Body=callCount=\npage=/ccpms/project/projecttypebeta.html\nhttpSessionId=B679CC14C97793A8708F593995E06AA7\nscriptSessionId=D7127F6CA83E494CFEBA146172699F23600\nc0-scriptName=ProjectTypeService\nc0-methodName=getNextProjectTypeCode\nc0-id=0\nbatchId=1\n",
LAST);
lr_think_time(9);
web_custom_request("ProjectTypeService.saveOrUpdateProjectType.dwr",
"URL=http://localhost:8080/ccpms/dwr/projectType/call/plaincall/ProjectTypeService.saveOrUpdateProjectType.dwr",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://localhost:8080/ccpms/project/projecttypebeta.html",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=text/plain",
"Body=callCount=1\npage=/ccpms/project/projecttypebeta.html\nhttpSessionId=B679CC14C97793A8708F593995E06AA7\nscriptSessionId=D7127F6CA83E494CFEBA146172699F23600\nc0-scriptName=ProjectTypeService\nc0-methodName=saveOrUpdateProjectType\nc0-id=0\nc0-e1=string:000\nc0-e2=string:12\nc0-e3=string:1212\nc0-param0=Object_Object:{code:reference:c0-e1, name:reference:c0-e2, note:reference:c0-e3}\nbatchId=2\n",
LAST);
麻烦各位了 |
|