GithubHelp home page GithubHelp logo

altughan09 / cucumber-with-selenium_behaviour-driven-development-tutorial Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.67 MB

Behavior-driven development is a software development process that is based on Test-Driven Development (TDD). In this tutorial I have used Cucumber tool that implements BDD approach in projects. Along with that I used Selenium Framework that helped me automate Chrome browser during testing phase.

Gherkin 13.92% Java 86.08%

cucumber-with-selenium_behaviour-driven-development-tutorial's Introduction

Cucumber-with-Selenium_Behaviour-Driven-Development-Tutorial

Behavior-driven development is a software development process that is derived from Test-Driven Development (TDD) concept. BDD enables all the involved parties to work together on the requirements of a project while TDD only gives the developer an understanding of what the system should do.

BDD benefits:

  • Strong collaboration with the non-developers all the involved parties have a strong understanding of the project
  • High visibility by using a language understood by all
  • Lower costs by improving the quality of the code

In this tutorial I have implemented in my project a BDD tool known as Cucumber to test the following two scenarios;

  • Check login & logout functionality on demo website available at http://demo.guru99.com/V4/
  • Check the reset functionality of the login form

To execute these Cucumber test scenarios, I created Features and Step Definition files.

Cucumber tool is based on the Behavior Driven Development process that bridges the gap between non-developers and developers. It uses a plain text format called Gherkin that non-programmers are able to read.

To make the testing phase even easier I also took advantage of Selenium Framework that is a browser automation tool. Before starting out with the project the following libraries must be referenced inside the project file.

Selenium jar files: (Downloaded from Selenium Official Website)

  • Selenium-server-standalone

Cucumber jar files (Downloaded from Maven Repository)

  • Cucumber-core
  • Cucumber-html
  • cobertura code coverage
  • Cucumber-java
  • Cucumber-junit
  • Cucumber-jvm-deps
  • Cucumber-reporting
  • Hemcrest-core
  • Gherkin
  • Junit

alt text

alt text

alt text

alt text

alt text

alt text

cucumber-with-selenium_behaviour-driven-development-tutorial's People

Contributors

altughan09 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.