How to create an Contains Assertion which validates a specific portion of an XML (Use of wildcards)
I have been trying to create a Contains Assertion, and need to validate a specific portion of an XML. For example, say I want to validate:
The only thing I want to validate is the word "validate". Is there any way to use wildcards to only validate a specific portion of the resulting XML?
I was able to figure out how to use wildcards when using XPath Match Assertion (inputting an '*', and then enabling Allow Wildcards), but haven't been able to figure it out for Contains Assertions (tried using an '*', '%', and '.*<input text here>.*'), but nothing worked.
Any help would be appreciated.
Im on my phone so cant double check, but if memory serves, the 'Contains' assertion uses regex.
So you just need to use regex to verify the content is correct.