Jenkins中的GWTTestCase超时

时间:2012-09-06 18:41:41

标签: gwt maven gwttestcase

当我启动通过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)

1 个答案:

答案 0 :(得分:0)

我认为这是因为根据您的架构,GWTTestCase可能会很长时间执行。

尝试按错误日志中的说明扩充超时。