Table of contents
1.
Introduction 
2.
About Katalon
3.
Dependencies Management with Native Gradle Support (Poc) in Katalon
3.1.
Gradle Settings
3.2.
Gradle Tasks
3.3.
Usage Examples of katalonCopyDependencies Task
4.
Frequently Asked Questions
4.1.
What are custom keywords?
4.2.
What are automated software testing tools?
4.3.
What language does Katalon use?
4.4.
Can we write code in Java?
5.
Conclusion
Last Updated: Mar 27, 2024
Easy

Dependencies Management with Native Gradle Support (Poc) in Katalon

Author Shiva
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction 

Hello, readers. In this article, we will learn dependencies management with native Gradle support (Poc) in katalon. We’ll also briefly cover about katalon and how to Parameterize Azure DevOps Test Case ID List (PoC). Here, PoC is just a short form for Proof of Concept.

introductory image

About Katalon

Katalon Studio, or simply Katalon, is an automated testing software tool. It is suitable for testing web, API, mobile, and desktop applications. It displays test data and execution outcomes in charts, graphs, and reports. Some key components of Katalon studio are test management, test planning, and test execution. 

katalon logo

Automated software testing tools like Katalon reduces human effort and eases the process of testing and quality assurance. 

Dependencies Management with Native Gradle Support (Poc) in Katalon

A dependency here outlines the specific order in which certain tasks must be completed as well as the relationship between the various activities. These dependencies are pieces of code that are available and can be reused with the help of which the whole structure is built. 

Disclaimer first, For usage in production, this Proof of Concept (PoC) is not yet ready. It is recommended to use this Proof of Concept for evaluation purposes only.

Previously, Katalon Studio included a Gradle Plugin to streamline and automate several activities in Katalon Studio, but the whole thing was tedious, and the dependency management was quite basic.

Katalon Studio's native Gradle integration and Gradle wrapper, which are driven by Buildship, an Eclipse plugin, streamline and strengthen dependency management with Maven or Gradle. Instead of being restricted to using only the fixed version you previously installed on your local machine, you are free to choose whatever Gradle version to use in your test project. You are also no longer forced to utilize any command-line or third-party tools.

Users of Katalon who utilize third-party libraries in various test projects and prefer to manage their build process with Gradle would particularly benefit from this capability. Instead of utilizing an external terminal or command prompt or installing Gradle in Katalon Studio, Gradle tasks can be executed in a more effective editor. When external libraries can be managed and downloaded in fewer steps, human interaction is greatly reduced.

Now, we will learn how to utilize Katalon Studio's built-in Gradle support and how it looks.

Gradle Settings

All projects in Katalon Studio have the built-in Gradle integration enabled by default. Navigate to Katalon Studio > Preferences > Gradle to access Gradle options.

gradle settings

Now, Go to Project > Properties > Gradle to modify a project's Gradle settings.

properties
gradle

Gradle Tasks

Open the Gradle Tasks tab on the bottom dock to use Gradle tasks. 

Click Refresh Tasks for All Projects in the top right corner to sync Gradle tasks whenever you make changes to the build.gradle file.

Katalon Gradle tasks can be seen and used by selecting Show All Tasks from the three dots menu in the top right corner.

gradle tasks
gradle tasks

All Katalon Tasks can be found in the other category of the Gradle task tree.

To launch the specific Gradle tasks, click on any item in the tree. After completing the katalonCopyDependencies action, you must choose Project > Refresh to update the project classpath.

gradle tasks

 

gradle tasks
gradle executions

Usage Examples of katalonCopyDependencies Task

Open the build.gradle file on Tests Explorer in the editor:

You can add dependencies to a project using compile command:

compile 'io.rest-assured:json-schema-validator:5.3.0'
gradle plugins

To exclude dependencies, issue the following command:

compile ('io.rest-assured:json-schema-validator:5.3.0') {
    exclude group: 'org.hamcrest', module: 'hamcrest-core' 
}

Frequently Asked Questions

What are custom keywords?

Custom keywords behave just like built-in keywords after creation. Custom keywords can be used when building test cases once they have been created.

What are automated software testing tools?

Automated testing software tools assist teams and organizations in automating their software testing needs, reducing human efforts and attaining improved speed, reliability, and efficiency.

What language does Katalon use?

Katalon Studio uses Groovy, which is a Java-based language.

Can we write code in Java?

Yes, we can use Java in Katalon. When writing scripts and custom keywords, we can write them in either Groovy or Java syntax. Groovy is simply a language that extends the Java language.

Conclusion

In this article, we learned dependencies management with native Gradle support (Poc) in katalon. If you want to explore more, here are some related articles - 

You may refer to our Guided Path on Code Studios for enhancing your skill set on DSACompetitive ProgrammingSystem Design, etc. Check out essential interview questions, practice our available mock tests, look at the interview bundle for interview preparations, and so much more!

Live masterclass