This project contains automated tests for the SauceDemo website using WebdriverIO and Cucumber.
To set up the project, follow these steps:
-
Clone the Repository:
git clone https://github.com/gadiim/webdriverio_cucumber_saucedemo_test.git
-
Navigate into the directory:
cd webdriverio_cucumber_saucedemo_test
-
Install Dependencies:
npm install
Run the tests using:
npm test
Or:
npx wdio run wdio.conf.js
This project uses Spec Reporter to display test execution results in the terminal.
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.
- WebdriverIO – for test automation
- Cucumber – for BDD (Behavior-Driven Development)
- Node.js – runtime environment
- This project was developed as part of a personal learning exercise.
- Special thanks to the open-source community for their invaluable resources and tools. 😊