This project will test the simple android application using Appium, and here I am using Node.JS as a programming language.
- mocha: JavaScript testing framework
- chai: Assertion library for Node.js
- wd: Node.js client for WebDriver(Appium)
All above dependencies are mentioned in package.json
- Make sure valid Android device is connected properly.
- Clone the repo:
$ git clone https://github.com/prat3ik/appium-android-nodejs.git
- Move to project (
$ cd appium-android-nodejs
) and changeplatformVersion
&deviceName
in android_test.js accordingly. - Open terminal and type following commands:
$ npm install
$ npm test
OR$ mocha android_test.js
NOTE: Please make sure that mocha has installed globally, OR you can use command
$ npm install -g mocha
to install mocha globally.