React Native & Behavior Driven Development (BDD) (Cucumber & Appium)

Set up a new project

react-native init ReactNativeBDD
npm install -g appium
npm install --save webdriverio @wdio/cli
npm i @cucumber/cucumber

Configure WebdriverIO

npx wdio config
capabilities: [{maxInstances: 1,browserName: '',appiumVersion: '1.7.2',platformName: 'Android',platformVersion: '7.1.1',deviceName: 'emulator-5554',app:'.\\android\\app\\build\\outputs\\apk\\release\\app-universal-release.apk',},],

Running BDD Scenarios

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What is Node js

Understanding Javascript imports and exports

Licenses for NPM packages made easy

How to pass data as props to component in react native.

Universal create-react-app, step by step

JavaScript Array Methods

How JavaScript works: 3 types of polymorphism

The longest, least clever, solution to FizzBuzz

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Onur Kantar

Onur Kantar

More from Medium

Reclame — A Modular UI Component Architecture

[React] Event Capturing and Event Bubbling

How to create custom theme in React written in Typescript using Material UI

AI Application Scenarios and Implementation Practices in Draft Design Generation Code