Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/codewithmmak/webdriverio-assertion-demo

This is a test automation framework designed using WebdriverIO to demonstrate different assertions
https://github.com/codewithmmak/webdriverio-assertion-demo

expect-webdriverio javascript lambdatest nodejs webdriverio webdriverio-boilerplate-framework

Last synced: about 1 month ago
JSON representation

This is a test automation framework designed using WebdriverIO to demonstrate different assertions

Awesome Lists containing this project

README

        

---
# WebdriverIO Assertions Demo Setup Guide
---

## Features of this framework
* Expect in WebdriverIO (Assertions)
* [Cloud Integration: LambdaTest](http://www.lambdatest.com?fp_ref=md-moeen-ajaz40)

## Getting started

### Pre-requisites
* Download and install Node.js
* Download and install any Text Editor like Visual Code/Sublime/Brackets

### Setup Visual Code - optional
* Install GitLens Extension from the Marketplace: `GitLens — Git supercharged by GitKraken https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens`
* Install Material Icon Theme Extension from the Marketplace: `Material Icon Theme by Philipp Kief https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme`
* Go to Visual Code Preference > Setting and search `formatOnSave` and enable/ON it.

### Setup Scripts
* Clone the repository into a folder
* Go to Project root directory and install Dependency: `npm install`
* All the dependencies from package.json would be installed in node_modules folder.

## How to Run Test Locally
* Go to the Project root directory and run command: `npm run wdio`

## How to Run Single Spec Locally
* Go to the Project root directory and run command: `npm run wdio wdio.conf.js --spec ./test/specs/to-have-url.e2e.js`

## How to Run Test on LambdaTest Cloud
* Go to Project root directory and run command: `npm run lambdatest`

### Terminal Test Result
![Terminal Test Result](./assets/terminal-lt.PNG?raw=true "Terminal Test Result")

### LambdaTest Cloud Results
![LambdaTest Cloud Results](./assets/lambdatest-results.PNG?raw=true "LambdaTest Cloud Results")

![LambdaTest Cloud Results Expanded View](./assets/lambdatest-results-expanded-view.PNG?raw=true "LambdaTest Cloud Results Expanded View")