We are testing our app with Selenium. I've written some wrappers from
common components (only for GXT at the moment) and also common actions
like "select tree item x" etc. I'm setting Id's on components of
interest.The balance is to write locators (XPath) that are specific
enough with out being fragile.

The tests are running reliably, although they are quite slow so we've
kept these integration and acceptance tests to a minimum. As unit
tests are much faster, we separate all "controller" and "view" code so
we can test with plain junit / EasyMock.

Carl.

On Jul 20, 1:19 am, Daniel Wellman <[email protected]> wrote:
> If you're looking to write unit or integration tests for GWT client
> code, I've written an article about my experiences here:
> "Google Web Toolkit: Writing Ajax Applications 
> Test-First"http://blog.danielwellman.com/2008/11/test-first-gwt-article-in-novem...
>
> If you've finished your application and want to add simple end-to-end
> smoke tests, you might want to consider using WebDriver or Selenium.
> To add temporary DOM IDs which only appear for testing (which will
> make writing those WebDriver or Selenium tests easier), consider using
> the method on UIObject called ensureDebugId:
>
> http://tinyurl.com/mdwyky
> orhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
>
> Dan
>
> On Jul 20, 5:38 am, Joakim Sjöberg <joakim.sjob...@artificial-
>
> solutions.com> wrote:
> > Hello!
>
> > I have a question that you might be able to answer. We are developing a GWT 
> > application and would like some form of Automatic testing of the
>
> > GWT application. Is there any good way to do this? Could someone please 
> > point me in the right direction?
>
> > Regards
>
> > Joakim Sjöberg
> > Developer
> > Artificial Solutions Scandinavia AB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to