wdiocuc is a web automation project designed to purchase products based on temperature using WebdriverIO and Cucumber. The project includes automated tests that navigate through a shopping website, add products to the cart based on the temperature, and complete the purchase process.
├── .gitignore
├── features/
│ ├── pageobjects/
│ │ ├── cart.page.ts
│ │ ├── home.page.ts
│ │ ├── moisturizers.page.ts
│ │ ├── page.ts
│ │ ├── paymentConfirmation.page.ts
│ │ ├── sunscreens.page.ts
│ ├── shop.feature
│ ├── step-definitions/
│ │ ├── shop.steps.ts
├── package.json
├── README.md
├── reports/
│ ├── json/
│ │ ├── report.json
│ │ ├── ...
├── tsconfig.json
├── wdio.conf.ts
-
Clone the repository:
git clone https://github.com/asharbinkhalil/wdiocuc.git cd wdiocuc
-
Install dependencies:
npm install
To execute the tests, run the following command:
npx wdio run wdio.conf.ts
- Home Page
- Cart Page
- Moisturizers Page
- Sunscreens Page
- Payment Confirmation Page
- Shop Feature
- Shop Steps
- TypeScript Configuration
- WebdriverIO Configuration
Test reports are generated in the reports/json