Contributions
Re: How to verify data inside <![CDATA[ ... ]]>
Hi Ole, Thank you for prompt response. I've set the Xpath expr as follows: /SOAP-ENV:Envelope/SOAP-ENV:Body/ns:tpmlMessageString This is the content I receive: <?xml version="1.0" encoding="UTF-8"?><br /><ns0:TPML xmlns:ns0="urn:x-schemas-db-com:tpmbase/tpml/tpml_1_2"><ns1:tpHeader xmlns:ns1="urn:x-schemas-db-com:tpmbase/tpml/tpheader_1_2"><ns1:messageTimestamp>2008-12-17T13:33:25.839Z</ns1:messageTimestamp>...<br /><br />So in case I change messageTimestamp value to '*' matcher constantly fail. So is there any posibility to apply wildcards for Xpath matcher1.3KViews0likes0CommentsHow to verify data inside <![CDATA[ ... ]]>
Hello all! My question is how can I verify block of data inside ... section by means of XpathMatch or Contains or any other assertion. For example if I have SOAP response which contains: <?xml version="1.0" encoding="UTF-8"?><br />...<br /> <dbExtentions><br /> <propertyTable><br /> <property><br /> <propertyName>ExternalTradeId</propertyName><br /> <propertyValue>TLT008901</propertyValue><br /> </property><br /> </propertyTable><br /> <trader><br /> <partyId>BAN_EMCRD</partyId><br /> <userId>SURAGO</userId><br /> <userName>GOP</userName><br /> </trader><br />...<br />...<br /> </dbExtentions><br /> </body><br /></TPML> I am able to verify a single tag value by simple RegExp: (?s).*body.*dbExtentions.*propertyTable.*property.* ExternalTradeId .* TLT008901 .* But what should be done if I need to verify the whole sections. Many thx in advance!2.7KViews0likes6Comments