Friday, August 31, 2012

Re: com.google.gwt.junit.client.TimeoutException: The browser did not contact the server within 60000ms.

For the next poor soul - this started happening to me as soon as I moved from Java 6 (where my GWTTestCases worked fine) to Java 7. 

I know, I know, don't use GWTTestCases.  We learned that the hard way.  We have a couple of legacy ones that we never converted into Selenium tests.  Well, I guess this will force us to convert them now.

Ryan

On Monday, November 2, 2009 7:20:03 AM UTC-6, Dominik Steiner wrote:
I haven't tried the UiBinder yet, but if i remember right I read
somewhere that it is now prefered to use HtmlUnit tests instead of
using the GWTTestCase.

HTH

Dominik

On Oct 31, 9:49 am, Tiago Fernandez <tiago...@gmail.com> wrote:
> Hello,
>
> I have a fully working webapp built with GWT-2.0.0-ms2's UiBinder.
> Recently I decided to get it covered by unit tests using GWTTestCase,
> but after coding a simple test case:
>
> public class MyTest extends GWTTestCase {
>
>   @Override public String getModuleName() {
>     return "foo.bar.MyApp";
>   }
>
>   public void testAnythingYouWant() {
>     assertTrue(true);
>   }
>
> I stumbled on this:
>
> com.google.gwt.junit.client.TimeoutException: The browser did not
> contact the server within 60000ms.
>  - 1 client(s) haven't responded back to JUnitShell since the start of
> the test.
>  Actual time elapsed: 60.009 seconds.
>
>         at com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:800)
>         at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:989)
>         at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:436)
>         at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
> 386)
>         at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:269)
>         at com.intellij.junit3.JUnit3IdeaTestRunner.doRun
> (JUnit3IdeaTestRunner.java:108)
>         at com.intellij.rt.execution.junit.JUnitStarter.main
> (JUnitStarter.java:60)
>
> Process finished with exit code 255
>
> The same test works fine when targeting a module NOT UiBinder-based.
>
> Any hint? I am using IDEA on a Mac, with the following VM arguments:
> -XstartOnFirstThread -Xmx512M
>
> Thanks in advance,
> Tiago Fernandez

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/x-CWA6q8v3QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment