Grails - Selenium RC Running Seleniu...

Running Selenium Tests

Selenium tests are placed in test/selenium and are executed as part of the functional test phase with the standard grails test-app or grails test-app -functional commands. As with unit and integration tests you can run individual tests or groups of tests by specifying the test names without the "Tests" suffix. Again, like unit and integration tests you can use grails test-app -rerun to rerun failing tests.

The plugin will automatically start Selenium Server and Selenium instances at the start of the suite and close them down cleanly at the end so your tests do not need to (and indeed should not) do so.

Browser Peculiarities

The table below summarises browser/OS combinations that the plugin has been tested with and any issues known to exist with particular combinations. Please note these are likely issues of the Selenium library (or even the underlying browser) rather than anything the plugin can do anything about.

Browserselenium.browserOperating SystemComments
Firefox 3*firefoxLinuxWorks perfectly.
Firefox 3.5*firefoxLinuxWorks perfectly.
Firefox 3.5*firefoxOSX 10.6Selenium is unable to launch the browser due to a Selenium bug: http://jira.openqa.org/browse/SRC-743.
Safari 4*safariOSX 10.6Multi-window mode doesn't work.
Firefox 3.5*firefoxWindows XPWorks perfectly.
Google Chrome*googlechromeWindows XPWorks perfectly.
Internet Explorer 6*iexploreWindows XPJavascript errors in single window mode every time a page opens. The dragAndDropToObject command can fail if the target is outside the viewport - suggested workaround is to have your test call selenium.windowMaximize().
Internet Explorer 7*iexploreWindows XPSee Internet Explorer 6.
Opera 9*operaWindows XPWorks perfectly.
Safari 4*safariWindows XPMulti-window mode doesn't work.

If you are able to add to this list, whether to report issues or confirm success with particular browser/OS combinations please contact the plugin author.