Thursday, December 1, 2011

Re: How can I trap for a 404 in my GWTTestCase?

You can't. Or rather, you only have access to the response page's body, so if you can identify a 404 from that, you're done.

BTW, your test actually isn't even seeing the 404, because you finishTest() just after you saveButton.click(), so the form is submitted (actually probably just after the code yields to the browser, so *after* the finishTest()) but you don't wait for the FormPanel.SubmitCompleteEvent; so it's expected that your test pass.

--
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/-/XpE2yPc9fmgJ.
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