Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
2.
Windows Execution Type
3.
Windows Keyword
4.
Windows Object
5.
Spy Windows Object
6.
Record Windows Action
7.
Windows Test Objects
7.1.
Create a Windows test object​
7.2.
Locator strategy for detecting an object
7.3.
Verify and Highlight
8.
Frequently Asked Questions
8.1.
Which framework is used in Katalon Studio?
8.2.
What is the purpose of Katalon Studio?
8.3.
Is Java supported by Katalon?
9.
Conclusion
Last Updated: Mar 27, 2024
Medium

Introduction to Desktop App Testing and test objects in Katalon

Author SHIVANGI MALL
0 upvote

Introduction

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.

Introduction to Desktop App Testing and test objects in Katalon

Windows Execution Type

Windows Execution Type
Windows Execution Type

Windows Keyword

For the manual view to add a Windows keyword:

Windows Keyword

Enter Win and press Ctrl+Space to add a Windows keyword in the script view:

Windows Keyword

Go to Keywords Browser > Built-in Keywords > Windows Keyword to see a visual representation of Windows built-in keywords.

Windows Keyword

Windows Object

Windows Object

Spy Windows Object

Spy Windows Object

Record Windows Action

Record Windows Action

Windows Test Objects

Create a Windows test object

  • From the main menu, select File > New > Windows Object. It displays the New Windows Object dialog.
Windows Test Objects
  • 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

Locator strategy for detecting an object
  • Class Name: An object's ClassName property.

Ex- TextBlock

Locator strategy for detecting an object
  • ID: A runtime object's distinct ID

E.x.: 42.333896.3.1

Locator strategy for detecting an object
  • Name: The designation of an item

E.x.: Calculator

Locator strategy for detecting an object

  • 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.

Verify and Highlight

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.

Conclusion

We have extensively discussed Introduction to Desktop App Testing and test objects in Katalon 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.

ThankYou

 

Live masterclass