Skip to content

NazarAntoniuk19/SwagLabs_AT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3a69c56 · Feb 13, 2025

History

19 Commits
Feb 13, 2025
Feb 13, 2025
Feb 9, 2025
Feb 9, 2025
Feb 9, 2025
Feb 9, 2025
Feb 9, 2025
Feb 9, 2025

Repository files navigation

WebdriverIO E2E Tests for SwagLabs

Overview

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.

Features

  • 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

Prerequisites

Ensure you have the following installed:

Installation

Clone this repository and install dependencies:

git clone <repository-url>
cd <repository-folder>
npm install

Running Tests

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 Structure

Mocha Framework

  • /test-mocha/specs: Contains test scripts
  • /test-mocha/pageobjects: Implements Page Object Model (POM)
  • mocha.conf.js: WebdriverIO configuration file for Mocha Framework

Cucumber 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

License

This project is licensed under the MIT License.