|
请问大家,为什么我用LR 测试webservice的时候一点回放就卡在那里,半天没有反应呢?我的LR是9.5,用的是add webservice call的办法,输入参数,然后生成脚本,点击回放就这个样子了,
脚本是这样的:
Action()
{
web_service_call( "StepName=sendMultiContentsSms_101",
"SOAPMethod=SendSmsService|SendSms|sendMultiContentsSms",
"ResponseParam=response",
"Service=SendSmsService",
"ExpectedResponse=SoapResult",
"Snapshot=t1314180992.inf",
BEGIN_ARGUMENTS,
"xml:sendMultiContentsSms1="
"<sendMultiContentsSms1>"
"<mcSms>"
"<destPhoneNumber>18906038738</destPhoneNumber>"
"<msgContent>"
"<string>0824</string>"
"</msgContent>"
"<priority></priority>"
"</mcSms>"
"</sendMultiContentsSms1>",
"xml:RequestSOAPHeaderValue="
"<RequestSOAPHeaderValue>"
"<userName>admin</userName>"
"<mD5Password>B66C43FD3EAFCE3F84E6FD588FC94023</mD5Password>"
"<timeStamp>2011-07-20 10:10:10</timeStamp>"
"</RequestSOAPHeaderValue>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
return 0;
}
日志是这样的:
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(3): Web service call "sendMultiContentsSms_101" started |
|