Fork me on GitHub

5 Nov 2009

Grails Selenium RC Plugin Released

I've finally got the first release of the Selenium RC plugin out of the door. Just run grails install-plugin selenium-rc to install.

For anyone unfamiliar with Selenium RC basically the plugin allows you to write and run Selenium tests in Groovy to functionally test Grails apps using a real browser. The tests run in the functional phase using grails test-app or grails test-app -functional.

In terms of compatibility there is a very minor issue with Safari and some slightly more annoying ones with IE - all of which the plugin's default configuration will work around for you. Unfortunately Firefox 3.5 on OSX Snow Leopard doesn't want to play at all due to an open Selenium bug. Firefox on other platforms, Google Chrome and Opera all appear to be 100% compatible.

I've tried to make writing the tests themselves as similar to regular Grails unit and integration testing as possible. Not only that, if you have the Spock plugin installed you can write your Selenium tests as Spock Specifications.

Documentation is here, source code is on GitHub and issues and feature requests can be raised on Codehaus' JIRA. I've got plenty of things to work on for future releases such as Selenium Grid integration and automatic screen-grabbing when assertions fail.

4 comments:

jonchase said...

This is AWESOME! The Grails community has really needed something like this in plugin form. Can't wait to try it out and get it set up on a continuous integration server. :)

Michael Smolyak said...

Rob,

I am trying to use your Selenium RC plugin and have several questions. Is there a good place to post those questions with the hope of getting answers from you?

Thank you,

Michael Smolyak

Rob said...

The best place is on the Grails user mailing list.

Nikshit Narula said...

Awesome Post!
Download Happy Diwali HD wallpapers 2017
Also Read trending Story game of thrones comics
Also Check out Latest vacancy of Government Job Haryana jobs 2017