Forum Discussion
mkaplan
11 years agoOccasional Contributor
Hi Manne,
Thanks for the response. You were right, it's returning null. Also SiKing is also right now that I think about it, I do want to use the variable "response" that I created but that returns "" when I log it. I get what you're saying but now I don't understand why it's that way? Is this a known issue (Test step responses returning null/"" in a groovy script while being ran through another script)?
Thanks,
Michael
Edit: When I have my code arranged as so:
It works when I run the script manually or through a testcase, but not when ran through another groovy script like the code from my first post
Thanks for the response. You were right, it's returning null. Also SiKing is also right now that I think about it, I do want to use the variable "response" that I created but that returns "" when I log it. I get what you're saying but now I don't understand why it's that way? Is this a known issue (Test step responses returning null/"" in a groovy script while being ran through another script)?
Thanks,
Michael
Edit: When I have my code arranged as so:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder("initiateTransaction#Response")
It works when I run the script manually or through a testcase, but not when ran through another groovy script like the code from my first post
Related Content
Recent Discussions
- 9 days agoemoya