header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 12:40:37 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
Unable to read the response in groovy script test step
Welcome, Guest. Please login or register.
November 22, 2008, 12:40:37 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Unable to read the response in groovy script test step
« previous next »
Pages: [1] Print
Author Topic: Unable to read the response in groovy script test step  (Read 314 times)
Shashi
Newbie
*
Posts: 12


« on: June 02, 2008, 09:53:53 pm »

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
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: June 03, 2008, 02:24:35 pm »

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
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header