Skip to content
/ foodie Public

A starter project using webdriverio with cucumber typescript in appium automation

Notifications You must be signed in to change notification settings

LayMui/foodie

Repository files navigation

Getting started with webdriverio cucumber framework

  1. npm init to create the package.json
  2. npm i @wdio/cli
  3. Setup:
npx wdio config

Ask a series of questions/options to config the webdriverio

  1. To run
npx wdio run ./config/wdio.ios.app.conf.ts

it will install the dependencies and create the wdio.conf.ts

  1. create a file tsconfig.json with the content copied
{
  "compilerOptions": {
    "types": ["node", "webdriverio/async", "@wdio/cucumber-framework", "expect-webdriverio"]
  }
}
  1. run the test using the command:
npx wdio wdio.ios.conf.ts
  1. Add npm i @wdio/appium-service --save-dev
Such a service eliminates the need to start appium manually before starting your tests. We should install this as a dev dependency:
  1. To update dependencies version, run
npm update

tested on xcode 12.5.1 and node 16.3.0 appium v.1.22.0

About

A starter project using webdriverio with cucumber typescript in appium automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published