Forum Discussion

PHaegele's avatar
PHaegele
Occasional Contributor
16 years ago

Movement of test cases within test suites

If you move a test case up or down via "Move TestCase Up" or "Move TestCase Down", the test case dissapears in the tree view - you have to save and reload the project to see the moved test case again.

Another problem occurs with composite projects: the movement of test cases seems to have no effect, the position of the test case is obviously stored nowhere. So there is no chance to give the test cases an arbitrary order independend of their name.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    I can't reproduce this with two simple testcases, could you check if you are getting any errors in any of the logs when moving your TestCase?

    Regarding the Composite-project related issue, we're onto it.

    Thanks in advance!

    regards,

    /Ole
    eviware.com
  • PHaegele's avatar
    PHaegele
    Occasional Contributor
    Hi,

    the bug is not fixed...

    As suggested by Ole I checked for errors, and here is what I get:

    Mon Apr 27 12:33:12 CEST 2009:ERROR:org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
      org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
      at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1244)
      at com.eviware.soapui.config.impl.PropertyConfigImpl.getName(Unknown Source)
      at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder$PropertiesStepProperty.getName(XmlBeansPropertiesTestPropertyHolder.java:244)
      at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder.getPropertyNames(XmlBeansPropertiesTestPropertyHolder.java:147)
      at com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem.getPropertyNames(AbstractTestPropertyHolderWsdlModelItem.java:105)
      at com.eviware.soapui.model.tree.nodes.PropertiesTreeNode$PropertiesModelItem.(PropertiesTreeNode.java:158)
      at com.eviware.soapui.model.tree.nodes.PropertiesTreeNode.createDefaultPropertiesNode(PropertiesTreeNode.java:62)
      at com.eviware.soapui.model.tree.nodes.TestCaseTreeNode.(TestCaseTreeNode.java:53)
      at com.eviware.soapui.model.tree.nodes.TestSuiteTreeNode$InternalTestSuiteListener.testCaseAdded(TestSuiteTreeNode.java:104)
      at com.eviware.soapui.model.tree.nodes.TestSuiteTreeNode$InternalTestSuiteListener.testCaseMoved(TestSuiteTreeNode.java:156)
      at com.eviware.soapui.impl.wsdl.WsdlTestSuite.fireTestCaseMoved(WsdlTestSuite.java:240)
      at com.eviware.soapui.impl.wsdl.WsdlTestSuite.moveTestCase(WsdlTestSuite.java:397)
      at com.eviware.soapui.impl.wsdl.actions.testcase.MoveTestCaseUpAction.perform(MoveTestCaseUpAction.java:40)
      at com.eviware.soapui.impl.wsdl.actions.testcase.MoveTestCaseUpAction.perform(MoveTestCaseUpAction.java:26)
      at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:100)
      at com.eviware.soapui.support.action.swing.DefaultActionList.dispatchKeyEvent(DefaultActionList.java:134)
      at com.eviware.soapui.ui.Navigator$TreeKeyListener.keyPressed(Navigator.java:231)
      at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)
      at java.awt.Component.processKeyEvent(Unknown Source)
      at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(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)

    regards

    Peter
  • Ive run into this same issue using Build daily-2009-04-23-[1], Build Date 2009/04/23 02:13
    Ill send you an archive of my composite project to play with. You can currently duplicate using TestSuite-Driver or add another TestCase to any of the other TestSuite(s)... Just sent so support email.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    thanks guys, we are onto it.. hope to fix it for upcoming nightly build.. sorry for the inconvenience..

    regards!

    /Ole
    eviware.com
  • PHaegele's avatar
    PHaegele
    Occasional Contributor
    and verified...

    Many thanks for the bug fix!
    Peter
  • Works now
    .... Also, a small annoyance is that the testCase is open after moving