Appium Demo App with clearly defined Page Object Pattern for React Native Mobile App. Test Language - Javascript.
Clone or download
Varmeh
Latest commit 180c320 Aug 25, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AppiumTest Working Demo Aug 25, 2016
BookSearch.xcodeproj Working Demo Aug 25, 2016
BookSearchTests Working Demo Aug 25, 2016
Executable/BookSearch.app Working Demo Aug 25, 2016
iOS Working Demo Aug 25, 2016
BookDetail.js Working Demo Aug 25, 2016
BookList.js Working Demo Aug 25, 2016
Featured.js Working Demo Aug 25, 2016
README.md Readme update. Aug 25, 2016
Search.js Working Demo Aug 25, 2016
SearchBooks.js Working Demo Aug 25, 2016
SearchResults.js Working Demo Aug 25, 2016
index.ios.js Working Demo Aug 25, 2016
package.json Working Demo Aug 25, 2016

README.md

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.