|
今天用loadrunner录制了web_service协议的接口,在做负载测试时,响应时间和事物数都监控不到,脚本如下:
Action()
{
web_service_call( "StepName=maintainUserInfo_101",
"SOAPMethod=CMSManageService|CMSManagePort|maintainUserInfo",
"ResponseParam=response",
"Service=CMSManageService",
"ExpectedResponse=SoapResult",
"Snapshot=t1449478476.inf",
BEGIN_ARGUMENTS,
"xml:userInfo="
"<userInfo>"
"<amount>33</amount>"
"<branchNO>33</branchNO>"
"<branchName>66</branchName>"
"<description>66</description>"
"<feeKind>1</feeKind>"
"<ip>121.121.121.3</ip>"
"<keyNO>{keyNO}</keyNO>"
"<mac>1</mac>"
"<panchName>LL</panchName>"
"<patchNO>88</patchNO>"
"<phoneNumber></phoneNumber>"
"<status>3</status>"
"<stbId>111111</stbId>"
"<userAddress></userAddress>"
"<userId>{userId}</userId>"
"<userName></userName>"
"<userPassword></userPassword>"
"<userType>1</userType>"
"<vodAreaId>6601</vodAreaId>"
"<vodAreaName></vodAreaName>"
"</userInfo>",
END_ARGUMENTS,
BEGIN_RESULT,
"return/message=Param_message",
"return/returnCode=Param_returnCode",
END_RESULT,
LAST);
lr_log_message("result1111111112222 = %s", lr_eval_string("{Param_message}"));
lr_log_message("result1111111112222 = %s", lr_eval_string("{Param_returnCode}"));
return 0;
}
|
|