Note that there are some explanatory texts on larger screens.

plurals
  1. POSoapUI Pro : Transfering a XML node from a TestCase to another
    text
    copied!<p>When using the <code>Property Transfert</code> window to transfert a XML node (with children nodes) taken from the response of a first Soap request to a second Soap request, and that both requests <em>are in the same TestCase</em>, it works great :</p> <p><strong>TestCase 1 :</strong></p> <pre><code>Source : [First Soap Request] Property : [Response] declare namespace ns='http://xxx.com'; //ns:xxxxx[1]/ns:return[1] ------------------------------------------- Target : [Second Soap Request] Property : [Request] declare namespace ser='http://xxx.com'; //ser:xxxxx[1]/ser:someobject[1] </code></pre> <p>But if the two requests are <em>in different TestCases</em>, I guess it is required to save the XML node to a <em>TestSuite property</em> first, and then transfert this property to the new Soap request :</p> <p><strong>TestCase 1 :</strong></p> <pre><code>Source : [First Soap Request] Property : [Response] declare namespace ns='http://xxx.com'; //ns:xxxxx[1]/ns:return[1] ------------------------------------------- Target : [TestSuite1] Property : [myVariableToTransfert] </code></pre> <p><strong>TestCase 2 :</strong></p> <pre><code>Source : [TestSuite1] Property : [myVariableToTransfert] ------------------------------------------- Target : [Second Soap Request] Property : [Request] declare namespace ser='http://xxx.com'; //ser:xxxxx[1]/ser:someobject[1] </code></pre> <p>This doesn't work!</p> <p>It seems I'm unable to get valid XML in the second request when it is taken from the TestSuite as a property. Sometimes the value is null, sometimes it is wrapped in CDATA tags or the XML is entitized ("&lt;" are "&amp;lt", for example). I'm unable to get the value as <em>real XML</em>, like when both requests are in the same TestCase!</p> <p>I played with the "Transfert Text Content", "Entitize tranfererred value(s)" and "Transfert Child Nodes" options but without success!</p> <p>How can I tranfert a XML node from a request in a TestCase to a request in a second TestCase?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload