Configurations on Local Windows/Mac/Linux Machine
In case of Hybrid Execution of Android Apps, we need to perform a few additional steps as compared to configuration required for Hybrid Execution of Web Applications.
1. Install Java JDK 7 or later and set JAVA_HOME & Path Environment variable
2. Install Android SDK and set ANDROID_HOME Environment variable
The easiest way to do this is installing the Android Studio provided by Google. The Android SDK Tools come bundled with Android Studio. Check the Official Android Studio documentation page for more details on installing Android Studio.
3. Install Android SDK API for your Android Version
Using the SDK manager, ensure you have installed the SDK for Android API levels you wish to automate (e.g., 24).
4. Install Appium Desktop
We need to install Appium Desktop Application for the local PC to communicate with the mobile device and run tests on it.
Configuration on Local Android Device
Also, we need to do a few things on the mobile device to enable Test Execution on it.
1. Enable Developer Options in Settings
2. Allow USB Debugging is 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(Optional)
In order to start a Test Session, do the following steps:
1. Start the Appium Server with default configuration i.e Host address - 0.0.0.0 and port 4723. You may also use the localhost IP if you prefer i.e Host Address - localhost and port - 4723
Check the README section on the Appium GitHub page for more details.
2. Connect the Android Device and start ADB by executing the command 'adb devices' on Command Prompt.
That's all the configuration required for Automating Android Apps on real Android Devices using Testsigma!
Happy Automation Testing!