Forum Discussion
pembertonrw
13 years agoContributor
What you could do is use a Property Transfer step so the test case would be something like:
1) Send Message X
2) Property Transfer step to transfer the value from the request onto a test case property
3) Send Message Y that contains the property updated in step 2
You could also use a groovy script for step 2 instead:
This URL is handy to read as well: http://www.soapui.org/Functional-Testin ... alues.html
1) Send Message X
2) Property Transfer step to transfer the value from the request onto a test case property
3) Send Message Y that contains the property updated in step 2
You could also use a groovy script for step 2 instead:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def responseContent = testResult.getMessageExchanges()[0].getResponseContent()
def responseHolder = groovyUtils.getXmlHolder(responseContent)
responseHolder.declareNamespace('namespace', 'http://www.someplace.com/namespace')
def someproperty= responseHolder.getNodeValue(XPath goes here)
targetStep.setPropertyValue("someproperty", someproperty);
This URL is handy to read as well: http://www.soapui.org/Functional-Testin ... alues.html