Table of contents
1.
Introduction
2.
Tutorial for Mobile Object Spy
3.
Spy and Record Utilities for testing an existing application
4.
Frequently Asked Questions
4.1.
Which framework is used in Katalon Studio?
4.2.
What is the purpose of Katalon Studio?
4.3.
Does Katalon support Java?
5.
Conclusion
Last Updated: Mar 27, 2024

Tutorial for Mobile Object Spy and record utilities for testing an existing application in Katalon studio

Career growth poll
Do you think IIT Guwahati certified course can help you in your career?
OG Image

Introduction

Spy Web Utility provides the ability to capture intelligent objects during web testing. Using the program, you can select various attributes and find techniques to nimbly capture test objects. In this article, we will learn about Generating reliable object selectors using the Spy Web utility in Katalon.

intro

Tutorial for Mobile Object Spy

Except Android Data Matcher, Katalon Studio supports all selection strategies offered by Appium as of version 7.6. You can learn more about utilising Spy Moble Utility to capture Mobile items on an application by reading this blog.

Before capturing Mobile objects on an application, ensure that you have successfully configured the environment for mobile testing.

  • Choose the Spy Mobile icon from the main Toolbar and click your device type, for example, Android Devices.
choosing android devices
  • In the displayed Mobile Object Spy dialog, write the information at the Configurations section:
entering device name

Here:

  • Device Name: A mobile device wherein Katalon launches the application (All of your connected devices should be displayed in this list.)
     
  • Start with: In the drop-down list, you can choose either Application ID or Application File
    • Application File: Browse your tested application (.ipa file for iOS; .apk file for Android)
    • Application ID: Specify the application ID of your tested application, which is either the bundle identifier of an iOS app or the package name of an Android app.
       
  • Click Start to begin spying the application under test (AUT). Wait until the AUT is launched and the All Objects and Device View are ready for you to capture objects of the AUT.
screenshot
  • You can choose on any object either in the tree of All Objects or in Device View; Katalon highlights their counterpart accordingly for verification.
    • Device View is a simulator of the device's screen.
    • All Objects captures and organizes all the displayed mobile objects of Device View in a tree.
device view

To ensure the Device View shows the current screen of the AUT on the device, you can click on the Capture Object button to reload Device View and then refresh All Objects.

  • Check any objects in All Objects. Katalon Studio captures the selected objects and displays the objects' properties in the Object Properties table.
android ui automater
  • The most essential property of an object is its value and locator strategy. The default locator is a unique value in detecting that object. Katalon Studio 7.6+ supports selector strategies supported by Appium except for Android Data Matche. If you want another locator strategy among the provided option, you can choose it and generate a new locator. Then choose Highlight to check if your newly updated locator can check the target object on its screen correctly.
     
  • Choose Add to Object Repository to save them to Katalon Studio.
     
folder browser
  • In the displayed Folder Browser dialog, you can make a decision where to save the captured objects. Select your preferred location, then click OK. The captured objects will be included in Object Repository accordingly.

You can continue with the current mobile screen or navigate to other interfaces. To reload the Device View and All Objects, choose the Capture Object button.
 

capture object

Spy and Record Utilities for testing an existing application

  1. Open Mobile Object Spy/Mobile Recorder with Android or iOS devices.
     
  2. You can start spying or recording on an existing application with an application ID in configurations. Select Application ID, enter the application ID in the corresponding text field, the Start button will be enabled.
     

In Mobile Recorder

  • In Recorded Actions, the first action is Start Existing Application.
     
  • After you press OK button to finish its recording session, Katalon Studio will generate script with Mobile.startExistingApplication(appId).

Frequently Asked Questions

Which framework is used in Katalon Studio?

Groovy is a Java-based language used by Katalon Studio. It requires the loading of numerous libraries in order to parse test data, test objects, and logging.

What is the purpose of Katalon Studio?

Without requiring coding, Katalon enables the creation and reuse of automated UI test scripts.

Does Katalon support Java?

To operate a Katalon Studio instance and create test applications. Katalon Studio makes use of the standard embedded Java Runtime Environment (JRE) version 8.

Conclusion

We have extensively discussed Tutorials for Mobile Object Spy and record utilities for testing an existing application in Katalon studio in this article. We hope this blog has helped you enhance your knowledge. If you would like to learn more. Check out our articles on Advanced Guides in Katalon. Practice makes a man perfect. To practice and improve yourself in the interview. You can check out the Top 100 SQL problems and Interview experienceCoding interview questions and the Ultimate guide path for interviews.

Live masterclass