Forum Discussion

Shashi's avatar
Shashi
Occasional Contributor
16 years ago

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

  • omatzura's avatar
    omatzura
    Super Contributor
    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