I am starting to evaluate SoapUI as my test suite, but the Property Transfer thing is really holding me back. I've read a lot of articles about it, but I could not find a way to make it work in my case.
My source is a POST request. This POST request returns me a JSON. I need to pass one of the values of this JSON to the next test.
My response is this:
<Response xmlns="https://localhost/authorize">
<access_token>4a00c67e</access_token>
<refresh_token></refresh_token>
<scope>auth</scope>
<token_type>online</token_type>
</Response>
I need to get the <access_token>
and pass it to the next test as a parameter.
What should I write in the SOURCE and TARGET boxes to get this to work? Why is it so complicated and why there is no easy to understand tutorial about this? :(
To add to what Abhishek said. If you only need the access_token you would use the following XPath:
declare namespace var="https://localhost/authorize";
//var:Response/var:access_token
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With