...
Once all these components are installed, set some environment variables and then your system is ready for test case executions.
Installing Appium
Appium is an open source test automation tool for mobile applications. Appium comes equipped with Inspector for object identification; however, users can also use UI Automatorviewer for mobile object identification.
- Download and install the latest version of Appium.
Installing Android Command Line Tools
In order to test mobile applications on emulator or physical device, you need to use Android command line tools. The command line tools can be downloaded using following simple steps.
...
- Open the URL: https://developer.android.com/studio/index.html
- Scroll down to bottom.
- In the Get just the command line tools section, download the latest version of SDK tools package for Windows.
- Once downloaded, unzip the file and go to tools > lib.
- Copy AVD Manager.exe and SDK Manager.exe and place it where you have unzipped the original set up file (if not present).
- Launch SDK Manager.
- In the Tools section, select Android SDK Tools and Android SDK Platform-tools.
- Select required Android APIs (if you want to create emulators).
Note: Appium supports API level 17 and above. - In the Extras section, select Intel x86 Emulator Accelerator (HAXM Installer) and Google USB Driver.
Note: If it is not compatible with Windows, install it separately. Click the Install xx packages... button.
Expand title View Image
Installing Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
It is recommended to install Intel® HAXM for smooth functioning of Android Virtual Devices (emulators). When installing Android Studio, you do not need to install it separately, however, when installing command line tools, you must install it separately.
...
- Download the Intel® HAXM and unzip the downloaded file.
- Double-click the intelhaxm-android file.
This opens Intel® Hardware Accelerated Execution Manager Setup wizard. - Click Next.
Here you can define how much system memory (RAM) you want to reserve for Intel® HAXM. By default, 2.00 GB is reserved. - Change the reserved memory, if required and click Next.
- Click Install.
Post successful installation, open the Command Prompt window and run the command; sc query intelhaxm.
If State is shown as running, Intel® HAXM is running properly.Expand title View Image Note - When creating emulators, ensure you have selected CPU/ABI as Intel x86 for superior performance of emulator through Intel® HAXM.
- If you are facing any issues when installing or using Intel® HAXM, click here for troubleshooting.
Creating Android Virtual Devises (AVDs) / Emulators
An Android Virtual Device (AVD) manager allows you defining characteristics of Android devices you want to simulate in the Android Emulator. The AVD Manager helps you to create and manage Android Virtual Devices. The AVD Manager comes bundled with some predefined hardware profiles, such as Nexus phone devices and you can define and import hardware profiles as per the requirements. The AVD Manager allows you to manage all your AVDs in one place.
...
For more information on this, click here.
Setting Environment Variables
After you download command line tools and platform-tools, you must set environment variables.
...