turman
12 years agoOccasional Contributor
Issue with "contains assertions" and regular expression ?
Hi all,
I'm trying to use "contains assertions" in my test cases but I can't manage to use regular expression tokens.
I'm not very familiar with regexp but it very looks like a bug.
I have the following string in my reply : <Seatwishoptionmaxpaxnbr>02</Seatwishoptionmaxpaxnbr>
If I set "<Seatwishoptionmaxpaxnbr>02</Seatwishoptionmaxpaxnbr>" as content, and let the "Use token as regular expression" unchecked the assertion is valid.
But if I check the option, with the same content, the assertion fails !
I don't understand why it fails since the content doesn't contain any regexp token...
And if I try with a simpler content such as "Seatwishoptionmaxpaxnbr", it's the same result : the assertion is valid only if the "Use token as regular expression" is unchecked.
I've tried with SoapUI 4.5.1 and 4.6.0.
Thanks a lot for your help,
Vincent.
I'm trying to use "contains assertions" in my test cases but I can't manage to use regular expression tokens.
I'm not very familiar with regexp but it very looks like a bug.
I have the following string in my reply : <Seatwishoptionmaxpaxnbr>02</Seatwishoptionmaxpaxnbr>
If I set "<Seatwishoptionmaxpaxnbr>02</Seatwishoptionmaxpaxnbr>" as content, and let the "Use token as regular expression" unchecked the assertion is valid.
But if I check the option, with the same content, the assertion fails !
I don't understand why it fails since the content doesn't contain any regexp token...
And if I try with a simpler content such as "Seatwishoptionmaxpaxnbr", it's the same result : the assertion is valid only if the "Use token as regular expression" is unchecked.
I've tried with SoapUI 4.5.1 and 4.6.0.
Thanks a lot for your help,
Vincent.