Skip to content

Latest commit

 

History

History
99 lines (68 loc) · 3.12 KB

File metadata and controls

99 lines (68 loc) · 3.12 KB
# SoftyeOne Cypress Testing

This repository contains automated test scripts for **SoftyeOne** using [Cypress](https://www.cypress.io/).  
It helps in validating application functionality, UI, and workflows with reliable end-to-end tests.

---

## 📂 Project Structure

- `cypress/` → Test cases and support files  
  - `e2e/` → End-to-End test scripts  
  - `fixtures/` → Test data (e.g., JSON files for inputs)  
  - `support/` → Custom commands and helpers  
- `cypress.config.js` → Cypress configuration  
- `allure-results/` → Test execution results (generated after running tests)  
- `allure-report/` → HTML test reports (generated by Allure)  
- `.allure/` → Allure internal files  
- `package.json` → Project dependencies and scripts  

---
## 🧪 Test Coverage

The following modules have been tested with Cypress:

| **Module**              | **Number of Test Cases** | **Description** |
|--------------------------|---------------------------|-----------------|
| Sign Up Page             | 12                        | Validated user registration with required fields, input validations, and error handling for incorrect data. |
| Login Page               | 10                        | Tested login with valid/invalid credentials, error messages, and session handling. |
| Settings Page            | 21                        | Verified user settings updates including profile details, password change, and preferences. |
| Inventory Page           | 38                        | Ensured product addition, updates, deletion, and stock management functions work correctly. |
| Billing Invoice Page     | 27                        | Checked invoice creation, tax calculations, payment validations, and error scenarios. |
| All Invoice Page         | 11                        | Tested invoice listing, search, filtering, and download/export functionality. |
| Customer Page            | 21                        | Validated customer addition, update, deletion, and viewing customer details. |
| Dashboard Page           | 13                        | Confirmed dashboard widgets, quick links, data visualization, and navigation. |
| User Management          | 24                        | Tested user roles, permissions, account creation, updates, and access control. |**Total Test Cases Automated: 177**


---

## 🚀 Installation

1. Clone the repository:
   ```bash
   git clone https://github.com/MahalakshmiMohan21/SoftyeOne-Cypress-Testing.git
   cd SoftyeOne-Cypress-Testing
  1. Install dependencies:

    npm install

▶️ Running Tests

Run Cypress tests in headless mode:

npx cypress run

Run Cypress tests in interactive mode:

npx cypress open

📊 Test Reports (Allure)

  1. Generate Allure results:

    npx cypress run
  2. Generate and open the report:

    allure generate allure-results --clean -o allure-report
    allure open allure-report

🛠️ Tech Stack

  • Cypress – End-to-end testing framework
  • Allure – Test reporting
  • JavaScript / Node.js