Skip to main content

Mobile testing using Katalon TestCloud

Learn how to create and execute a mobile test using Katalon TestCloud.

Katalon TestCloud is a test automation service that allows you to run tests on a wide range of standard browsers and operating systems in the cloud. By using TestCloud, you can easily configure your mobile testing environments without the need to invest in additional infrastructure.

When following the mobile testing workflow with TestCloud, there are several key steps to complete:

  1. Integrate Katalon Studio with TestCloud: Upload your mobile application to TestCloud to begin the testing process.

  2. Create and record a test case: Create a new mobile test case using the Mobile Recorder. For more information about using Mobile Recorder in Katalon Studio, see: Create a new test case in Katalon Studio.

  3. Create a test suite or test collection: Group related test cases into a suite or collection for organized testing.

  4. Run mobile tests on a TestCloud environment: Execute the tests with different modes to suit your testing needs:

    1. Parallel mode: Run multiple tests simultaneously to save time.

    2. Sequential mode: Execute tests one after the other for thorough examination.

Before you begin recording, ensure your testing environment is properly set up. Refer to the following topics for more information: Supported environments for Katalon TestCloud.

Enable Katalon TestCloud in Katalon Studio

Follow the steps to enable TestCloud in Katalon Studio.

There are two ways to enable TestCloud integration in Katalon Studio:
  1. Via the Katalon TestOps button:
    1. Launch Katalon Studio and open a new or existing project.
    2. In the main toolbar, click on the TestCloud button. Select TestCloud button in Katalon Studio main toolbar.
  2. Via project settings:
    1. Launch Katalon Studio.
    2. In the main toolbar, select Project > Settings > Katalon Platform. Navigate to the Integration section and ensure the Enable Katalon TestCloud Integration checkbox is selected.
    3. Click Apply and Close.
TestCloud integration is now enabled in Katalon Studio. Once the connection is successful, Katalon Studio retrieves all Projects from the Organization you are part of that has an active TestCloud subscription or trial.

Run mobile native application tests on TestCloud

TestCloud allows you to perform automated tests on mobile native applications. You can upload a mobile application and tests developed locally in Katalon Studio to TestOps, and then use TestCloud to orchestrate test executions without having to set up local emulators or simulators.

This guide shows you how to perform mobile native application testing on TestCloud.

Requirements

Upload a mobile application to TestOps

The following steps are necessary to perform testing on a mobile native application for the first time. This means that the mobile native application is not yet stored in TestOps.

  1. Sign in to Katalon TestOps and go to your project.
  2. Go to Test Execution > Application Repository.
  3. In the Application Repository page, click Upload Application.
    Application Repository list in Katalon TestOps
  4. In the Upload Application dialog box, click Choose Files and select the application you want to upload.
    Choose application file to upload to Katalon TestOps.
    Note:
    • Application Repository supports uploading application files in .apk, .aab, and .ipa.
    • The size limit for the uploaded application is 500MB.

Your mobile application file is successfully uploaded to TestOps.

Record objects on a TestCloud device

To begin capturing objects on a TestCloud device, follow these steps:

  1. From the main Toolbar, click the Record Mobile icon and select TestCloud Devices.
  2. In the TestCloud Configurations section, do as follows:
    1. Device Name: Select the mobile operating system (OS), the version of the OS, and Studio will list out the available devices accordingly.
      For example, here we select the Android OS version 14, and the device Galaxy S24.
    2. Show only high availability devices: This option, enabled by default, filters the list to show devices with high availability status. You can then choose a device for testing without delays.
      • When enabled: Only devices with high availability status are shown.

      • When disabled: All devices are shown.

    3. Application: Select the application file you want to test from your TestOps uploads.
  3. Click Start on the action bar to launch the AUT.
  4. The Mobile Recorder window is displayed. Follow the steps to record and capture test objects: Record a mobile test case. Mobile Recorder window is displayed. Your mobile application is now ready for testing using your TestCloud device.

Run mobile test suites using TestCloud

Learn how to create and run mobile test suites using Katalon TestCloud.

