Skip to content

BDD framework using WebdriverIO (async), TypeScript, Cucumber HTML Report to test Automation Practice application.

Notifications You must be signed in to change notification settings

sadabnepal/webdriverio-ts-bdd

Repository files navigation

Web Test Automation Framework

CI

Requirements:

NodeJs VSCode

Getting Started

Clone Repository

1. git clone https://github.com/sadabnepal/webdriverio-ts-bdd.git
2. Navigate to `webdriverio-ts-bdd`

Install the dependencies:

npm install

Run tests:

npm test (to run all tests)
npm run smoke (to run smoke suite)
npm run regression (to run regression suite)

Emailable HTML Report:

<ROOT_PROJECT_FOLDER>/reports/html/index.html

Key Features

- Cucumber BDD framework
- Page Object Design pattern
- Spec and Cucumber HTML report
- Demo of API calls steps within UI actions
- Automatic test trigger using Github actions

Folder Structure

├───tests
|   ├───data
|   ├───pages
|   ├───specs
|   |   ├───features
|   |   └───steps
|   ├───types
|   └───utils
├───.gitignore
├───assignment.txt
├───package-lock.json
├───package.json
├───README.md
├───tsconfig.json
└───wdio.conf.ts

generate step definitions

npx cucumber-js ./FOLDER_PATH/filename.feature  

Sample Report

image