For both novice and experienced testers, Katalon Studio is an all-in-one test automation solution for API, web, mobile, and desktop. The following platforms: Windows Forms (WinForms), Windows Presentation Foundation (WPF), Classic Windows, and Universal Windows Platform (UWP) are all fully supported by Katalon Studio for automation testing of desktop applications. In this article, we will be learning about Introduction to Desktop App Testing and test objects in Katalon.
Windows Execution Type
Windows Keyword
For the manual view to add a Windows keyword:
Enter Win and press Ctrl+Space to add a Windows keyword in the script view:
Go to Keywords Browser > Built-in Keywords > Windows Keyword to see a visual representation of Windows built-in keywords.
From the main menu, select File > New > Windows Object. It displays the New Windows Object dialog.
Give the new test object a name, then press the OK button to add it to Katalon Studio's object repository.
Locator strategy for detecting an object
Katalon Studio, which is based on Windows Application Driver, supports six locator techniques for locating UI elements in desktop applications. A Windows test object can be located in a variety of ways.
Accessibility ID: An object's AutomationId
E.x.: AppNameTitle
Class Name: An object's ClassName property.
Ex- TextBlock
ID: A runtime object's distinct ID
E.x.: 42.333896.3.1
Name: The designation of an item
E.x.: Calculator
Tag Name: The tag name (also known as the object's element type)
E.x.: Text
XPath
E.x.: //Button[0]
Verify and Highlight
The Windows Object Spy and Recorder in Katalon Studio has an integrated Highlight feature that enables double-checking whether the Windows objects can be located.
With the chosen locator technique and location, Katalon Studio displays a message stating how many elements were located or were NOT found. If the item is located, the green border will be applied to highlight it.
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.
Is Java supported by Katalon?
To operate a Katalon Studio instance and create test applications. Katalon Studio makes use of the standard embedded Java Runtime Environment (JRE) version 8.