cancel
Showing results for 
Search instead for 
Did you mean: 

Contain assertion - how can I 'blank out' a part of element text which changes with every response

SOLVED
Highlighted
Community Manager

Re: Contain assertion - how can I 'blank out' a part of element text which changes with every respon

Thanks everyone for suggestions. 

@tester213243 any updates?


Sonya Mihaljova
Community and Education Specialist

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Community Hero

Re: Contain assertion - how can I 'blank out' a part of element text which changes with every respon

@tester213243 

There is an example in the documentation for the same

https://www.soapui.org/docs/functional-testing/point-and-click-testing/point-and-click-with-xpath.ht...

 

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.

Selection_113.png



Regards,
Rao.

View solution in original post