Skip to content

Appium Demo App with clearly defined Page Object Pattern for React Native Mobile App

Notifications You must be signed in to change notification settings

varmeh/appium-page-object-model-demo

Repository files navigation

Appium Demo with React Native Demo App for iOS

This is a simple demo app built with React Native. For details, please refer to this tutorial:

http://www.appcoda.com/react-native-introduction

Prerequisites

  • Appium Server
  • Appium Client

iOS

  • Mac OS X 10.10 or higher, 10.11.1 recommended
  • XCode >= 6.0, 7.1.1 recommended
  • Apple Developer Tools

Android

  • Android SDK API >= 17
  • Appium supports Android on OS X, Linux and Windows. Make sure you follow the directions for setting up your environment properly for testing on different OSes:

Refer documentation for detail: http://appium.io/getting-started.html?lang=en

Installation

Appium Server

Download appium app from http://appium.io/.

OR

Install Appium server either with following command:

$ npm install -g appium

Appium Client

We will use javascript client wd

Other than appium client, we would need following packages for testing

  • mocha: test framework
  • chai: assertions library
  • chai-as-promised: promise library

All packages required for testing has been defined in package.json file.

$ npm install

Execute Test

Update App Path in Test Case

Compile Code in XCode to build app. Then, access it by right clicking app in XCode & selecting Show in Finder

OR

Use app file provided in Execuatable folder.

Update path of app in driver constructor call in before() of AppiumTest/TestMain.js file.

It should always be absolute path to app on appium server.

Start Appium Server

$ appium -a 127.0.0.1 -p 4723

This will start appium server at ip - 127.0.0.1:4723

Run Appium Client

npm test

test is defined in package.json.

Hopefully, your test case is running smoothly.

About

Appium Demo App with clearly defined Page Object Pattern for React Native Mobile App

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published