Katalon Installation & Execution

System Requirements

To go further Katalon Studio, you need to ensure the system requirements on Windows as below:

Operating System Windows 7, Windows 8, Windows 10, macOS 10.11+
CPU 1 GHz or faster 32-bit (x86) or 64-bit (x64) processor
Memory 1 GB RAM (32-bit) or 2 GB RAM (64-bit)
Hard Drive at least 1 GB available hard disk space


Setup Android on Windows

In order to fully run test on Windows OS, you need install Appnium, NodeJs and USB Debugging. Katalon support only Android on Windows OS.

Appium is an HTTP server written in Node.js which creates and handles multiple WebDriver sessions for different platforms like iOS and Android. Appium is part of the Node.js server, which allows automated testing on Android and iOS devices, including native and hybrid devices. One of the core tenets of Appium is that test codes can be written in any framework or language like Ruby on Rails, C# and Java without having to modify the apps for automation purposes. The interaction between node.js server and Selenium client libraries is what ultimately works together with the mobile application.

We need to enable USB debugging to run the .apk file on the emulator or real devices, from which we can inspect /capture the element for test script.

Install Node.js 

  • Download and install Node.js at here . 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. To make sure Node.js is installed correctly, open Windows command line and type the command below to see if system can find Node.js: C:\> where node


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.


Setup Devices

  • Install USB Driver for your phone, you can download it from the device manufacturer site. Note: If your Android phone is one of Google Nexus series, please skip this step because Android SDK already include 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.

Test Execution

  • Launch Katalon Studio.
  • Open a test project.
  • Open/Create a test case or test suite.
  • Select the option to execute with the Android device from the Run button of the main toolbar. (This version of Katalon Studio for Windows OS support only supports Android devices).
  • Select your device from the Android Devices list. Click OK.

Note: If you don’t see any device in the list, check to see if the developer option of the phone is turned on (see Setup Device section above), then try to reconnect the device again until you are prompted for accepting/trusting the computer, and make sure you accept it.

You are done. Enjoy it!


References:

https://docs.katalon.com/display/KD/Mobile+on+Windows

http://toolsqa.com/mobile-automation/appium/download-and-install-nodejs/