Skip to content

fogrizovic/meli-wdio-cucumber

Repository files navigation

meli-wdio-cucumber

Install

Pre requisites

  • Install Node.js 18.12.1 (npm 8.19.2)
    • mac/linux: You can install nvm to manage npm and node versions.
    • windows: You can install nvm-windows to manage npm and node versions.
  • Install git
  • Install the latest chrome browser

Clone repo

Clone meli-wdio-cucumber repository.

foo@bar:~$ git clone git@github.com:fogrizovic/meli-wdio-cucumber.git

Install npm dependencies

foo@bar:~$ npm i

Run

Scripts

  • wdio: for running test scenarios
  • lint: for running linter

Command line parameters

  • ENV: REQUIRED {prd, qa}
  • DEBUG: OPTIONAL Used when debbing.You need to add browser.debug() on the point you want to stop execution.

Examples

We run tests by using cucumber tags.

MAC/LINUX

foo@bar:~$ ENV=<environmentName> npm run wdio -- --cucumberOpts.tagExpression=<tag> 

e.g:

foo@bar:~$ ENV=prd npm run wdio -- --cucumberOpts.tagExpression=@web

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published