NullPointerException for running threads with 'Run TestCase' step
I am using SoapUI Basic 5.2.1 for testing SOAP APIs using threads to call 'Run TestCase' step through groovy script . I got a test case (Primary) where I have written a groovy script for data reading through external file, reading each row and setting it into properties of 'Run TestCase' step in my primary test case. 'Run TestCase' step executes target testcase which contains certain SOAP requests.I am using threads from ExecutorService to call target test case and 'Run TestCase' step is set to execute it with isolated copy for each run through its setting. During execution i see some of my threads miss to log output from my target test case and I get an exception which doesn't provide any message or stacktrace . Within my thread process i am using 'testRunner.runTestStepByName("Run TargetTestCase") ' to execute. I referred in community posts for any such concerns but didn't get any satisfactory results. I tried various options of executing this but all ends up with same issue. I checked with previous versions of SoapUI to see if issue is pre-existing and i see same issue in those as well. Surprisingly i got related error log with v5.1.3 as given below. Please let me know if we can get it sorted out. Wed Jun 15 15:20:47 IST 2016:ERROR:java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.notifyBeforeRun(AbstractTestCaseRunner.java:296) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:111) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Wed Jun 15 15:20:47 IST 2016:ERROR:java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.notifyBeforeRun(AbstractTestCaseRunner.java:296) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:111) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Wed Jun 15 15:20:47 IST 2016:ERROR:java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.notifyAfterRun(AbstractTestCaseRunner.java:279) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:176) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Wed Jun 15 15:20:47 IST 2016:ERROR:java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.setVariable(SoapUIGroovyScriptEngine.java:147) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runTearDownScript(WsdlTestCase.java:894) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTearDownScripts(AbstractTestCaseRunner.java:186) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:171) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Thanks,922Views0likes0CommentsUpdate Custom Property references in "Run Test Case" values, if Custom Property is renamed
It would be great, if ReadyAPI/SoapUI NG would update usages of custom properties in case of renaming the custom property, even if there are used in the value part of the property definiton of "Run Test Case" test steps. 1. Create TestSuite Repro - Custom Property MyRepro 2. Create TestCase Foo - Custom Property MyFoo 3. Create TestCase Bar 3a. Create TestStep "Run TestCase Foo" in TestCase "Bar" 3b. Assign to "MyFoo" the value value ${#TestSuite#MyRepro} 4. Rename the Custom Property "MyRepro" to "MyNewRepro" 5. Check the value in TestStep "Run TestCase Foo" -> Value is still "${#TestSuite#MyRepro}" and not "${#TestSuite#MyNewRepro}" If the custom property is used in a "Soap Request" test step, the usage is updated. So it would be a great help, if same happens in case of usages in "Run TestCase" test steps. With regards1.6KViews0likes0Comments