Running mobile test suites using TestCloud lets you execute tests on cloud-based Android and iOS devices, including real devices and emulators. This simplifies mobile testing by providing access to multiple platforms, supporting both parallel and sequential test execution, and automatically uploading results to Katalon TestOps for centralized reporting.

Create and add test cases to a test suite

Learn how to create and add test cases to a new test suite in Katalon Studio.

  1. In the Tests Explorer panel, right-click on the Test Suites folder, then New > Test Suite Collection.
    Select Test Suites > New > Test Suite.Alternatively, you can also go to File > New > Test Suite Collection from the main menu.
  2. A New Test Suite Collection dialog appears. Fill in the name and the description (optional).
    Name your new test suite.
  3. Click OK.
  4. In the Tests Explorer panel, locate and double-click your newly created test suite.
  5. An Execution Information tab opens. Click + Add to add test cases.
    Click +Add to add test cases to your test suite.
  6. A Test Case Browser opens. Tick as many test cases you want to add to your test suite and click OK.

    Alternatively, you can open a specific test case and click the Add to test suite or Add to an existing test suite.

You have successfully created a new test suite and added specific test cases to it.

Run test suites with TestCloud

Follow these steps to execute a test suite with TestCloud in Katalon Studio:

  1. Open a test suite.
  2. Click on the dropdown icon of the Run button and choose to run with TestCloud.
    Katalon Studio - Run button - TestCloud option

    The TestCloud Configuration dialog appears as below.Katalon Studio - TestCloud Configuration dialog

    If the application under test is hosted in a private/local environment, you can check the Private/Local Testing option to set up TestCloud tunnel. See: Configure TestCloud Tunnel.

  3. Select the execution environment for your tests.

    Select between Desktop Browser, Mobile Browser, or Mobile Native Apps environments.

    • For desktop browsers: Select the desired OS, browser, and browser version.
    • For mobile browsers: Select the desired OS, OS version, and device. The default browser is Chrome for Android, and Safari for iOS.
    • For mobile native application: Select the desired OS, OS version, and device. By default, the test suite will be executed using the application specified in the script. If you want to override with applications from Application Repository, check the override option and select the available application. See: Upload mobile application.

  4. Click Run.

You can view the execution progress in Log Viewer with detailed information on the status of each test step:Katalon Studio - TestCloud Log Viewer

Run test suite collections on TestCloud

Learn how to run test suite collections on TestCloud.

Running test suite collections on TestCloud allows you to execute multiple test suites across a range of cloud-based environments, including various browsers and operating systems. This feature supports both parallel and sequential execution, optimizing test coverage and efficiency. By running test suite collections on TestCloud, you can leverage cloud infrastructure to scale your testing efforts without managing physical resources, with all results automatically uploaded to Katalon TestOps for easy analysis and reporting.

Create a new test suite collection

To create a new test suite collection, do as follows:
  1. In the Tests Explorer panel, right-click on the Test Suites folder > New > Test Suite Collection.
    Create a new test suite collection
    Alternatively, you can also go to File > New > Test Suite Collection from the main menu.
    A New Test Suite Collection dialog appears.
  2. Fill in the name and the description (optional).
  3. Click OK.
You have successfully created a new test suite collection.

Execute a test suite collection

You can execute a test suite collection in sequential or parallel mode. The behaviors of these two modes are described as follows.

To execute a test suite collection, follow these steps:
  1. In a test suite collection, click Execution Information.
    The Execution Information tab.
  2. Select Sequential or Parallel mode.
    • Sequential mode is a test execution method where test cases or suites run one after another in a specific order, ensuring each test completes before the next begins. It is useful for managing dependencies between tests.
    • Parallel mode is a test execution method where multiple test cases or suites run simultaneously, allowing faster testing by utilizing multiple resources at once. This approach is useful for reducing overall execution time and increasing efficiency.
      Note: If you choose Parallel mode, you need to set the Max concurrent instances and the delay time between instances.
  3. For each test suite, click on Run with to select execution environments.

    Select your test execution environments.

    If you choose TestCloud or Mobile, you need to click on Run Configuration for further set up.
  4. Choose a profile to run your test suite.
  5. In the Run column, you can select which test suites to be run in this execution.
  6. Once you are done, save your test suite collection and click Execute.
    Click Execute to execute your test suite collection.

