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, 02:26:37 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
log message
Welcome, Guest. Please login or register.
November 22, 2008, 02:26:37 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  log message
« previous next »
Pages: [1] Print
Author Topic: log message  (Read 447 times)
ind
Newbie
*
Posts: 6


« on: July 25, 2007, 08:16:44 am »

hi all,

i have just created a groovy script and i want to see the value for that.
how to read the value resulting from log information.

i have used,
def items = holder.getNodeValues( "//clientSession::*")
for (item in items)
{
log.info( item )
}

where to view the log info that holds the item value. i need to get the values of clientSession node and also suggest me that the above code snippet is correct?

thanks
ind


thanks
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: July 25, 2007, 09:09:36 am »

Hi!

looks correct to me, but maybe you need to adjust the xpath to be

"//clientSession/text()" ?

the log.info( .. ) writes to the groovy log tab at the bottom of the soapUI window.. you could also add a

log.info( "Found " + items.length + " items.." )

before the for-loop, so your whole script would be

Code:
def items = holder.getNodeValues( "//clientSession/text()")
log.info( "Found " + items.length + " items.." )
for (item in items)
{
log.info( item )
}

Hope this helps!

/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