Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

some testcases throw error if runmode = 'created isolated copy for each run'

Hello,
I test cases that call other test cases. I have selected 'created isolated copy for each run' for all of my run-mode.

I notice that in some instances this causes tests to fail.

for example.
test A calls test B
run mode --> created isolated copy for each run'

if I run testB, I get no failures.
if I run testA, it fails at the call to test B.

I changed the run mode to 'run primary testcase' and then the teststep (testcase B) passes.

I then changes the run mode back to ' created isolated copy for each run' and the teststep (testcase B) now passes.

This is the error log.
Thu Feb 26 17:27:31 PST 2009:ERROR:java.lang.NullPointerException
  java.lang.NullPointerException
  at com.eviware.soapui.model.tree.nodes.TestSuiteTreeNode$InternalTestSuiteListener.testStepAdded(TestSuiteTreeNode.java:126)
  at com.eviware.soapui.impl.wsdl.WsdlTestSuite.fireTestStepAdded(WsdlTestSuite.java:244)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.insertTestStep(WsdlTestCase.java:459)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.insertTestStep(WsdlTestCase.java:436)
  at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
  at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
  at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
  at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
  at GlobalFunctions.VerifyAccountNoDB(GlobalFunctions:867)
  at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
  at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778)
  at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
  at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
  at Script1.run(Script1.groovy:2)
  at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:59)
  at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:52)
  at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:148)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:273)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:182)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
Thu Feb 26 17:29:17 PST 2009:ERROR:java.lang.NullPointerException
  java.lang.NullPointerException
  at com.eviware.soapui.model.tree.nodes.TestSuiteTreeNode$InternalTestSuiteListener.testStepAdded(TestSuiteTreeNode.java:126)
  at com.eviware.soapui.impl.wsdl.WsdlTestSuite.fireTestStepAdded(WsdlTestSuite.java:244)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.insertTestStep(WsdlTestCase.java:459)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.insertTestStep(WsdlTestCase.java:436)
  at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
  at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
  at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
  at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
  at GlobalFunctions.VerifyAccountNoDB(GlobalFunctions:867)
  at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
  at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778)
  at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
  at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
  at Script2.run(Script2.groovy:2)
  at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:59)
  at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:52)
  at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:148)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:273)
  at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:182)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)

8 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Ali,

    thanks for this report.. could it be that you had done some cloning of the calling testcase/testsuite before this happens? Also, the error seems to arise from a groovy script test that adds teststeps!? Can you give some more details on this setup?

    regards!

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    Yes, there was some cloning of testcases/testsuites in the project.
    We do have some testcases which call a custom library that adds a teststep to a testcase, executes the teststep, and then deletes it.

    Let me know if you need more information.

    Ali
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    This is a confirmed bug to be fixed as soon as possible, sorry for any inconvenience.

    Regards,
    Dain
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Ali,

    could you please try the latest nightly build, it contains a fix that might solve this as well.. please let me know!

    regards,

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    I am trying the new build. I notice this error though which prevents me from opening any testsuite. I have restart soapui. not sure what actions causes this.

    Sun Mar 15 13:22:37 PDT 2009:ERROR:java.lang.NullPointerException
      java.lang.NullPointerException
      at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.buildTabs(WsdlTestSuiteDesktopPanel.java:195)
      at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.buildContent(WsdlTestSuiteDesktopPanel.java:90)
      at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.buildUI(WsdlTestSuiteDesktopPanel.java:83)
      at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel.(WsdlTestSuiteDesktopPanel.java:76)
      at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuiteDesktopPanel.(SourceFile:45)
      at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuitePanelBuilder.buildDesktopPanel(SourceFile:14)
      at com.eviware.soapui.impl.wsdl.panels.testsuite.ProWsdlTestSuitePanelBuilder.buildDesktopPanel(SourceFile:10)
      at com.eviware.soapui.ui.TabbedSoapUIDesktop.showDesktopPanel(SourceFile:211)
      at com.eviware.soapui.support.UISupport.showDesktopPanel(UISupport.java:549)
      at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:537)
      at com.eviware.soapui.impl.wsdl.actions.support.ShowDesktopPanelAction.perform(ShowDesktopPanelAction.java:53)
      at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:100)
      at com.eviware.soapui.support.action.swing.DefaultActionList.performDefaultAction(DefaultActionList.java:107)
      at com.eviware.soapui.ui.Navigator$TreeMouseListener.mouseClicked(Navigator.java:305)
      at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
      at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
      at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Ali,

    That is very odd, i can't reproduce this unfortunately.. can you mail me one of your projects so I can see if it is something specific to your configuration? Also please send your soapui-settings.xml file if possible.

    Thank you in advance!

    regards,

    /Ole
    eviware.com