How can I pass a parameter from XML Response tag in a new GET XML Request in Soap UI?
I am using SoapUI version 5.3.0 My Application have a couple of RESTful APIs. Initially I am sending json request to a WebService and getting back the following XML Response:
<StartDataExtractResult xmlns="http://schemas.datacontract.org/2004/07/AriaTechCore" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <StatusCode>1</StatusCode> <StatusText>success</StatusText> <RequestNumber>396</RequestNumber> </StartDataExtractResult>
As soon as <RequestNumber> tag is generated. I have to access to 2 more XML EndPoints (where the value of <RequestNumber> is appended) to know the Status as below:
A. http://quickextract.quickaudit.in/webs/quickextract.svc/GetExtractionDetails/396
&
B. http://quickextract.quickaudit.in/webs/quickextract.svc/GetRequestStatus/396
As of now, I have created the 2 seperate TestSteps for the above mentioned XML Endpoints:
A. http://quickextract.quickaudit.in/webs/quickextract.svc/GetExtractionDetails
&
B. http://quickextract.quickaudit.in/webs/quickextract.svc/GetRequestStatus
Now I need to append the value within <RequestNumber> tag from previous Step into the next GET Request to get back a response from the WebServices.
Update:
I have created a 'Property Transfer' at Testsuite level as "TSreqNum". This 'Property Transfer' is getting updated as per the initial Response. But I am not sure how would I append "TSreqNum" to construct the complete GET Request as:
http://quickextract.quickaudit.in/webs/quickextract.svc/GetExtractionDetails/TSreqNum
Can anyone help me out please?
To update,
I just got some help and now I am able to call the XML Endpoints appending the RequestNumber through Property Transfer.http://host:port/path/${#TestSuite#TSreqNum}
Thanks to everyone.