Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Configuring Windows Computer

Configuring your Windows computer includes installing Node JS and Appium, downloading Android Command Line Tools and Android APIs and defining required Android Virtual Devices (AVDs) for test case executions. Additionally, you need to set Environment and System Variables.

Installing Node JS

Node.js is an open-source, cross-platform JavaScript runtime environment for developing a diverse variety of tools and applications. You must install the latest version of Node JS on your system.
To install Node JS:

  1. Download the latest version of Node JS using following URL:

https://nodejs.org/en/.

...

Table of Contents

In order to automate mobile test cases on Windows Computers, you must 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.

...

Appium Version

...

Android

...

 

...

iOS

...

 

...

 

...

Execution

...

Inspector

...

Execution

...

Inspector

...

1.4.13

...

Yes

...

UI AutomatorViewer

...

x

...

x

...

1.5.3*

...

Yes

...

UI AutomatorViewer

...

Yes

...

Appium Inspector

...

1.6.x*

...

Yes

...

UI AutomatorViewer

...

Yes

...

myKola**

Note: 
*Recommended.
**As Appium 1.6.x does not have GUI for iOS, myKola can be used as object identification tool.
In order to install Appium's command line version, you need to install Node JS. Once you have installed Node JS, you can proceed to install Appium Server that is required for mobile test case executions.
To install Appium:

  1. Open the Command Prompt window.
  2. Use the following command to install Appium; npm install -g appium@1.6.3.

Note: The Appium version mentioned in the command above may change as per the latest version available on the appium repository, for example, appium@1.6.1, appium@1.6.3, and so on.

  1. After successful installation, run the appium command to confirm the installation of Appium. Following message is displayed in the Command Prompt window.

Image Removed

...

In order to test mobile native or web applications on emulator or physical device, you need to download and install Android command line tools. The command line tools can be downloaded using following simple steps. 
To install Android command line tools:

  1. Open the following URL:

https://developer.android.com/studio/index.html

  1. Scroll down to bottom.
  2. In the Get just the command line tools section, download the latest version of SDK tools package for Windows.
  3. Once downloaded, unzip the file and go to tools > lib.
  4. Copy AVD Manager.exe and SDK Manager.exe and place it where you have unzipped the original set up file (if not present).
  5. Launch SDK Manager.
  6. In the Tools section, select Android SDK Tools and Android SDK Platform-tools.
  7. Select required Android APIs (if you want to create emulators).

Note: Appium supports API level 17 and above.

  1. 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 as mentioned here.

  1. Click the Install xx packages... button.

Image Removed

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 space.

  1. If Java_Home is not already set, double-click the JAVA_HOME variable, type the path to JRE/JDK and then click OK.
  2. 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;

...

Installing Android Studio

In order to test Android mobile applications, you need to download Android Studio. Once Android Studio is downloaded, 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-windows.exe.
    This will start installation of Android Studio.
  3. Follow the on-screen instructions and complete the studio installation.
  4. Select Standard Installation.

    Expand
    titleView Image

    Image Added


    Note

    Android Studio is developed for Android application development. In order to get started with application testing using virtual devices, users need to have at least one project created. Once project is created, users can create and start emulators and download required platform images from the Android Studio.


  5. Once the installation is complete, launch Android Studio.
  6. Create a dummy project.
  7. From the File menu, click Settings.
  8. Under Appearance & Behavior,  expand System Settings and select Android SDK.
  9. In the right pane, select SDK Platforms.
  10. Select required packages to install and click Apply.

    Expand
    titleView Image

    Image Added


    Tip

    Google system images are required to create and start virtual devices (emulators). Generally, emulators created with Google APIs Intel x86Atom System Image serve all the testing requirements, however, users can download and install any system image depending on the testing requirements.

    If you want Google Chrome in the Nougat emulator,  please select Google API as system image. Google Chrome comes as a default browser for Nougat and not for other Android operating systems. 


    System displays the list of components selected to be installed.
  11. Go to SDK Tools and ensure that Android SDK Build-Tools is installed. If not, then download it.

    Expand
    titleView Image
    Image Added


  12. Click OK

  13. Once all the required components are installed, click Finish.
    Now you can start creating virtual devices. For more information about creating and managing virtual devices (emulators), click here.

Installing Intel® Hardware Accelerated Execution Manager (Intel® HAXM)

...

We recommend that you install Intel® HAXM for smooth functioning of Android Virtual Devices (emulators). When installing Android Studio,

...

it is installed automatically. However, if it is not installed when installing Android Studio, follow the steps mentioned below to install it. 

To confirm whether the Android Studio is installed or not, go to Android Studio > Tools > Android > SDK Manager 

To install Intel® HAXM:

  1. Download

...

  1. Intel® HAXM

...

  1. .

...

  1. Unzip the downloaded file.
  2. Double-click the intelhaxm-android file.
    This opens Intel® Hardware Accelerated Execution Manager Setup wizard.
  3. Click Next.

...

  1. Here you can define how much system memory (RAM) you want to reserve for Intel® HAXM. By default, 2.00 GB is reserved.
  2. Change the reserved memory

...

  1. if required and click Next.
  2. Click Install.

...

  1. After successful installation, open the Command Prompt window and run the command; sc query intelhaxm.
    If State is shown as

...

  1. Running, Intel® HAXM is running properly.

...

  1. Expand
    titleView Image

    Image Added


    Note
    • 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,

...

...


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 easily 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 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.

...

Setting Environment Variables

After you download Android Studio, 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 enter the path of Android SDK
    To find the Android SDK location, launch Android Studio > Files > Settings. Copy the path specified in Android SDK Location.
    For example: D:\Android
  6. Click OK.
    Note: The Android_Home path should not contain any white spaces.
  7. If Java_Home is not already set, create a new variable as JAVA_HOME, type the path to JRE/JDK and then click OK.
  8. In the System Variables section, select the PATH variable and type the path to 'Platform-tools' from the Android SDK location (which you added in the step 5 above).
    For example: D:\Android\platform-tools;
  9. Click OK.