Skip to content

Cypress framework for automation testing using cucumber and GitHub Actions and Azure-pipelines

License

Notifications You must be signed in to change notification settings

Wilfredodiazalguera/cypress-cucumber-automation

Repository files navigation

Cypress.io 10 using Cucumber BDD, GitHub Actions, Azure DevOps Pipeline and Reporter Windows


Project made from scratch to perform automated front-end testing using cucumber as an additional framework to use BDD and Axe as test accessibility tool, also adding integrations to GitHub Actions and Azure DevOps Pipelines




This project test automation framework for www.saucedemo.com. SauceDemo is a sample website built by SauceLabs that allows users to practice browser automation.


Installation

Use the package manager npm nodejs to install the framework and dependencies

npm i

How to use it

npm run test        // Run tests with Cypress UI
npm run testcli     // Run tests with Cypress in headless mode with Chrome

Reporter

Reporter on local machine

After run npm run test or npm run testcli go to /reports folder and open index.html file

After run the reporter command go to /reports folder and open index.html file

Reporter on Github actions or Azure DevOps Pipeline

After run finish go to artifacts and download the reports file, unzip the file and open index.html file

Patter Design implemented (Cypress.io + Cucumber) (Pages Model)

Methods/functions and Selectors

Methods and selectors are on support/ folder and can be accesable by any file, there are one file for each page (The file should contains selectors and commands/methods) (Pages files)

Commands.js file is a general file where you can add the general commands and selectors for all the project. (like base commands/methods)

Logic cucumber implementation

The implementation of logic is on cypress/e2e/cucumberStepsDef/.js, where we call the commands/methods to implement on each feature file.

Test files (Feature files)

The feature file are in cypress/e2e/.feature cypresscontains the Gherkin steps tests.

License

License: MIT

This project is licensed under the terms of the MIT license.

Cypress.io

About

Cypress framework for automation testing using cucumber and GitHub Actions and Azure-pipelines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published