A new version of Qualitia Automation Studio 7.2.x is now available. We highly recommend you upgrade. Find more details here.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

In order to automate mobile test cases on Windows Computer, you need to download and install Appium and Android Studio.

Once these components are installed and environment variables are set, 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.

Installing Android Studio

In order to test mobile applications using emulators, you need to use Android Studio. Once downloaded Android Studio, Qualitia users can create virtual devices / emulators and test the mobile applications using Qualitia. 

To install Android Studio:

  1. Download Android Studio.
  2. Once downloaded, double-click android-studio-bundle-162.3934792-windows.exe.
    This will start Android Studio Installation.
  3. Follow the on screen instructions and complete the studio installation.
    In order to create virtual devices (emulators), users need to create a project in Android Studio. 
  4. Once completed with the installation, launch Android Studio.
  5. Create a dummy project. 
  6. For more information about creating and managing virtual devices (emulators), click here.
  7. In the Get just the command line tools section, download the latest version of SDK tools package for Windows.
  8. Once downloaded, unzip the file and go to tools > lib.
  9. Copy AVD Manager.exe and SDK Manager.exe and place it where you have unzipped the original set up file (if not present).
  10. Launch SDK Manager.
  11. In the Tools section, select Android SDK Tools and Android SDK Platform-tools.
  12. Select required Android APIs (if you want to create emulators).
    Note: Appium supports API level 17 and above.
  13. 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.
  14. Click the Install xx packages... button.

     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. 

To install Intel® HAXM:

  1. Download the Intel® HAXM and unzip the downloaded file.
  2. Double-click the intelhaxm-android file.
    This opens Intel® Hardware Accelerated Execution Manager Setup wizard.
  3. 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.
  4. Change the reserved memory, if required and click Next.
  5. Click Install.
  6. After 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.

     View Image

    • When creating emulators, ensure that 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 Devices (AVDs)/Emulators

An Android Virtual Device (AVD) manager allows you to define 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.

To run the AVD Manager:

  1. Open the AVD Manager application.
  2. Using this screen, you can;
    • View details of existing Android Virtual Devices,
    • Create new Android Virtual Devices,
    • Edit/Repair existing Android Virtual Devices, and
    • Remove/Delete obsolete Android Virtual Devices.

For more information on this, click here.

Setting Environment Variables

After you download command line tools and platform-tools, you must set environment variables.

To set Environment Variables-

  1. From desktop, right-click the Computer icon.
  2. Select Properties from the context menu.
  3. In the left pane, click Advanced System Settings.
  4. On the System Properties window, click Environment Variables.
  5. In the User Variables section, create new variable as ANDROID_HOME and set its path where you have unzipped the Android command line tools and then click OK.
    Note: The Android_Home path should not contain any white spaces.
  6. If Java_Home is not already set, double-click the JAVA_HOME variable, type the path to JRE/JDK and then click OK.
  7. In the System Variables section, select the PATH variable and type the path to 'Platform-tools' from the folder where command line tools are saved.
    For example: D:\Android\platform-tools;
  8. Click OK.



  • No labels