RichardM
13 years agoOccasional Contributor
Assertion with wildcards
I am trying to use and XPath Match assertion to check the content of an element in a soap response. I want to use a wildcard to check for any character.
The soap response is
My assertion is an Xpath Expression with;
Declare;
declare namespace ns1='http://sword-insurance.com/openplus/documentservice';
//ns1:File[1]
Expected Result
*
Allow wildcards is checked.
However, the assertion fails, saying "XPathContains comparison failed, expecting, actual was [AAAAA....
Can anyone suggest what I am doing wrong?
Richard
The soap response is
<soap:Body>
<GetDocumentBinaryResponse xmlns="http://sword-insurance.com/openplus/documentservice">
<Root>
<Document DocumentKey="166946" DocumentType="1" FileName="ITSD166946.doc">
<File>AAAAAAAAAAAAAAAAAAA+ejyj/no8o/56SKP+ekij/npUo/56VKP+emCj/npgo/56bKP+emyj/nqQo/56kKP+epyj/nqco/56qKP+eqij/nq0o/56tKP+etCj/nrQo/563KP+etyj/nr0o/569KP+egCk/noApP56IKT+eiCk/npEpP56RKT+emik/npopP56dKT+enSk/nqApP56gKT+eoyk/nqMpP56mKT+epik/nqkpP56pKT+erCk/nqwpP56vKT+eryk/nrIpP56yKT+etSk/nrUpP564KT+euCk/nr8pP56/KT+ehil/no=</File>
</Document>
</Root>
</GetDocumentBinaryResponse>
</soap:Body>
My assertion is an Xpath Expression with;
Declare;
declare namespace ns1='http://sword-insurance.com/openplus/documentservice';
//ns1:File[1]
Expected Result
*
Allow wildcards is checked.
However, the assertion fails, saying "XPathContains comparison failed, expecting
Can anyone suggest what I am doing wrong?
Richard