Tom_Arn
17 years agoContributor
Array response as input for further test steps
We want to create a TestCase where the response of one Test Step is used as input for the next step. The response contains an array of unknown size. The next step should use the response array as new input array.
We have succeeded in making this work for specifically defined elements of the response array by using a Property Transfer like this:
Source:
Target:
How should this be defined, if we want to do this for all elements of the response array?
We tried something like
Thanks in advance
Tom
We have succeeded in making this work for specifically defined elements of the response array by using a Property Transfer like this:
Source:
declare namespace m='http://www.tierverkehr.ch/XMLServicesOer/TVDOerXml';
//m:rinderTierverzeichnisResponse/tvXmlRinderTierverzeichnisStructHolder/rinder/TVXmlRindVO[1]/identitaet
Target:
declare namespace arrayType='java.com.csc.tvd.oerxml.vo.bestellwesen';
declare namespace tvd='http://www.tierverkehr.ch/XMLServicesOer/TVDOerXML';
//tvd:plausiRinderpass/tVXmlRinderpassStructHolder/rinderpass/item/arrayType:identitaet
How should this be defined, if we want to do this for all elements of the response array?
We tried something like
but this did not work.
//m:rinderTierverzeichnisResponse/tvXmlRinderTierverzeichnisStructHolder/rinder/TVXmlRindVO[]/identitaet
Thanks in advance
Tom