clarksj71
13 years agoOccasional Contributor
New to Groovy Scripting
I'm trying to get the Hello World sample script to work in SoapUI. I was trying to get it to output to the log output, but the value returning is null. Here the script. Any ideas?
Here the log output:
Thu Dec 06 10:01:31 CST 2012:INFO:null
any ideas?
class Greet {
def name
Greet(who) { name = who[0].toUpperCase() +
who[1..-1] }
def salute() { println "Hello $name!" }
}
g = new Greet('world') // create object
g.salute() // output "Hello World!"
log.info g.salute()
Here the log output:
Thu Dec 06 10:01:31 CST 2012:INFO:null
any ideas?