Giter Site home page Giter Site logo

test-automation-cypress-bdd's Introduction

Web automation

Technologies used

This project uses Cypress and Cucumber

Prerequisites

  1. node
  2. yarn

Dependencies

The project has the following dependencies:

  1. cypress: JavaScript end-to-end testing framework built on top of Node.js
  2. @badeball/cypress-cucumber-preprocessor: Cypress preprocessor that allows us to use Gherkin syntax to write the tests
  3. @bahmutov/cypress-esbuild-preprocessor: Cypress preprocessor that uses esbuild to bundle and transpile the test files
  4. esbuild: JavaScript bundler and transpiler that compiles modern JavaScript code to be compatible with older browsers

Folder structure

The project has the following file structure:

cypress/
    e2e/
        features/
            **.feature
        step_definitions
            **.js
    page-objects/
        **.js
    support/
     commands.js
     e2e.js
.gitignore
cypress.config.js
package.json
README.md
yarn.lock

The e2e folder contains the feature file and the step definitions that implement the test. The page-objects folder contains the page objects that implement the test. The support folder contains custom commands and other configuration files for Cypress. The .gitignore file lists the files and directories that should not be tracked by Git. The cypress.config.js file contains configuration options for Cypress, Cucumber and Pre processors. The package.json file lists the project metadata and dependencies. The yarn.lock file lists the exact version of each dependency used in the project.

Getting started

To get started, clone this repository and install the dependencies:

git clone https://github.com/prgupta1995/Test-automation-cypress-bdd.git cd Test-automation-cypress-bdd yarn install

We can then open the tests using Cypress:

yarn cypress:open This will open the Cypress Test Runner, where we can select the **.feature file and run the tests.

test-automation-cypress-bdd's People

Contributors

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