Jenkins中的GWTTestCase超时

Jenkins中的GWTTestCase超时,gwt,maven,gwttestcase,Gwt,Maven,Gwttestcase,当我启动通过Maven运行GWTTestCase的Jenkins作业时,该作业会随机失败,出现相同的异常。我无法在Eclipse中重现这种行为。以下是例外 <testcase time="300.144" classname="client.gdo.model.impl.GwtTestLevelOfDetailDefinition" name="testGetAttributesAfterJsonParse"> <error message="The browser d

当我启动通过Maven运行GWTTestCase的Jenkins作业时,该作业会随机失败,出现相同的异常。我无法在Eclipse中重现这种行为。以下是例外

<testcase time="300.144" classname="client.gdo.model.impl.GwtTestLevelOfDetailDefinition" name="testGetAttributesAfterJsonParse">
    <error message="The browser did not complete the test method WebFrameworkClientTest.JUnit:client.gdo.model.impl.GwtTestLevelOfDetailDefinition.testGetAttributesAfterJsonParse in 300000ms.
  We have no results from:
161.134.22.175 / Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
Actual time elapsed: 300.144 seconds.
Try increasing this timeout using the &apos;-testMethodTimeout minutes&apos; option
" type="com.google.gwt.junit.client.TimeoutException">com.google.gwt.junit.client.TimeoutException: The browser did not complete the test method WebFrameworkClientTest.JUnit:client.gdo.model.impl.GwtTestLevelOfDetailDefinition.testGetAttributesAfterJsonParse in 300000ms.
  We have no results from:
161.134.22.175 / Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
Actual time elapsed: 300.144 seconds.
Try increasing this timeout using the &apos;-testMethodTimeout minutes&apos; option

at com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:1031)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1381)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)

com.google.gwt.junit.client.TimeoutException:浏览器未完成测试方法WebFrameworkClientTest.junit:client.gdo.model.impl.GwtTestLevelOfDetailDefinition.testGetAttributesAfterJsonParse,时间为3000000毫秒。
我们没有以下方面的结果:
161.134.22.175/Mozilla/5.0(Windows;U;Windows NT 5.1;en-US;rv:1.9.0.19)Gecko/2010031422 Firefox/3.0.19
实际运行时间:300.144秒。
尝试使用&apos-testMethodTimeout分钟&apos;选项
位于com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:1031)
位于com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1381)
位于com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
位于com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
位于com.google.gwt.junit.client.gwtestcase.runTest(gwtestcase.java:441)

我认为这是因为根据您的体系结构,
gwtestcase
可能需要很长时间才能执行


尝试按照错误日志中的指示增加超时。

在Eclipse中运行测试需要6秒钟。在任何其他环境中运行不应超过5分钟。好的。延迟表示在执行
testGetAttributesAfterJsonParse
期间有一个超时。你能提供这个测试的代码吗?(或相关的代码片段)?该测试扩展了GWTTestCase,只在一个简单的短字符串上执行JsonUtils.safeEval()。