Skip to content

This project aims to provide test automation artifacts in the e2e layer using the Cypress framework and the Java Script language

Notifications You must be signed in to change notification settings

Automated-Test-Lab/cypress-javascript-cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Test Lab 🧪 | Cypress + JS + Cucumber

This project aims to provide test automation artifacts in the end-to-end layer using the Java Script language and Cypress, Cucumber framework.

☑️ You must have:

To execute the project you must have:

📁 Directory structure

Using the Page Objects design pattern, which aims to separate elements into different files based on the pages on which they appear. And so, writing all the specific elements and methods of that page in your file, which is a class, and using them directly in the test scripts. We have the following directory structure in the project:

  • integration/ - contains .feature files with test scenarios written in Gherkin syntax.

  • locators/ - contains the scripts that associate expressions in the step-by-step tests with interactable elements - such as buttons, selectors, checkboxes, text fields, etc. - on the page to be navigated.

  • messages/ - contains the messages used to validate the tests.

  • models/ - represents the structure and logic of a system's data.

  • pages/ - contains the methods that each page has and consumes the locators and models.

  • steps_definitions/ - contains the step-by-step execution scripts for the tests described in the .feature files.

How to run the project 🖥️

Clone the repository:

  git clone git@github.com:Automated-Test-Lab/cypress-javascript-cucumber.git

Install the dependencies:

  npm install

Run the tests:

  npm run test:regressive:chrome

Allure Report 📊

Install allure dependencies:

  npm install -g allure-commandline --save-dev

To generate test reports, run the command:

  allure serve

Technologies 💻

About

This project aims to provide test automation artifacts in the e2e layer using the Cypress framework and the Java Script language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published