JPT_ENT
16 years agoOccasional Contributor
Re: Groovy scripts and logging
Hello All,
A quick question on logging details from within a groovy class...
I'm using soapUI Pro, and am logging test results in a groovy script using the log.info commnd. This logs the output under the "Script Log" tab on the UI. Within the same groovy script, I'm calling a groovy class which also has logging implemented in it. However, the command log.info isn't recognised for the groovy class, so I've tried using SoapUI.log.info. It does log the output, but it logs it to the "SoupUI Log" in the UI.
How can I log to the Script Log from within a groovy class?
Cheers
JPT
A quick question on logging details from within a groovy class...
I'm using soapUI Pro, and am logging test results in a groovy script using the log.info commnd. This logs the output under the "Script Log" tab on the UI. Within the same groovy script, I'm calling a groovy class which also has logging implemented in it. However, the command log.info isn't recognised for the groovy class, so I've tried using SoapUI.log.info. It does log the output, but it logs it to the "SoupUI Log" in the UI.
How can I log to the Script Log from within a groovy class?
Cheers
JPT