Prerequisite - Installations
The following needs to be downloaded and installed beforehand. Please take help from your dev team for configuring the following tools.
1. Install Java JDK 7 or later and set the 'JAVA_HOME' & 'Path' Environment variables
To set the environment variables, please check the following article - How to set Environment variables for Java JDK on your machine?
Note: Please skip if you already have Java JDK installed and the environment variables set.
2. Install Android Studio and set the 'ANDROID_HOME' & 'Path' Environment variable
Technically, we only need the Android SDK Tools and installing the Android Studio is the easiest way to install and manage Android SDK Tools.
Check the Official Android Studio documentation page for more details on installing Android Studio - Android Studio - Installation Guide
3. Install Appium Desktop
Install Appium Desktop to inspect Apps on your local mobile device - You can download and install it from here - Appium Desktop
Configuration on Local Android Device
Android Debugging Bridge(ADB) is the official android interface that enables the development and debugging of Android Apps and Android Devices. We use that for connecting to Appium.
Firstly, we need to configure the local Android Device to enable ADB on it.
1. Enable 'Developer Options' and 'Allow USB Debugging' in Settings
Check the Android Documentation to know how to enable developer options and USB debugging.
3. Allow installation from Unknown Sources in Settings
Here's an easy guide to enable unknown sources.
4. Install the App to be automated/inspected.
Configurations on Local Windows/Mac/Linux Machine
We can configure the local Machine(PC/Mac) as per the steps given below:
1. Ensuring that Android SDK is set up and configured as per step 2 in above section, Connect the Android Device and allow any prompts that come up on the device regarding USB Debugging.
2. Navigate to the platform-tools folder inside Android SDK folder in your Command Prompt(Terminal for Mac/Linux) and start ADB by executing the command 'adb devices'.
Your device serial number should show up under 'List of devices attached' if Android SDK is configured properly.
Note: If you don't see any device details, please ask your Android developer to help you with configuring the Android USB Drivers for your specific device.
Once your device is available on the "adb devices" list, you are ready to start testing.