Skip to content

Automated testing project for validating the functionality of the SauceDemo website using WebdriverIO + Cucumber

Notifications You must be signed in to change notification settings

gadiim/webdriverio_cucumber_saucedemo_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webdriverio + Cucumber Saucedemo Test

Overview

This project contains automated tests for the SauceDemo website using WebdriverIO and Cucumber.

Installation

To set up the project, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/gadiim/webdriverio_cucumber_saucedemo_test.git
  2. Navigate into the directory:

    cd webdriverio_cucumber_saucedemo_test
  3. Install Dependencies:

    npm install

Running Tests

Run the tests using:

npm test

Or:

npx wdio run wdio.conf.js

Reporting

This project uses Spec Reporter to display test execution results in the terminal.

Test Structure

webdriverio_cucumber_saucedemo_test/
├── features/                   – contains .feature files with test cases.
│   ├── pageobjects/            – contains Page Object Model for the pages.
│   │   └──login.page.js
│   ├── step-definitions/       – contains step definitions for Cucumber.
│   │   └── login.steps.js
│   └── login-error.feature
├── .gitignore
├── package.json
├── README.md
├── wdio.conf.js                 – WebdriverIO configuration file.

Technologies Used

  • WebdriverIO – for test automation
  • Cucumber – for BDD (Behavior-Driven Development)
  • Node.js – runtime environment

Acknowledgements

  • This project was developed as part of a personal learning exercise.
  • Special thanks to the open-source community for their invaluable resources and tools. 😊

About

Automated testing project for validating the functionality of the SauceDemo website using WebdriverIO + Cucumber

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published