This is a simple demo app built with React Native. For details, please refer to this tutorial:
http://www.appcoda.com/react-native-introduction
- Appium Server
- Appium Client
- Mac OS X 10.10 or higher, 10.11.1 recommended
- XCode >= 6.0, 7.1.1 recommended
- Apple Developer Tools
- 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
Download appium app from http://appium.io/.
OR
Install Appium server either with following command:
$ npm install -g appium
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
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.
$ appium -a 127.0.0.1 -p 4723
This will start appium server at ip - 127.0.0.1:4723
npm test
test is defined in package.json.
Hopefully, your test case is running smoothly.