web services output capture
Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: LoadRunner @ OneStopTesting
Forum Discription: LoadRunner is a performance and load testing product by HP / Mercury Interactive for examining system behavior and performance, while generating actual load.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=404
Printed Date: 16Dec2024 at 10:52am
Topic: web services output capture
Posted By: jay@jay
Subject: web services output capture
Date Posted: 31Mar2007 at 2:31am
Hello
I have scanned the WSDL file to create a scipt that has user authentication and log off.
The user authentication is provided with user data such as user id, pswd and application id.
On successful user authentication, the server responds with a TOKEN ID that is unique for each login.
I am able to view the token on the result containing the xml string. I need to capture that token and pass in to the logoff method for it to succeed. I have tried the xml extract fuction, but did not succeed.
Here is the web service call for the login method. web_service_call( "StepName=authenticateUser_101", "SOAPMethod=AWSWebServiceService.AWSWebService.authenticateUser", "ResponseParam=response", "WSDL=Z:/Load Testing/CFTracker/AWSWebService.wsdl", "UseWSDLCopy=1", "Snapshot=t1146747031.inf", BEGIN_ARGUMENTS, "userID=mp44827", "Password=1Password", "appid=2", END_ARGUMENTS, BEGIN_RESULT, "authenticateUserReturn=Param_authenticateUserReturn", END_RESULT, LAST);
The
Param_authenticateUserReturn has the following xml in the extended log.
I need to parse the TOKEN and feed it into the subsequent methods. Your
help will be appreciated. Thanks
authenticateUserReturn>< ;?xml version="1.0" encoding="UTF-8"?><AWSRESULTSET><SECUR ITY METHOD="AuthenticateUser"><STATUSCODE>0</STATUSCODE><MESSA
GE>Authentication
successful.</MESSAGE><TOKEN>7BAF465C-E307-47C4-B27F-3F36D117E397</TOKEN><SESSION_TIMEOUT>3600</SESSION_TIMEOUT></SECURITY>& lt;USER><FIRSTNAME>webnotes</FIRSTNAME><LASTNAME>IST1</LASTNAME> ;<EMAIL>[email protected]</EMAIL><JOBTITLE>IST Test</JOBTITLE ><EDR>00000000</EDR><LANGUAGE>US</LANGUAGE><DATEFORMAT>mm /dd/yyyy</DATEFORMAT></USER><PRIVILEGES><PRIVILEGE>ViewApplication Detail</PRIVILEGE><PRIVILEGE>ViewApplicationPendingByStatus</PRIVILEGE>& lt;PRIVILEGE>ViewBranchUpdateList</PRIVILEGE><PRIVILEGE>ViewDecisionElapsed Ratio</PRIVIL
|
Replies:
Posted By: pranati01
Date Posted: 31Mar2007 at 2:40am
Hello,
I have the same problem. I can not capture the output parameter.
I
see in the extended log that it is saved as a parameter, but do not
know the syntacsis for capuring the output parameter. It is not in the
parameters list of the script.
Your help is appreciated. Thanks!
|
|