Forum Discussion
rupert_anderson
9 years agoValued Contributor
Hi,
There are no stupid questions... :-)
When I want to see the value of a Groovy expression in SoapUI I usually just:
1) Create a Groovy TestStep
2) In the Groovy TestStep use log.info and run it e.g.
def now = new Date()
log.info now.format("yy-MM-dd")
Gives log output in the TestStep of
- Thu May 21 20:24:27 UTC 2015:INFO:15-05-21
Other options are to create a Groovy Class in Eclipse (good for building up more complex Groovy scripts, as you get intelli-sense), also the Groovy Console, which can also be used as a SoapUI plugin (more on this please ask).
By the way in your example command, & doesn't concatenate strings/text in Groovy, you can use + instead.
Hope this helps,
Cheers,
Rup
Related Content
- 6 months agosohailalam2696
Recent Discussions
- 5 days agoemoya