Geb integration for Grails

  • Authors : Luke Daley
9 votes

5% of Grails users

Dependency :
compile ":geb:0.9.2"

Documentation

Summary

Integrates the geb functional testing framework

Installation

This plugin does not work with Grails 2.3.0.

Version 0.9.2 and later of this plugin are compatible with Grails 2.3.1 and later.

inside BuildConfig.groovy as part of grails.project.dependency.resolution

plugins {
     test("org.grails.plugins:geb:«latest version number»")
}

For further reference please review the instructions here

Description

What is it?

Geb is a browser automation solution.

It brings together the power of WebDriver, the elegance of jQuery content selection, the robustness of Page Object modelling and the expressiveness of the Groovy language.

It can be used for scripting, scraping and general automation — or equally as a functional/web/acceptance testing solution via integration with testing frameworks such as Spock, JUnit & TestNG.

The Book of Geb contains much of the information you need to get started with Geb.

An example application with spock tests exists here Geb-example-grails. Grab it for reference and also make sure to check out the BuildConfig.

You can view and contribute to Geb via github: https://github.com/geb/geb