Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serhatbolsu/webdriverio-mocha-uiautomation-boiler
Boilerplate project to run WEB Test Automation WebdriverIO v6 with Mocha
https://github.com/serhatbolsu/webdriverio-mocha-uiautomation-boiler
atdd mocha test test-automation-framework testing-framework web-automation-testing webdriverio
Last synced: about 2 months ago
JSON representation
Boilerplate project to run WEB Test Automation WebdriverIO v6 with Mocha
- Host: GitHub
- URL: https://github.com/serhatbolsu/webdriverio-mocha-uiautomation-boiler
- Owner: serhatbolsu
- License: mit
- Created: 2020-04-03T20:32:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T04:39:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T00:11:05.845Z (about 2 months ago)
- Topics: atdd, mocha, test, test-automation-framework, testing-framework, web-automation-testing, webdriverio
- Language: JavaScript
- Homepage:
- Size: 940 KB
- Stars: 23
- Watchers: 4
- Forks: 35
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Mocha WebdriverIO WEB Testing Boilerplate [![CircleCI](https://circleci.com/gh/serhatbolsu/webdriverio-mocha-uiautomation-boiler.svg?style=svg)](https://circleci.com/gh/serhatbolsu/webdriverio-mocha-uiautomation-boiler)
====================
WEB UI tests with Mocha, WebdriverIO v7 with PageObjectSample and ready to use boilerplate project for e2e / ui test automation with user as the QA Engineer in mind.
## Features
- WebdriverIO v7
- Page Object model
- Component model example (reusable ui parts within a page)
- Sauce Labs integration [SauceLabs](https://saucelabs.com/)
- Allure Report
- Screenshot capture for failing tests
- ESLint
- Windows OS Support (like: linebreak)## How to Start
**Download or clone the project**
**Install**
(optional) Create your own configurations.
- Rename the `sample.env` and rename to `.env` and change required variables```npm install```
**Run Tests**
```npm test```
**Allure Report**
(you must have installed [allure command line](https://docs.qameta.io/allure/#_get_started))```npm run report```
**Microsoft Teams Mini Report**
```
# For Unix
export HOOK_URL=
# For Windows Powershell
$env:HOOK_URL = ''npm run report.teams
```## Tips & Tricks
## Running in SauceLabs
Add a valid `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` to your environment variables to enable that integration.
([Settting up Sauce](http://webdriver.io/guide/usage/cloudservices.html#Sauce-Labs))`npm run test.sauce`
### Debug Command Line Flag to adjust timeout
By setting the 'DEBUG' environment variable to true, the test timeout with be essentially removed,
allowing you to run without your tests timing out.`DEBUG=true npm test`
### Clean up your test results before execution`npm run clean`