The Job Progress is triggered automatically to show the progress while your test suite collection is being executed.

View Job Progress to check the progress of the execution job.

Advanced mobile testing

Set TestCloud desired capabilities

Depending on where you trigger the execution, from Katalon Studio or TestOps interface, the settings for TestCloud desired capabilities may differ.

Note:

With the exception of TestCloud execution in Linux environments (browsers on Linux), you need to specify desired capabilities in Settings > Desired Capabilities > Web UI.

  1. In Katalon Studio, open your project.
  2. Go to Project Settings > Desired Capabilities > TestCloud.
    Go to Project Settings > Desired Capabilities >. TestCloud.
  3. Input your desired capabilities.
    The following are desired capabilities, generated by Katalon Studio for TestCloud execution, that cannot be overwritten by manual input:
    • app
    • katalon:option: { "organizationId": "", "deviceVersion": "", "deviceId": "", "usingTunnel": }
    • platformName
    • deviceName
    • remoteWebDriverUrl
    • remoteWebDriverType
    • isEncrypted
    • readTimeout
    • testCloudRemoteOS
  4. Click Apply to save the configurations.
    The desired capabilities in this section will be applied when you trigger a test run in TestCloud environment from Katalon Studio

Local testing with TestCloud Tunnel

This document shows you how to set up TestCloud Tunnel in Katalon Studio and perform local testing.

If your application under test is locally hosted in a private network, you need to set up a tunnel for TestCloud server to access the application.

In Katalon Studio, you can use the Tunnel Setup Helper to download and configure TestCloud Tunnel.

Configure TestCloud Tunnel

Note:
  • To allow User Datagram Protocol (UDP) connections, the proxy must be configured.
  • If you use a Man-in-the-Middle (MITM) proxy, it must be configured to allow Transport Layer Security (TLS) connections.

Follow these steps to set up TestCloud Tunnel with Tunnel Setup Helper.

  1. In Katalon Studio, click on the dropdown icon of the Run button and choose to run with TestCloud.
  2. In the TestCloud Configuration dialog, tick the Private/Local Testing option.
    You'll see a message in red, as follows:Katalon Studio - TestCloud Configuration dialog, TestCloud Tunnel not available status
  3. Click the Tunnel Setup Helper link.

    The Tunnel Setup Helper dialog appears.Katalon Studio - Tunnel Setup Helper dialog

  4. Follow the step-by-step instructions in the dialog to set up the tunnel client in your local machine:
    1. Select your OS and download the .zip file, then unzip it.
    2. Open the command-line interface (CLI) and navigate to the directory containing the tunnel executable file. Copy the command line from the dialog, then run it in the CLI.
      An example command looks like this:
      /Applications/kt config --tenant KatalonStudio --username "myusername@katalon.com" --organization-id "myid" --api-key "myapikey"
    3. Use the kt start command to start the tunnel.
      Sample terminal message for running TestCloud Tunnel
      Note:

      Keep your CLI open until you have finished running tests.

  5. Switch back to Tunnel Setup Helper and click Close.
    Click Refresh and you can see the available status.Katalon Studio - TestCloud Configuration dialog - TestCloud Tunnel available
  6. Click Run to start executing your test suite / test suite collection with TestCloud Tunnel.

Use TestCloud private mobile devices

TestCloud provides you with a wide range of real mobile devices, in both iOS and Android, to execute mobile tests. With TestCloud private mobile devices, you can have more control over your test devices compared to shared devices:
  • Non-shared environment: Private devices are dedicated to your organization, ensuring high availability and consistent performance.
  • Enhanced data privacy: With complete control over the data stored on the device, you reduce the risk of exposing this data to other users or third parties.
  • Session retention: Private devices come with longer session retention, allow you first configure device functionalities and later perform multiple tests without having to reconfigure from scratch.

With a TestCloud private device subscription, you can perform tests on private mobile devices just as you would on shared devices. See: Run mobile native application tests.

When selecting devices in the Configure Test Environment section, you can find your private mobile devices labeled with their UDID.Configure test environment for test suite, device with UDID tag

Was this page helpful?