|
在LR11中录制webservice脚本。
在场景运行中,只有一个用户并发,执行快完成后,提示Error:InvokeMethod failure:外部组建发生异常
脚本如下:
Action()
{
lr_rendezvous("Step1");
lr_start_transaction("Step1");
web_service_call( "StepName=newMemberLogin_104",
"SOAPMethod=OrganizationService|OrganizationServicePort|newMemberLogin",
"ResponseParam=response",
"Service=OrganizationService",
"ExpectedResponse=SoapResult",
"Snapshot=t1373246570.inf",
BEGIN_ARGUMENTS,
"username=linwh",
"password=111111",
"uuid=11",
"token=suibian",
"deviceType=1",
END_ARGUMENTS,
BEGIN_RESULT,
"result/data/sessionId=Param_sessionId",
END_RESULT,
LAST);
web_service_call( "StepName=getApplication_104",
"SOAPMethod=OrganizationService|OrganizationServicePort|getApplication",
"ResponseParam=response",
"Service=OrganizationService",
"ExpectedResponse=SoapResult",
"Snapshot=t1373247725.inf",
BEGIN_ARGUMENTS,
"sessionId={Param_sessionId}",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_end_transaction("Step1", LR_AUTO);
return 0;
} |
|