Thursday, March 29, 2012

Re: Code Coverage : How to configure cobertura and selenium with Gwt Client project for code coverage

Dodo,

We get around that by setting unique id's on elements using a 'debugId' for components that need to be individually tested. This helps prevent making brittle tests that depend on a very long XPath that will break if any class is renames or div moved.

You can set them in the UiBinder as just debugId="value" up to GWT 2.3, there after you need to programmaticly set them in the Java side.

Sincerely,
Joe

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