Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 14 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.
- Host: GitHub
- URL: https://github.com/abirhossenmunna/cypress_swag_labs
- Owner: AbirHossenMunna
- Created: 2024-10-30T22:11:14.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2024-10-30T22:53:43.000Z (15 days ago)
- Last Synced: 2024-10-30T23:24:15.160Z (15 days ago)
- Topics: chai, cypress, git, javascript, mocha-chai, node-js, npm-package, visual-studio-code
- Language: JavaScript
- Homepage: https://www.saucedemo.com/
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)