Hello,
from time to time I get the following exception when trying to run a WindowTester test case. WindowTester seems not to be able to put the focus on the eclipse runtime instance... (I work with WT 2.3.1 [20080117085544] )
com.windowtester.runtime.swt.finder.UnableToFindActiveShellException
at com.windowtester.finder.swt.WidgetFinderService.collectMatches(WidgetFinderService.java:74)
at com.windowtester.finder.swt.SWTWidgetFinder.findAll(SWTWidgetFinder.java:67)
at com.windowtester.runtime.WidgetLocator.findAll(WidgetLocator.java:417)
at com.windowtester.runtime.swt.internal.UIContextSWT.findAll(UIContextSWT.java:495)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:430)
at com.windowtester.runtime.swt.locator.MenuItemLocator.click(MenuItemLocator.java:87)
at com.windowtester.internal.runtime.selector.ClickHelper.doClick(ClickHelper.java:178)
at com.windowtester.internal.runtime.selector.ClickHelper.click(ClickHelper.java:65)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:75)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:277)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:68)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:285)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:61)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:268)
at com.bosch.blueworx.tests.util.TestUtilsGUI.openBwPerspective(TestUtilsGUI.java:29)
at com.bosch.blueworx.core.ui.navigator.filters.TestFilters.setUp(TestFilters.java:65)
at junit.framework.TestCase.runBare(TestCase.java:128)
at com.windowtester.runtime.common.UITestCaseCommon.access$001(UITestCaseCommon.java:26)
at com.windowtester.runtime.common.UITestCaseCommon$1.run(UITestCaseCommon.java:133)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:150)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:44)
Cheers,
Frank