GithubHelp home page GithubHelp logo

automationschool / geb-and-spock-automation-examples Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 9.0 63 KB

Groovy-based Geb and Spock automation examples. Please run automation tests responsibly.

License: Apache License 2.0

Groovy 100.00%

geb-and-spock-automation-examples's Introduction

Git repo: geb-and-spock-automation-examples

  • Groovy-based Geb and Spock automation examples.
  • Please run automation tests responsibly. You may use the code provided in this repository only to learn Geb and Spock.
  • Latest Geb Manual is your best source for documentation : Latest Geb Manual
  • Licensed under the Apache License, Version 2.0

Running the examples

Twitter login and logout example:

Note: All paths relative to directory: twitter-app-ui-automation

  • Update the src\test\resources\LoginFlowConfig.groovy file with the username / password.

  • For the username, do not use the email but the twitter handle without the @ sign in the front. E.g. mycooltwitterhandle

  • Go to the twitter-app-ui-automation directory and run the automated spec from the command line:

    • cd twitter-app-ui-automation
    • gradlew chromeTest -Denv=test
  • The above runs the twitter automated tests in Chrome. Using the configuration i.e., url, username, password etc supplied under the "test" environment.

Changing environments

  • You can change the environment (env) to use for e.g. to "prod" env, by changing the command-line to use -Denv=prod

Changing to a different browser

  • To run the tests with a different browser replace the chromeTest above with the following choices:

    • Firefox :
      • gradlew firefoxTest -Denv=test
    • Chrome Headless :
      • gradlew chromeHeadlessTest -Denv=test

geb-and-spock-automation-examples's People

Contributors

automationschoolstaff avatar masterautomator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.