This repository contains end-to-end (E2E) tests for the SwagLabs website. The tests are built using WebdriverIO, ensuring automated validation of the website's functionality.
- Automated test execution for key functionalities of SauceDemo
- Uses WebdriverIO with JavaScript
- Page Object Model (POM) for better test structure
- Implements Mocha and Cucumber Frameworks
- Supports parallel execution
Ensure you have the following installed:
Clone this repository and install dependencies:
git clone <repository-url>
cd <repository-folder>
npm install
Run tests based on Mocha Framework:
npm run test:mocha
Run tests based on Cucumber Framework:
npm run test:cucumber
Run all tests:
npm run test
/test-mocha/specs
: Contains test scripts/test-mocha/pageobjects
: Implements Page Object Model (POM)mocha.conf.js
: WebdriverIO configuration file for Mocha Framework
/test-cucumber/features
: Contains features/test-cucumber/features/step-definitions
: Contains step definitions for features/test-cucumber/features/pageobjects
: Implements Page Object Model (POM)cucumber.conf.js
: WebdriverIO configuration file for Cucumber Framework
This project is licensed under the MIT License.