kapilsethi / poc-webdriver-io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

What's in this repository

How to use this repository:

Prerequisite:

  • Need to have node.js installed on the machine (version "^v12.6.x")

Setup:

  • Run npm install command

Using linting utility

  • Run npm run lint command to run eslint

Running Tests:

  • Run npm test command to run all the tests
  • Run npm run generate:report command to generate html report of the test execution results

Test Execution Report:

  • Test execution report can be found in './allure-results' and './allure-report'

Features:

  • Test framework:

    • WebDriverIO
  • Driver:

    • Selenium standalone
  • Assertion library:

    • Chai
  • Supported browser:

    • Chrome, Firefox
  • Reporting framework:

    • Allure
  • CI:

    • Travis
  • Linting utility:

    • ESLint (extends typescript recommened rules. Details can be found here)
  • Pre-Commit hook:

    • pre-commit npm package to run linting utility before commit

Example website:

  • Refer to the test script for the website info

Care only about chrome browser?

  • Update

    • path as '/' (e.g. path: '/')
    • services as 'chromedriver' (e.g. services: ['chromedriver'])

    in wdio.conf.js file

Troubleshooting:

  • N/A

Have a feedback?

If you have any feedback or question, please email me at kapil.sethi9@gmail.com

About


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%