0 Shares 1222 Views 1 Comments

Setting up Mobile Automation Project in Windows

Sep 20, 2017
1222 Views 1
Mobile Automation

This tutorial explains how to setup a mobile automation project and test a mobile app using Katalon Studio on Windows. This tutorial assumes that you are familiar with general principles of automated testing and have some experience with Katalon Studio IDE

Using Katalon Studio, a mobile tester can design automation tests for both Android and iOS apps on physical devices, cloud services or emulators.

Unlike Web application testing, to test a mobile app, you need to install Node.js and Appium in addition to Katalon Studio.

Install Node.js

Note: Make sure you install Node.js into a location where you have full Read and Write permissions.

  • When installing Node.js, make sure that the Add to PATH option is checked.

  • Verify if Node.js is installed correctly. Open Windows command line and type the command: where node to see if the system can find Node.js.

Install Appium

  • Open Command Prompt of Windows and input following command to install Appium:

npm install -g appium

  • Open Katalon Studio and go to the Windows > Katalon Studio Preferences > Katalon > Mobile settings. Set Appium Directory to the installed folder. By default, it’s usually installed at C:\Users\{your login account}\AppData\Roaming\npm\node_modules\appium.
  • You can also specify the level of log details to be displayed for Mobile execution using the Appium Log Level as well. There are two options: with Info, you can get the log at simple level while Debug is used in case you want more details logs.

Setup Devices

  • Install USB Driver for your phone, you can download it from the device manufacturer site. (If your Android phone is one of Google Nexus series, please skip this step because Android SDK already includes the driver)
  • Turn on the phone developer mode (go to Settings -> Developer options).
  • Connect your Android device to the computer using USB cable. Just confirm if prompted for accepting/trusting the phone.
  • Check whether the device is ready for automation by using ADB: Open command prompt, type command “adb devices” (without quotes). System should display a list of devices which have been connected. If this command is not recognized, then download and install the adb driver


Notes: Katalon Studio also supports mobile emulators. You can start emulators and launch your virtual devices. As long as they can be recognized by using the adb command, it should be fine to execute mobile tests with them.

Desired Capabilities

You can modify extra Desired Capabilities when executing automation test in Katalon Studio.

To define Desired Capabilities for local execution using Chrome, Firefox, IE, Safari or Edge, please access Project > Settings > Execution > Default > Mobile > Android (iOS option is available in macOS)

The example below show a desired capabilities settings for Android to enable Unicode input.

Screen Shot 2017-07-13 at 14.55.09.png

Refer to https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities for information on which properties of each web browser are supported by Selenium. For Desired Capabilities used with Appium, refer to http://appium.io/slate/en/master/?ruby#appium-server-capabilities.

External Library

With this setting, you can add or remove your external libraries from Project > Settings > External Libraries.

  • Add: Click to add your external libraries. The selected libraries will be copied to the Drivers folder in the Katalon project.
  • Remove: Click to remove existing libraries. They will be removed from the Drivers folder in the Katalon project.

The added libraries can be imported and utilized in the Script View of test cases:

Mobile Application

You need to save your mobile application (APK files for Android) to a location where your computer can access with full permission.

You may be interested

UFT Patch Updates – UFT 14.03
Unified Functional Testing
1870 views1
Unified Functional Testing
1870 views1

UFT Patch Updates – UFT 14.03

Saket - Mar 11, 2018

Post the launch of UFT 14.0, there are three patch updates has been released including a number of features and enhancement. Recently Micro Focus unveiled third patch…

Setting up Web Service Automation Project
Katalon Studio
Katalon Studio

Setting up Web Service Automation Project

Saket - Oct 24, 2017

Web services are specific services that can be published and called over the Internet by client applications. Katalon Studio supports functional testing of web services. This topic…

Setting up Mobile Automation Project in MacOS
Katalon Studio
1170 views1
Katalon Studio
1170 views1

Setting up Mobile Automation Project in MacOS

Saket - Oct 09, 2017

Using Katalon Studio, mobile tester can design automation test for both Android and iOS to run on physical devices, cloud services and emulators. This tutorial explains how…

One Comment

  1. Pingback: Testing Bits – 9/17/17 – 9/23/17 | Testing Curator Blog

Leave a Comment

Your email address will not be published.

Most from this category

Join The Growing Group of 15000+ Test Automation Engineers

Signup for our newsletter and get access to free downloads, as well as tips, tricks and techniques and various test automation resources.
Email Address
Secure and Spam free...