cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read the response in groovy script test step

Occasional Contributor

Unable to read the response in groovy script test step

hello,

I have a datasource step followed by a request followed by a script step.

I want to run the script against the response to read some node values

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "stageMove_RountingPair_Request.requestContent" )


def mesLotName = holder.getNodeValue("//ax21:mesLotName")

But I get NullPointerexception

It is not saying which object is null.

could someone please tell me what am I doing wrong?

Thanks
- Shashi
1 REPLY 1
Super Contributor

Re: Unable to read the response in groovy script test step

Hi Shashi,

I think the argument to getXmlHolder is incorrect, try something like

def holder = groovyUtils.getXmlHolder( "stageMove_RountingPair_Request#Response" )

instead..

regards,

/Ole
eviware.com