I have a RCP application. It has a combo box with the list of states. When I select a state it populates a tableviewer. At this point when I play what I have recorded, the application tries to exit. When I exit , I get the following stack trace.
java.lang.reflect.InvocationTargetException
at junit.extensions.UITestCase$4.run(UITestCase.java:582)
Caused by: java.lang.AssertionError: Not able to select correct index for Combo: Colorado != Wyoming
at com.windowtester.event.selector.swt.ComboSelector.verifySelection(ComboSelector.java:43)
at com.windowtester.event.selector.swt.ComboSelector.click(ComboSelector.java:31)
at com.windowtester.event.selector.swt.BasicWidgetSelector.click(BasicWidgetSelector.java:119)
at com.windowtester.event.swt.UIDriver.click(UIDriver.java:223)
at com.windowtester.swt.UIContext.click(UIContext.java:261)
at com.windowtester.swt.UIContext.click(UIContext.java:269)
at my_Test.test1.testMain(test1.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.extensions.UITestCase.access$5(UITestCase.java:1)
at junit.extensions.UITestCase$4.run(UITestCase.java:530)
I am not sure what the problem is. I will highly appreciate any help.
Thanks