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.
| Browser | selenium.browser | Operating System | Comments |
|---|
| Firefox 3 | *firefox | Linux | Works perfectly. |
| Firefox 3.5 | *firefox | Linux | Works perfectly. |
| Firefox 3.5 | *firefox | OSX 10.6 | Selenium is unable to launch the browser due to a Selenium bug: http://jira.openqa.org/browse/SRC-743. |
| Safari 4 | *safari | OSX 10.6 | Multi-window mode doesn't work. |
| Firefox 3.5 | *firefox | Windows XP | Works perfectly. |
| Google Chrome | *googlechrome | Windows XP | Works perfectly. |
| Internet Explorer 6 | *iexplore | Windows XP | Javascript 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 | *iexplore | Windows XP | See Internet Explorer 6. |
| Opera 9 | *opera | Windows XP | Works perfectly. |
| Safari 4 | *safari | Windows XP | Multi-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.