0

将我的GWT版本更新到2.6.0后,运行旧版本时出现此错误GwtTestCase

[ERROR] The -out option is deprecated. This option will be removed in future GWT release       and will throw an error if it is still used. Please use -war option instead.
[INFO] <b>[ERROR] RunStyleHtmlUnit: Unknown browser name FF3, expected browser name: one of   [IE8, IE9, Chrome, FF17]</b>
[INFO] [ERROR] shell failed in doStartup method
[INFO] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.682 sec <<< FAILURE!
[INFO] testSerializeDeserialize(m6.sherpa.portal.widget.base.client.components.frame.GwtTestSerializer)  Time elapsed: 1.641 sec  <<< ERROR!
[INFO] com.google.gwt.junit.JUnitFatalLaunchException: Shell failed to start
[INFO]  at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:732)
[INFO]  at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:705)
[INFO]  at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
[INFO]  at junit.framework.TestCase.runBare(TestCase.java:141)
[INFO]  at junit.framework.TestResult$1.protect(TestResult.java:122)
[INFO]  at junit.framework.TestResult.runProtected(TestResult.java:142)
[INFO]  at junit.framework.TestResult.run(TestResult.java:125)
[INFO]  at junit.framework.TestCase.run(TestCase.java:129)
[INFO]  at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
[INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:255)
[INFO]  at junit.framework.TestSuite.run(TestSuite.java:250)
[INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:255)
[INFO]  at junit.framework.TestSuite.run(TestSuite.java:250)
[INFO]  at junit.framework.TestSuite.runTest(TestSuite.java:255)
[INFO]  at junit.framework.TestSuite.run(TestSuite.java:250)
[INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.doRun(MavenTestRunner.java:105)
[INFO]  at junit.textui.TestRunner.start(TestRunner.java:183)
[INFO]  at org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:63)

任何的想法 ?

4

2 回答 2

1

修复它的最佳方法是将您的 gwt-maven-plugin 也更新到 2.6.0。

在以前的版本(直到并包括 2.5.1)中,<htmlunit>配置属性默认为FF3,但该值在 GWT 2.6.0 中不再有效。gwt-maven-plugin 2.6.0 现在默认属性为FF17.

于 2014-02-07T13:58:53.220 回答
0

看起来 GWT 2.6.0 不再支持 FireFox v3。FF3 已被 FF17 取代。

于 2014-02-07T13:56:32.640 回答