15 years ago
Property Expansion in 'Contains' Assertion does not work
Hi,
I'm trying to Assert that as SOAP Response contains a particular value, using Property Expansion.
The Property is called UserId and is defined in a Property step in the Test Case.
However, when I added a Contains Assertion including ${#TestCase#UserId}, it ALWAYS succeeds. Even when User Id isn't in the Response.
As a further example, if I deliberately make a typo, say ${#Testse#UserId}, this STILL succeeds, but should fail due to the typo.
Has anyone seen this before, or can see what I'm doing wrong?
I've also used both TestCase and a Property at TestSuite level - neither worked.
Thanks
artie
I'm trying to Assert that as SOAP Response contains a particular value, using Property Expansion.
The Property is called UserId and is defined in a Property step in the Test Case.
However, when I added a Contains Assertion including ${#TestCase#UserId}, it ALWAYS succeeds. Even when User Id isn't in the Response.
As a further example, if I deliberately make a typo, say ${#Testse#UserId}, this STILL succeeds, but should fail due to the typo.
Has anyone seen this before, or can see what I'm doing wrong?
I've also used both TestCase and a Property at TestSuite level - neither worked.
Thanks
artie