/basar-spockgeb-demo

Spock geb demo project.

Primary LanguageJava

Spock and Geb Demo

The project contains some sample spock and geb tests.

Selenium Webdriver Binaries Management

The Webdriver binaries are automatically downloaded by using a small library called WebDriverManager more details see https://github.com/bonigarcia/webdrivermanager.

Run Tests

The spock geb tests can be run via gradle:

./gradlew test

For running the tests in a specific browser invoke

  • gradlew firefoxTest (default)
  • gradlew chromeTest
  • gradlew ieTest
  • gradlew phantomJsTest

Run Web Application

To run the demo web application invoke the Java main class:

basar.BasarApplication

or run the the main class via gradle:

./gradlew bootRun

When the demo web application is running, the web application provides two simple pages under

Demo Spock Geb Tests

The demo tests can be found in the folder src/test/groovy in the package basar. There are three demo tests:

Slides

There are a few slides around the demo on slideshare:

Links