Forum Discussion
Hi Todd,
Thanks for your reply! Your initial idea was correct, in the SOAP Request test step we want to retrieve the value of the property.
The property name is "currentName", hence to do the property expansion we refer to it as "${#TestCase#currentName}" in the respective element in the SOAP Request step:
<com:name>${#TestCase#currentName}</com:name>
The problem arises when this property has a value containing an ampersand, for example when the value is: "Fencing & Security".
When sending the SOAP Request this value is then placed literally (non-escaped) in the SOAP Request, which makes it invalid XML:
<com:name>Fencing & Security</com:name>
What we would expect is the property expansion leading to the following request:
<com:name>Fencing & Security</com:name>
Best regards,
Johan