Forum Discussion
Hey Sirisha2020
is this ticket related to the other one you raised?
Anyway - you can either try either extracting the whole thing and then try using the split() method to grab the string you want.
The other option I've used before when trying to extract a string within a string is to use a property within a property.
If you have a look here --> https://www.soapui.org/docs/functional-testing/working-with-cdata/ and pay attention to section '3. Property Transfers and CDATA Sections'. You can I think alter this approach to extract the info you need - at least I've used this approach to extract an href value from a json payload about 3 years ago using this method.
if you don't like the property within a property option, nor the split() method (i find it a little difficult to use) - there is another simpler groovy option - but it will only work if the string up to the dddd is ALWAYS the same length - is it?
ta
Rich
Hi Richie,
I will take a look at the below information and will get back to you. Thanks a lot for your help. To answer to your first question : Payload is JSON.
Thanks.
Related Content
- 10 months ago
- 5 years ago
Recent Discussions
- 15 years ago