This reporsitory has an Automated end-to-end testing suite for OpenCart using Cypress — aimed at validating key user flows like product browsing, cart operations, and checkout(WIP).
opencartThis a live demo e-commerce platform built on OpenCart, provided by Naveen AutomationLabs. It simulates a real online store with features like user registration, login, product browsing, search, cart, and checkout — making it ideal for practicing frontend and backend Cypress automation testing in realistic shopping workflows.
This project includes:
- Page Object Model based Framework
-
it()blocks include logs and response error validations - independent execution of each tests in
describe()block throughbeforeEach()andafter()hooks - Secure handling of secrets using GitHub Secrets in Workflows
- Tag based Test isolation on CI/CD Pipeline for Smoke, E2E, new Feature etc. based tests using grep plugin (
cypress-grep/src/plugin) - Mochawesome reporting (
cypress-mochawesome-reporter/) - Isolated Workflows based on test tags for parallel execution and report publishing
- API Test Coverage through
cy.request()andcy.intercept() - UI Coverage
- Complete functional flow of an ecommerce application (This is a WIP)
[git clone https://github.com/chandreyee729/cpress_e2e_opencart.git cd cpress_e2e_opencart npm install]
Install cypress: npm install cypress --save -dev
Open cypress: npx cypress open
Headless run: npx cypress run
install packages if reporter is not downloaded:
npm install --save-dev mochawesome mochawesome-merge mochawesome-report-generator
npm install --save-dev cypress cypress-mochawesome-reporter
After test execution merge json reports
npx mochawesome-merge cypress/reports/*.json > cypress/reports/merged-report.json
generate HTML report:
npx marge cypress/reports/merged-report.json --reportDir cypress/reports --reportFilename final-report
Test Reports are published in https://chandreyee729.github.io/cpress_e2e_opencart/
Created By Chandreyee Chakraborty GitHub: @chandreyee729