GithubHelp home page GithubHelp logo

anurut / bdd-test-automation-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andymacdroo/bdd-test-automation-template

0.0 1.0 0.0 8 KB

A template project for creating a test automation suite using java, selenium, selenide & cucumber.

Java 91.38% Gherkin 8.62%

bdd-test-automation-template's Introduction

bdd-test-automation-template

A very simple template project for creating a test automation suite using java, selenium, selenide & cucumber. Modify, integrate it and extend it in any way to your heart's content.

Selenide

The project uses Selenide, a wrapper around Selenium which has several benefits over using Selenium alone.

Page Object Model

A starter implementation of the page object model lives within the project. For further information read the following article.

Dependencies

ChromeDriver

You must download chrome drivers for your specific OS and unpack them into a directory called drivers within the project's main directory.

An actual running web app

This template was created to demonstrate BDD principles which advocates writing tests first before any development. As such you should use this template to build your own application.

Running the Test Suite

In the project directory run mvn test. The suite will attempt to run against a web-app deployed on http://localhost:8080/ by default. This can be overridden at run-time by specifying a system property -DBASE_WEB_APP_URL= or modifying the getBaseAppUrl() method in BaseStepDefinition

Suggestions for Extending the Suite

  • Incorporate DI into the project (e.g. cucumber-spring) - use this to set the location of the base app URL at runtime
  • Implement test parallelism with the cucumber-jvm-parallel plugin
  • Integrate with Fabric8 and run tests against a docker container containing your web app
  • Integrate tests into a CI / CD pipeline

bdd-test-automation-template's People

Contributors

andymacdroo avatar

Watchers

James Cloos 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.