Giter Site home page Giter Site logo

cucumberbdd2's Introduction

# CucumberBDD2
1.To run this cucumber framework use the following-
mvn clean
mvn compile
mvn verify
Or customize from command line using -
mvn verify -Denv=qa -Dbrowser=ch -Dcucumber.filter.tag="@regression"
Or mvn test verify -Dcucumber.filter.tags="@signuptest"

#CucumberFrameworkStructure
2. We have 4 folders under src/test/java (base, features, pageobjects and stepdef) and a test runner to run the cucumber tests.
In base - we do the browser setup,
In features - we have the different scenarios and gherkin syntax test cases,
In pageObjects - we have the webelements for particular pages,
In stepDef - we have the automated steps for test case steps,
- we also have hook in stepDef, it basically has two methods-
openbrowser(), which is run before every scenario in features,
teardown(), which is run after every scenario in features,
In testrunner file - we run the cucumber tests. In cucumber options, we have path to our feature file,
glue (package to load our glue code) - stepdef, Hook
and we use plugin to generate cucumber jvm html report from json format

cucumberbdd2's People

Contributors

ala123sobhan avatar

Watchers

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