This project is a test automation suite built using WebdriverIO, aimed at ensuring the functionality and reliability of web-site. It includes a series of automated tests that cover essential user interactions, including login, item selection, and checkout processes.
You can find the test-case details here.
Before you begin, ensure you have met the following requirements:
- Node.js: Install Node.js (version 14 or higher).
- WebdriverIO package and its dependencies (installable via npm).
- A modern web browser (e.g., Google Chrome) installed on your system for running the tests.
To set up the project, follow these steps:
-
Clone the Repository:
git clone https://github.com/gadiim/webdriverio_saucedemo_test.git
-
Install Dependencies:
npm install
npm run
:
test
: open the WebdriverIO Test Runner.allure:generate
: generates the Allure report from the test results.allure:open
: opens the Allure report in the browser.allure:clear
: clears the reports directory.
Allure is used for generating detailed test reports.
The tests are organized in the following structure:
webdriverio_saucedemo_test/
├── .gitignore
├── README.md
├── package.json
├── tsconfig.json
├── wdio.conf.js
├── test/
│ ├── specs/
│ │ └── test.e2e.js
│ ├── pageobjects/
│ │ ├── loginpage.js
│ │ └── inventorypage.js
│ │ └── cartpage.js
│ │ └── checkoutpage.js
│ └── data/
│ └── users.js
wdio.conf.js
: The WebdriverIO configuration file that contains test settings, browser capabilities, and environment details.test/specs/
: Contains the end-to-end test files.test/pageobjects/
: Contains the page object files that define the structure and elements of the webpages to interact with.test/data/
: Contains any test data files, such as user information for login.
This project is licensed under the MIT License. You are free to use, modify, and distribute this project. See the LICENSE file for more details.