Katalon Studio
  • 13 Oct 2023
  • 3 Minutes to read
  • Dark
    Light

Katalon Studio

  • Dark
    Light

Article summary

Overview

Katalon Studio enables you to perform automated Mobile and Web Testing by creating codeless automation scripts and with a powerful record and playback feature. Integrating Katalon Studio with pCloudy will help you run your existing scripts on 5000+ browsers and device combination.

Prerequisites

  • pCloudy Account and the pCloudy capabilities.
  • Mobile Application must be uploaded to the “My Data” section on pCloudy portal.
  • Katalon Studio configured on the user machine.

Running Katalon Tests on pCloudy Device cloud

  1. Open an existing project on Katalon which you want to Execute.

For Example: Here we are using a sample test case as mentioned below using “Mobile keywords”, where we Launch an application (Android) and click on two elements and close the application. Note: Provide the application name for the “Input” of ‘Start Application’ Keyword.
image.png

  1. To generate the capabilities, you can use the Capability Configurator from the pCloudy portal as mentioned below.
    image.png
Note
  • The URL for the device cloud is included with the capabilities.
  • Make sure the selected device is available on device cloud before running.
  • You can also get the API key from the profile section on pCloudy portal as mentioned below.
    image.png
  1. To add the capabilities on Katalon remote server, Click on the Project →Settings →Desired Capabilities →Remote
    image.png

  2. Now choose “Remote” from the “Run” options
    image.png

  3. Now the mentioned device from the capabilities will be acquired on pCloudy and the scripts will be executed. You will be able to view the live session under “My Active Sessions” on pCloudy portal.
    image.png

Using Katalon’s Record Mobile Feature on pCloudy Devices

  1. Choose “Remote Devices” from the “Record Mobile
    image.png

  2. Provide the Application name for the “Cloud Application ID” and click on “Start”.
    image.png
    image.png

  3. Now you can record the steps on the application via pCloudy device and create the steps for the test and all the objects will be stored inside “Object Repository” on Katalon.
    image.png

Here we are choosing the “Accept” icon from the application and performing a “Tap” action on it.
image.png
image.png

As Mentioned, the recorded objects will be stored into “Object Repository” as shown below on Katalon.

image.png

Running Katalon Tests on pCloudy Browser Cloud

  1. Open an existing project on Katalon which you want to Execute.

For Example: Here we are using a sample test case as mentioned below with “Web UI Keywords”, where we open a browser and navigate to an URL and close the browser.
image.png

  1. To add the capabilities for Browser Cloud on Katalon remote server, Click on the Project →Settings →Desired Capabilities →Remote
    For Example: If you want to connect to chrome browser on windows with the following specification, then the capabilities will be as mentioned below
    • “os”=”Windows”
    • “osVersion”=”10”
    • “browserVersion”=”110”
    • “browserName”=”chrome”
    • “clientName”=”pCloudy login ID”
    • “email”=”pCloudy login ID”
    • “apiKey”(You will get the Browser Cloud URL and API Key from the profile section on the pCloudy portal)

image.png
image.png

Note:
  • The URL for the browser cloud is "https://prod-browsercloud-in.pcloudy.com/seleniumcloud/wd/hub".
  • Make sure the selected device is available on browser cloud before running.
  1. Now choose “Remote” from the “Run” options
    image.png

  2. Now the mentioned device from the capabilities will be acquired on pCloudy and the scripts will be executed. You will be able to view the live session under “My Active Sessions” on pCloudy portal.
    image.png

Running parallel tests using Katalon on pCloudy Browser Cloud

  1. Create multiple Test Cases(Example: Testcase1 and Testcase2) as mentioned below on Katalon.

image.png
image.png

  1. Create two different Test Suites (Example: Test Suite 1 and Test Suite 2) and add the Test Cases to each Test Suites as mentioned below.
    image.png
    image.png

  2. Now create a Test Suite Collection (Example: pCloudy Testsuite Collection) and add the Test Suite 1 and 2 to the Test Suite Collection as mentioned below.
    image.png

  3. Now Open “Execution” from “Project Settings” and select “Remote” from “Default execution” and Check the “Post Execution Options” as mentioned below.
    image.png

  4. Now select the “Run Environment” to “Remote” and select “Parallel” from the “Execution Mode” and Click on “Execute”.
    image.png
    image.png
    image.png

Now the mentioned browser from the capabilities will be acquired on pCloudy and the scripts will be executed. You will be able to view the live session under “My Active Sessions” on pCloudy portal.
image.png


Was this article helpful?

What's Next