0

上周我们已经升级到 Eclipse Luna,许多 WindowTester 测试用例开始失败。这背后的原因是“WT”无法在“问题”视图(小向下箭头图标)中找到下拉菜单,我们得到以下异常。有解决办法吗。

我得到的例外是:

java.lang.NullPointerException
    at com.windowtester.runtime.swt.locator.eclipse.PullDownMenuItemLocator$1.call(PullDownMenuItemLocator.java:126)
    at com.windowtester.runtime.swt.locator.eclipse.PullDownMenuItemLocator$1.call(PullDownMenuItemLocator.java:1)
    at com.windowtester.runtime.swt.internal.drivers.MenuDriver.resolveAndSelect0(MenuDriver.java:83)
    at com.windowtester.runtime.swt.internal.drivers.MenuDriver.resolveAndSelect(MenuDriver.java:57)
    at com.windowtester.runtime.swt.locator.eclipse.PullDownMenuItemLocator.click(PullDownMenuItemLocator.java:124)
    at com.windowtester.internal.runtime.selector.ClickHelper.doClick(ClickHelper.java:181)
    at com.windowtester.internal.runtime.selector.ClickHelper.click(ClickHelper.java:69)
    at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:147)
    at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:334)
    at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:140)
    at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:342)
    at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:133)
    at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:304)
    at com.sample.ExportLogEntriesTest.testSaveLogEntries(ExportLogEntriesTest.java:95)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at junit.framework.TestCase.runBare(TestCase.java:141)
    at com.windowtester.runtime.common.UITestCaseCommon.access$0(UITestCaseCommon.java:1)
    at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:140)
    at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:161)
    at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:50)
4

1 回答 1

2

我已在此分支中修复了 WindowTester 和 Eclipse 4.4 的问题:

https://github.com/fredg02/windowtester/tree/tychoWIP_e44

我会尽快发布。同时,您始终可以自己从源代码构建它。

于 2015-09-02T11:51:56.073 回答