Pages

Wednesday, December 26, 2018

Automation Made Easy With Katalon

Today I'm going to introduce a new automation tool - Katalon!

Katalon is a combination of 3 products.
   1. Katalon Studio
   2. Katalon Analytics
   3. Katalon Recorder

Katalon Mobile Testing Solution

Katalon provides complete automation solution for API, Web, and mobile testing in an easiest way you would ever imagine. It’s easy, fast, flexible and most importantly it’s Free!!! you can only test an iOS application using macOS. So, for today, from this article I would like to discuss how to start android testing with Katalon. 
To start Android testing, It requires Appium 1.6, 1.7 or 1.8 (Appium 1.9 is not supported at the moment) Also, it needs Android 6.x or 7.x.

Installation
  • First, download Katalon studio from below link. https://www.katalon.com/download/
  • Make sure you install Node.js (download windows installer) into a location where you have full Read and Write permissions. Make sure “Add to Path” is enabled when installing. 
  • Check whether node installed correctly
    • : node -v
    • : npm -v
  • Install Java (if not already installed)
  • Install .NET Framework 2.0 SDK (if not already installed)
  • Install Appium
    • : npm uninstall -g appium
    • : npm install -g appium or  : npm install -g appium@1.8.1
  • Check if Appium installed correctly
    • : appium -v
    • : where appium

Configuration
  • Open Katalon.exe
  • Connect Appium to Katalon studio – Go to Windows > Katalon Studio Preferences > Katalon > Mobile  - Browse the correct Appium directory (Example - C:\Users\nishantha\AppData\Roaming\npm\node_modules\appium)

Setup android mobile device
  • Turn on the phone’s developer mode (go to Settings > Developer options > turn on ‘USB debugging’)
  • Connect your Android Phone to your computer via a USB cable. Just confirm if prompted to accept/trust the device
  • Install Android SDK: Katalon Studio will detect and ask you to install Android SDK automatically if your current machine doesn’t have it. Please allow Katalon Studio to install it in this case.
  • Check connection
    • : cd C:\Users\nishantha\.katalon\tools\android_sdk\platform-tools
    • : adb devices

Build your First Test
  • File > new sample project > new sample android mobile test project (Default project location - C:\Users\nishantha\Katalon Studio)

  • You will get a folder structure like this way;









  • Now, it's time for your creativity. just play with it. you can either use 'Mobile Object Spy' or 'Mobile Recorder' to capture objects and organize basic actions.


manual mode

script mode

  • As you can see above, you can use either manual mode or script mode to develop your automation script. please enjoy!!!

{ Read More }


Blogger news

Blogroll

What's Hot