Coder Social home page Coder Social logo

blog-ui-bdd-testing's Introduction

BDD testing - Cucumber and Serenity setup running on docker containers

BDD testing of pippo demo angular-crud-app with Cucumber and Serenity

Sources for the blog posts Using docker for orchestrating a reusable BDD web testing setup with Selenium grid - Part I and BDD web testing setup - Docker, Cucumber and Serenity - Part II

Prerequisites

$ git clone [email protected]:balamaci/blog-ui-bdd-testing.git
  • Create the docker images locally There is a one time run of
$ ./docker-images-build.sh

which will create the docker images locally. Normally you'd have them pushed to a repository, but I wanted to show there are no "hidden tricks", or you can use them as example to build your own. So instead we use the script to build locally the required images.

Code run

To run the bdd tests anytime just do

$ ./restart.sh

which basically does docker-compose run uitests mvn clean verify

This would execute the Cucumber tests and produce the Serenity reports which can be accessed at ./target/site/index.html

BDD preview

We included pippo-demo.war -the application we run our tests against- on the repo to have a single command to run the job. Normally you'd have it provided by another build job that would trigger the testing job.

blog-ui-bdd-testing's People

Contributors

balamaci avatar

Watchers

 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.