Hi Siva, I used Selenium on a project to do integration tests of a GWT application; it worked pretty well. We didn't run the tests in hosted mode, we ran the tests in web mode deployed to our application server. The trick was remembering to use the "waitFor" Selenium commands to avoid tests intermittently failing due to race conditions -- this is true for all Ajax applications.
As for testing an application, if you're talking about unit tests, I've written an article on writing GWT applications test-first that will appear in the November 2008 issue of Better Software. This is an excellent blog post on GWT TDD: http://robvanmaris.jteam.nl/2008/03/09/test-driven-development-for-gwt-ui-code/ I've written a blog post about how and when (and why you shouldn't) test GWT widgets: http://blog.danielwellman.com/2008/06/strategies-for-testing-gwt-widgets-and-view-components.html I think GWT 1.5 also includes a special testing mode designed for testing with tools like Selenium that allows you to generate repeatable DOM IDs for widgets. Hope this information helps, Cheers, Dan On Oct 8, 9:56 am, siva <[EMAIL PROTECTED]> wrote: > Hi > > I'm a novice to GWT and evaluating it for one of the new projects. > Selenium looks interesting as a testing solution but looks more of a > integration test solution. Can we use selenium to unit test our code > and have them run in GWT hosted mode ? > > Are there any good tutorials/articles which talk about integrating > Selenium with GWT ? > > -Siva --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
