This project demonstrates End-to-End (E2E) Web Automation Testing using Cypress on the OrangeHRM Demo application.
The project covers authentication testing, navigation testing, session management, automated reporting, screenshot capturing, and video recording.
Website:
https://opensource-demo.orangehrmlive.com/
| Username | Password |
|---|---|
| Admin | admin123 |
- Login with valid credentials
- Login with invalid credentials
- Verify successful login
- Verify error message validation
- Verify Dashboard page visibility
- Verify successful redirection after login
- Navigate to Admin Module
- Navigate to PIM Module
- Logout successfully
- Verify redirection to Login page
| Technology | Purpose |
|---|---|
| Cypress | E2E Test Automation |
| JavaScript | Test Script Development |
| Node.js | Runtime Environment |
| Mochawesome Reporter | HTML Test Reporting |
| GitHub | Source Code Management |
cypress-orangehrm-e2e-testing/
│
├── cypress/
│ ├── e2e/
│ │ ├── login.cy.js
│ │ ├── dashboard.cy.js
│ │ └── logout.cy.js
│ │
│ ├── fixtures/
│
├── reports/
│ └── mochawesome/
│ ├── index.html
│ ├── screenshots/
│ ├── videos/
│ └── assets/
│
├── cypress.config.js
├── package.json
├── package-lock.json
├── README.md
└── .gitignore
Clone repository:
git clone https://github.com/your-username/cypress-orangehrm-e2e-testing.gitNavigate into project:
cd cypress-orangehrm-e2e-testingInstall dependencies:
npm installnpx cypress opennpx cypress runnpx cypress run --browser chromenpx cypress run --headed --browser chromenpx cypress run --spec "cypress/e2e/login.cy.js"This project uses Mochawesome Reporter.
After test execution:
npx cypress runGenerated report:
reports/mochawesome/index.html
Screenshots are automatically captured when a test fails.
reports/mochawesome/screenshots/
Video recording is automatically generated when running:
npx cypress runGenerated location:
reports/mochawesome/videos/
Note: Videos are not generated when using:
npx cypress open- Open Login Page
- Enter valid username
- Enter valid password
- Click Login
- Verify Dashboard page
- Open Login Page
- Enter invalid password
- Click Login
- Verify error message
- Login successfully
- Open user menu
- Click Logout
- Verify Login page
Only the generated Mochawesome report is kept for portfolio purposes.
This project is intended for educational and portfolio purposes only.