krogold
8 years agoRegular Contributor
groovy logging problems
Hello,
I encounter a strange behaviour in SOAP UI (pro) in a groovy script:
I have the following part of code :
def response = 0 try { response = new XmlParser().parseText(context.Response); //log.info response } catch(NullPointerException e){ log.info e testRunner.fail( "Authentication rejected" ) }
When the previous step have faile, if I run the step alone I end up with the following Script log:
Thu Nov 23 09:29:42 CET 2017:INFO:java.lang.NullPointerException Thu Nov 23 09:29:42 CET 2017:ERROR:Failed with reason [Authentication rejected]
But when I launch the testCase and it fails for the same reason, I end up with :
Thu Nov 23 09:29:52 CET 2017:INFO:java.lang.NullPointerException
only.
Do anyone know why the ERROR log does not appear ?
I checked that, if I launch my testCase with the testRunner, the ERROR log appears.
thank you
Alexandre