Introduction
Hello, Readers!!
Have you guys heard about Katalon Studio?
No? Don't worry, we got you covered. Katalon Studio is a robust automation tool with a Selenium-based engine. It is designed in order to create and reuse automated test scripts for UI without needing to code.
In this blog, we will discuss in detail about how to manage libraries in Katalon Studio in detail.
So let us begin!
Adding External Libraries
Katalon Studio allows the user to use external Java libraries either through project settings or by adding them to a designated folder. These libraries help the user to extend the capabilities of Katalon Studio and handle certain situations when needed
There are three different ways in which a user can add external libraries to a Katalon Studio project, which are:
- Using Gradle.
- By going to the Libraries Management of the Project Settings of the project.
- By copying and pasting the library's .jar file to the Driver folder of the project.
Using Gradle
Katalon Studio supports the automatic downloading of the required libraries from Maven repositories using Gradle.
Using the Katalon Studio Project Settings
The below-mentioned steps should be followed in order to add external libraries using the Katalon Studio project settings:
- Navigate to Project > Settings > Library Management. If the Katalon Studio's version is older than 7.8.0, then navigate to Project > Settings > External Library.
- In the Library management section, click on Add in order to choose the .jar file. In order to remove an added external library, simply select the library and click Remove > OK.
Source: Katalon Docs
- Click on Apply and Close in order to save the settings.
Result
Once the above settings are saved, Katalon will then add the library files to the Drivers folder of the project and will load the libraries. Now the user can use these libraries in their test scripts.
Manually copying and pasting .jar files to the Driver Folder
Users can also manually copy and paste the .jar files directly into the Drivers folder of the project. In order to reload the class paths, the user needs to restart the Katalon Studio (that is, close and re-open the project again).
Result
Once the .jar library gets recognized by the test engine, the user should be able to use it.