paulie
11 years agoOccasional Contributor
NullPointerException for logArea
In my Test Case setup script the first thing I do is clear the log
I can run the TC without issues. However, when I try to run the TestCase from TestRunner it results in the error below
Is there a way of getting the TC running and clearing the logs or do I have to skip clearing the logs by checking
def logArea = com.eviware.soapui.SoapUI.logMonitor
logArea.getLogArea("script log").clear()
logArea.getLogArea("SoapUI log").clear()
I can run the TC without issues. However, when I try to run the TestCase from TestRunner it results in the error below
15:42:07,548 INFO [SoapUIProTestCaseRunner] Running TestCase [Entit, TC 2.1 - Family 1]
15:42:08,075 ERROR [AbstractTestRunner] Exception during Test Execution
java.lang.NullPointerException: Cannot invoke method getLogArea() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
Is there a way of getting the TC running and clearing the logs or do I have to skip clearing the logs by checking
if (!logArea.equals(null))