Git Product home page Git Product logo

webdriverio-mocha-uiautomation-boiler's Introduction

Mocha WebdriverIO WEB Testing Boilerplate CircleCI

WEB UI tests with Mocha, WebdriverIO v7 with PageObject

Sample 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
  • 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)

npm run report

Microsoft Teams Mini Report

# For Unix
export HOOK_URL=<microsoft_teams_webhook_url>
# For Windows Powershell
$env:HOOK_URL = '<microsoft_teams_webhook_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)

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

webdriverio-mocha-uiautomation-boiler's People

Contributors

christian-bromann avatar dependabot[bot] avatar imanel avatar serhatbolsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

webdriverio-mocha-uiautomation-boiler's Issues

Update to WebdriverIO v8

Hey ๐Ÿ‘‹

Thanks for providing this boilerplate project. We are about to release a new major release for WebdriverIO: v8. Please update the dependencies for this project so that users can start with the latest upcoming release. You can read more about the release here.

Let me know if you have any questions! Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.