grub
16 years agoOccasional Contributor
assertion > contains > regular expression
I try the assertion > contains
- content:(\d+)
- ignore case : checked or unchecked
- regular expression checked
It gives missing token in response, so the assertion failed
I just copied the 'content' from the response and changed eg. 694 into (\d+) . Also content like 694 failed .
While the assertion > contains >
- content :694
- regular expression NOT checked
It gives assertion success .
Why is the regular expression not recognized ? I think it should be ok , according to http://www.jdocs.com/javase/7.b12/java/ ... ttern.html
I used SOAPUI beta1 and beta2 .
note: via XQUERY can be a workaround , but is a more testcode to create and maintain . Please help , the regexp assertion would be a great help .
- content:
- ignore case : checked or unchecked
- regular expression checked
It gives missing token in response, so the assertion failed
I just copied the 'content' from the response and changed eg. 694 into (\d+) . Also content like 694 failed .
While the assertion > contains >
- content :
- regular expression NOT checked
It gives assertion success .
Why is the regular expression not recognized ? I think it should be ok , according to http://www.jdocs.com/javase/7.b12/java/ ... ttern.html
I used SOAPUI beta1 and beta2 .
note: via XQUERY can be a workaround , but is a more testcode to create and maintain . Please help , the regexp assertion would be a great help .