Skip to content

josdem/webdriverio-workshop

Repository files navigation

WebdriverIO Workshop

code style: prettier

This project shows cool features in Webdriver.io along with Mocha Framework

Requirements

Note: I recommed to use NVM to manage NodeJS versions

To build the project

npm install

To format the project

npx prettier --write .

To run the project

npx wdio run test/config/${configuration}.conf.js --spec=test/specs/${testName}

where ${configuration} could be:

  • chrome (to run tests require Chrome)
  • rest (to run API consumption tests)
  • image (to run image comparison test)

where ${testName} could be:

  • geolocation.spec.js
  • lighthouse.spec.js
  • service.spec.js
  • intercept.spec.js
  • image.comparison.spec.js

If you want to generate Allure Reports

  • Install allure command line: npm install -g allure-commandline --save-dev
  • Execute this command: allure generate --clean && allure open

Read this as reference

About

This project shows some cool features in WebdriverIO along with Mocha and NodeJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published