Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abirhossenmunna/cypress_swag_labs

This repository contains automated end-to-end tests developed with Cypress, an advanced JavaScript-based testing framework designed for effective testing of web applications, utilizing the Mocha and Chai frameworks.
https://github.com/abirhossenmunna/cypress_swag_labs

chai cypress git javascript mocha-chai node-js npm-package visual-studio-code

Last synced: 6 days ago
JSON representation

This repository contains automated end-to-end tests developed with Cypress, an advanced JavaScript-based testing framework designed for effective testing of web applications, utilizing the Mocha and Chai frameworks.

Awesome Lists containing this project

README

        

# Cypress_mocha_Automation for SwagLabs

### This is a complete project where a SwagLabs site is automated by cypress and writing test suites using mocha and chai as testing framework.
The following key modules/pages are automated:

* User can Login To the System
* User can product Add To Cart
* Purchase Product

### Technology:

* Tool: Cypress
* IDE: Visual studio code
* Language: JavaScript
* Test_Runner: Mocha and chai

### Prerequisite:
* Node.js
* Visual studio code
* Create the project folder
* Clone this project and unzip it
* Navigate to the project directory and install the required dependencies

### Run the Automation Script by the following command:
* Open Cypress Test Runner

```bash
npm init -y
```
```bash
npx cypress open
```
* Run All Tests in Headless Mode

```bash
npx cypress run
```
* Make a Report Generate

```bash
npm i mochawesome-report-generator
```
#### Here is the Test report:
![Screenshot 2024-10-31 045229](https://github.com/user-attachments/assets/52387f69-d65a-43ca-af7a-d30c669ed34c)