Forum Discussion
- PaulMSSuper Contributor
Groovy script and/or property transfer options are shown in this article
https://www.soapui.org/functional-testing/working-with-cdata.html#3-Property-Transfers-and-CDATA
- nmraoChampion Level 3
Looks you are using REST with xml format.
And your data is little tricky as it is inside CDATA. And even that is not simple string or xml, it is again properties. And this type of sample does not appear to be present in the soapui samples of above reply link.
You can quickly try it online demo how to extract the same.
Here you go, add Script Assertion for the request test step which extracts the token and set it test case level, so that property expansion can be used where that is needed i.e., ${#TestCase#ATS_TOKEN}
- Vijay3New Contributor
Thanks for the answer.
After adding Script assertion, I'm getting the below error:
"Content is not allowed in prolog."
Related Content
- 7 years ago
- 8 years ago
Recent Discussions
- 15 years ago