Ready! API 1.4.1 - Error with RunTestCase with DataSink
I have two simple TestCases.
"TestCase 1" with one "TestStep A" (DataSink = DataConnection) and a second "TestCase 2" with a "TestStep B" (Run TestCase). In "TestStep B" I call "TestCase 1".
- If I Run "TestCase 1" all is correct and no errors occur.
- But if I run "TestCase 2" then I get the following Error: TestCase [TestCase 2] failed [java.lang.NullPointerException:java.lang.NullPointerException], time taken = 0
I detected the following:
- For "TestStep B" I set the Run TestCase Option: Run Mode = Create isolated copy for each run (Thread-Safe).
- If I set the Run Mode to Run primary TestCase (fail if already running). Then no errors occur.
Here is a the text from the "error.log" of the program bin folder:
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.replaceNode(Unknown Source)
at java.util.concurrent.ConcurrentHashMap.remove(Unknown Source)
at java.util.Collections$SetFromMap.remove(Unknown Source)
at com.eviware.soapui.impl.wsdl.WsdlProject.removeProjectListener(WsdlProject.java:1165)
at com.eviware.soapui.impl.wsdl.teststeps.datasink.JDBCConnectionDataSink.release(JDBCConnectionDataSink.java:431)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep.release(WsdlDataSinkTestStep.java:92)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.release(WsdlTestCase.java:858)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlRunTestCaseTestStep.run(WsdlRunTestCaseTestStep.java:261)
at com.eviware.soapui.impl.wsdl.panels.teststeps.WsdlRunTestCaseStepDesktopPanel$RunAction$1.run(WsdlRunTestCaseStepDesktopPanel.java:216)
at java.lang.Thread.run(Unknown Source)