Nov 4, 2017

Mobile App Automation with Appium on Android Emulator/Device

Overview :-


Appium is an open source test automation tool for mobile applications. It allows you to test all the three types of mobile applications: native, hybrid and mobile web.It also allows you to run the automated tests on actual devices, emulators and simulators.

If you want to start mobile automation on Android device/emulator, first you must need to setup the Android SDK on your machine and set the paths in environment variables.Then you can create your own emulator and run the test scripts on it.

Pre-requisites :-


1. JDK installation

2. Android SDK installation and Emulator Creation

3. Appium installation

4. Native App information
  • .apk file - This is not required if you specify appPackage and appActivity capabilities
  • appPackage - Activity name for the Android activity you want to launch from your package. This often needs to be preceded by a . (e.g., .MainActivity instead of MainActivity)
  • appActivity  - Java package of the Android app you want to run


Prerequisted Jars:

  • java-client.jar - For Appium
  • selenium-server-standalone.jar - For webdriver capabilities
  • commons-validator.jar - if want to run appium server programatically

Nov 3, 2017

Install .apk file on Android Emulator

To install native app on Android Emulator, You must have installed Android SDK in your System. Please find the below steps if you want to do install on Windows/Linux.

Windows :


1. Open Command Prompt
2. Navigate to Android SDK path till platform-tools directory (C:\Android\sdk\platform-tools)
3. Run below command
  • adb install C:\Users\hbolla\AndroidApps\demoApp.apk

Linux/Mac :


1. Open Terminal
2. Navigate to Android SDK path till platform-tools directory (\users\Android\sdk\platform-tools)
3. Run below command
  • ./adb install \Users\hbolla\AndroidApps\demoApp.apk

Wait for few minutes and get success response in cmd/terminal if app is successfully installed on Emulator.

Mobile App Automation with Appium on Android Emulator/Device

Overview :- Appium  is an open source test automation tool for mobile applications. It allows you to test all the three types of mobile...