Thank you very much, that works fine.
I have set up an excel datasink which successfully collects the material_number used and now I want to write in the columns beside it whether the product for this material-number was found or not.
Have the following code in my test step groovy script and a property called produkt_found in my datasink_excel step:
def response = holder.getXml()
if (holder.xml.indexOf("
") > -1)
{
log.info "have it"
produkt_found = "Found"
}
else
{
log.info "don't have it";
produkt_found = "Not found"
}
So my question is, what code do I need in the value box of the property in the datasink so that it collects the value "Found" or "Not Found" set by the groovy script?
I promise sincerely that I have rtfm and googled my socks off before posting this