Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
15 years ago

Contains assertion fails with ampersand (&)

I have a Contains regex assertion defined on a REST Request like this:

(?ms).*Client\s*: ${#TestCase#clientName}.+$

When the clientName contains an ampersand, the contains fails even though the result contains one (eg. M & M) in a  CDATA section.

Am I doing something wrong?

14 Replies