Skip to content

Akash-incuByte/BasicCypressRepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress Basic Repository Template

This is a skeleton repository that provides a basic setup for Cypress with Cucumber and Page Object Model pattern. It includes Allure reporting integration.

Features

  • Cypress with Cucumber for BDD testing
  • Page Object Model implementation
  • Allure reporting integration
  • Basic example test implementation

Project Structure

cypress/
├── e2e/
│   └── features/        # Feature files
├── pages/              # Page Objects
└── support/
    ├── e2e.js          # Support file
    └── step_definitions/ # Step definitions

Setup

  1. Clone the repository
  2. Install dependencies:
npm install

Running Tests

Run tests with Allure reporting:

npx cypress run --env allure=true

Generate and open Allure report:

npx allure generate allure-results --clean
npx allure open

Page Object Model

The project follows the Page Object Model pattern for better maintainability:

  • Each page has its own class in cypress/pages/
  • Page objects contain selectors and methods for interacting with the page
  • Step definitions use page objects to perform actions

Example Implementation

The repository includes a basic example showing:

  • Feature file with scenarios
  • Page object implementation
  • Step definitions using page objects
  • Test execution with Allure reporting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors