Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sadabnepal/webdriverio-ts-bdd

BDD framework using WebdriverIO (async), TypeScript, Cucumber HTML Report to test Automation Practice application.
https://github.com/sadabnepal/webdriverio-ts-bdd

allure-report async cucumber multiple-cucumber-html-reporter test-automation-framework typescript wdio wdio-async wdio-cucumber-steps wdio7-typescript-bdd webdriverio webdriverio-boilerplate-framework webdriverio-typescript

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

Web Test Automation Framework



[![CI](https://github.com/sadabnepal/WebdriverIOTypeScriptCucumber/actions/workflows/main.yml/badge.svg)](https://github.com/sadabnepal/WebdriverIOTypeScriptCucumber/actions/workflows/main.yml)

### Requirements:
[![NodeJs](https://img.shields.io/badge/-NodeJS-%23339933?logo=npm)](https://nodejs.org/en/download/)
[![VSCode](https://img.shields.io/badge/-Visual%20Studio%20Code-%233178C6?logo=visual-studio-code)](https://code.visualstudio.com/download)

### Getting Started
Clone Repository
```bash
1. git clone https://github.com/sadabnepal/webdriverio-ts-bdd.git
2. Navigate to `webdriverio-ts-bdd`
```

Install the dependencies:
```bash
npm install
```

Run tests:
```bash
npm test (to run all tests)
npm run smoke (to run smoke suite)
npm run regression (to run regression suite)
```

Emailable HTML Report:
```
/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](https://user-images.githubusercontent.com/65847528/142774279-1e18cbd2-9869-4fd9-ac3b-af397022fa73.png)