TA的每日心情 | 开心 2017-2-21 16:15 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
录制的脚本如下:
vuser_init()
{
web_service_call( "StepName=searchUser_101",
"SOAPHeader=<soap:Header><wsse:Security soap:mustUnderstand=\"0\" xmlns:wsse=\""
"http://schemas.xmlsoap.org/ws/2002/07/secext\"><wsse:Use"
"rnameToken><wsse:Username>nzou@sourcedev.com"
"</wsse:Username><wsseassword>OnRoute1</wsseasswor"
"d></wsse:UsernameToken></wsse:Security></soap:Header>",
"SOAPMethod=SearchUserServiceService.SearchUserService.searchUser",
"ResponseParam=response",
"WSDL=D:/train/loadrunner/SearchUserService.wsdl",
"UseWSDLCopy=1",
"Snapshot=t1207043672.inf",
BEGIN_ARGUMENTS,
"firstName=frances",
"middleName=",
"lastName=",
"mailId=",
"customerId=",
"fromIndex=",
"toIndex=",
END_ARGUMENTS,
BEGIN_RESULT,
"SearchUserResults/*[1]/firstName=Param_firstName",
"SearchUserResults/*[1]/lastName=Param_lastName",
END_RESULT,
LAST);
return 0;
}
run的结果:
vuser_init.c(4): t=3709ms: 810-byte response body for "https://onroute-stage.g1.com/web/services/SearchUserService" (RelFrameId=1)
vuser_init.c(4): <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmls
vuser_init.c(4): oap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www
vuser_init.c(4): .w3.org/2001/XMLSchema-instance"><soapenv:Header><wsse:Security EncodingType="ns1:Base64Bi
vuser_init.c(4): nary" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0
vuser_init.c(4): " xmlns:ns1="http://schemas.xmlsoap.org/ws/2002/07/secext" xmlns:wsse="http://schemas.xmls
vuser_init.c(4): oap.org/ws/2002/07/secext"></wsse:Security></soapenv:Header><soapenv:Body><ns2:searchUserR
vuser_init.c(4): esponse xmlns:ns2="/services/SearchUserService"><count>0</count><status>FAILURE</status><E
vuser_init.c(4): rror>unable to find FieldDescriptor for 'firstName' in ClassDescriptor of SearchUserInvali
vuser_init.c(4): d value of SearchUser. </Error></ns2:searchUserResponse></soapenv:Body></soapenv:Envelope>
vuser_init.c(4): Error: result argument "SearchUserResults/*[1]/firstName" not found in server response
vuser_init.c(4): Error: web_service_call "searchUser_101" execution failed
Abort was called from an action.
请高手帮忙看下,哪里出了问题,非常感谢!
[ 本帖最后由 francesfu 于 2008-4-2 11:37 编辑 ] |
|