Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ritwik880/automation
Comprehensive frontend and backend automation framework from scratch
https://github.com/ritwik880/automation
automated-testing javascript mocha-chai selenium-webdriver
Last synced: 9 days ago
JSON representation
Comprehensive frontend and backend automation framework from scratch
- Host: GitHub
- URL: https://github.com/ritwik880/automation
- Owner: Ritwik880
- Created: 2024-09-04T15:11:39.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T04:16:37.000Z (2 months ago)
- Last Synced: 2024-10-11T05:40:54.129Z (about 1 month ago)
- Topics: automated-testing, javascript, mocha-chai, selenium-webdriver
- Language: JavaScript
- Homepage:
- Size: 10.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project: JavaScript Automation with Selenium and Mocha
This project demonstrates JavaScript automation using Selenium WebDriver for frontend testing and Mocha for API testing.
## Installation
1. **Prerequisites:** Ensure you have Node.js and npm (or yarn) installed. Verify this using `node -v` and `npm -v` (or `yarn -v`). If not installed, download them from https://nodejs.org/.
3. **Running Frontend Automation test cases and generating test report:**
```bash
cd frontend_automation
```
- Run `npm install selenium-webdriver mocha chai mochawesome`
- Run `npx mocha .\automation.mjs --reporter mochawesome --reporter-options reportDir=./reports reportFilename=automation-test-report`3. **Running Backend Automation API test cases and generating test report:**
```bash
cd backend_automation
```
- Run `npm init -y` (or `yarn init -y`) to create a `package.json` file.
- Run `npm install mocha chai axios mochawesome`
- Run `npx mocha .\api.test.mjs --reporter mochawesome --reporter-options reportDir=./reports reportFilename=automation-test-report`