Hello!
The variables set in the groovy script are lost once the script is done executing. What you need to do is store the values directly to the data sink from the script. This is done as follows:
def response = holder.getXml()
if (holder.xml.indexOf("<Produkt>") > -1)
{
log.info "have it"
testRunner.testCase.testSteps['DataSink'].properties['produkt_found'].value = 'Found'
}
else
{
log.info "don't have it"
testRunner.testCase.testSteps['DataSink'].properties['produkt_found'].value = 'Not Found'
}
(Replace 'DataSink' with the name of your DataSink teststep)
Regards,
Dain
eviware support