Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
There's nothing wrong with the expression groovyUtils.getXmlHolder("response"). Removing the quotes will fail, unless response is the name of a string variable.
I think the problem is caused by the context variable "response" not holding the same value when you run it from your script as in the test suite. For instance, if the variable is empty (null), SoapUI will try to parse the string "null" as XML, which will throw the exception you reported.
Try logging the value of the context variable and see if that gives you any clues:
log.info(context.getProperty("response")
/Manne
I think the problem is caused by the context variable "response" not holding the same value when you run it from your script as in the test suite. For instance, if the variable is empty (null), SoapUI will try to parse the string "null" as XML, which will throw the exception you reported.
Try logging the value of the context variable and see if that gives you any clues:
log.info(context.getProperty("response")
/Manne
Related Content
Recent Discussions
- 8 days agoemoya