Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
2.
Start Katalon Studio with remote debugger mode
3.
Import your platform plugin to Eclipse IDE as a Maven project
4.
Set a breakpoint
5.
Create a Java Remote Application Debugger
6.
Configure the Java Remote Application Debugger
7.
Import the plugin to Katalon Studio and start debugging
8.
Disconnect and stop debugging
9.
Frequently Asked Questions
9.1.
What is XPath in Katalon?
9.2.
Which protocol is used by the RESTful Web services?
9.3.
Which WebDriver API is the fastest?
9.4.
Which language is best for SaaS?
9.5.
What is a GUI testing tool?
10.
Conclusion
Last Updated: Mar 27, 2024

Debug your platform plugin using Eclipse IDE

Author Muskan Sharma
0 upvote

Introduction

Hey Readers!!

Do you know about plugins in Katalon Studio?

The Katalon plugin searches Test Objects by the attributes listed in the Test Object physical files.

In this article, you'll learn to Debug your platform plugin using Eclipse IDE.

Let's begin!!

Debug your platform plugin using Eclipse IDE

Start Katalon Studio with remote debugger mode

Start katalon using CLI with this command:

<katalon_installed_folder>/katalon-vmargs-Xdebug-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Where 

  • <katalon_installed_folder>: the path of the installed katalon project.
  • address=8000: It is the local port number and can be changed per your need.

Import your platform plugin to Eclipse IDE as a Maven project

We'll be using the maven project and importing the platform plugin to Eclipse IDE:

Import your platform plugin to Eclipse IDE as a Maven project

Source: Katalon Plugin

Set a breakpoint

Open the java file of the project and set the breakpoints in the code of the java file:

System.out.println("Hello, my plugin is: " + plugin.getPluginId());
Set a breakpoint

Source: Java file

Create a Java Remote Application Debugger

On the icon of eclipse debugger, click on the drop-down arrow present there and click on the option Debug Configuration:

To add a new Remote Debugger, right-click on the Java Remote Application and select New Configuration.

Create a Java Remote Application Debugger

Source: Remote Java Application

Configure the Java Remote Application Debugger

  • In the Project section, click on the platform plugin project. 
  • In the section of Port: Enter the port number you selected.
  • After completing, select Debug to finish the setup.
Configure the Java Remote Application Debugger

Source: New Configuration

Import the plugin to Katalon Studio and start debugging

Import your plugin and take the necessary steps to ensure that the breakpoint you set is achieved.

After a successful import, you can debug the platform plugin project as a normal java project.

Disconnect and stop debugging

Press the Red icon, and your session will get disconnected and stop debugging.

Frequently Asked Questions

What is XPath in Katalon?

One of the HTML selectors used in test automation is called XPath.

Which protocol is used by the RESTful Web services?

RESTful web services use the HTTP protocol as a communication channel between the server and client.

Which WebDriver API is the fastest?

The fastest and cheapest headless browser implementation for WebDriver is HTMLUnitDriver.

Which language is best for SaaS?

Ruby is a language that is for SaaS. It is a flexible, portable language primarily used to create desktop SaaS applications.

What is a GUI testing tool?

A proper GUI (graphical user interface) is always helpful in capturing the user's attention. Hence, GUI testing tools test the application's user interface.

Conclusion

This blog has extensively discussed Debugging the platform plugin using Eclipse IDE. This article helped enhance your knowledge about Importing platform plugins to Eclipse IDE as a Maven project, Configuring the Java Remote Application Debugger Importing plugin to Katalon Studio, and starting debugging.

Develop a customized report plugin and generate groovy doc in katalon 

How to develop a Custom Keywords plugin in Katalon 

How to resolve external dependencies for a plugin in Katalon

If you want to learn more deeply, check out the excellent content on the Coding Ninjas Website:

Develop a customized report plugin and generate groovy doc in katalonHow to develop a Custom Keywords plugin in KatalonHow to resolve external dependencies for a plugin in Katalon.

Refer to our guided paths on the Coding Ninjas Studio platform to learn more about DSA, DBMS, Competitive Programming, Python, Java, JavaScript, etc. 

Refer to the links problemstop 100 SQL problemsresources, and mock tests to enhance your knowledge.

For placement preparations, visit interview experiences and interview bundle.

Thank You

Do upvote our blog to help other ninjas grow. Happy Coding!

Live masterclass