Forum Discussion
tester213243
New Contributor
Hi Rao,
Thanks for the quick reply, appreciate your time.
But how would that work in my example if i want to use the regular expressions?
For example, apparently a dot should match any character or \d should match any digit. But if i do the following it doesn't work:
Response:
<ns1:RandomNumber>234</ns1:RandomNumber>
Contain Assertion:
<ns1:RandomNumber>...</ns1:RandomNumber>
or <ns1:RandomNumber>\d\d\d</ns1:RandomNumber>
nmrao
5 years agoChampion Level 3
There is an example in the documentation for the same
In your case, use xpath assertion with
XPath expression as
matches(//*:RandomNumber, '\d{3}')
And Exprected Result as
true
NOTE: ignore namespace from the image below and use your name spaces by clicking on declare.
Related Content
- 9 years ago
- 8 years ago
- 5 years ago
Recent Discussions
- 7 hours ago
- 17 days ago