Libraries management in Katalon Studio
Katalon Studio allows using external Java .jar
libraries either through project settings or adding them to a designated folder. You can leverage this to extend the capabilities of Katalon Studio and handle specific situations when needed. This article will show you how to add external libraries to Katalon Studio or replace the built-in libraries with the external ones in a test project.
Add external libraries to a project
You can add external libraries to a Katalon Studio project in three different ways:
- Use Gradle.
- Go to Libraries Management of the Project Settings of a project.
- Copy and past a library's
.jar
file to Driver folder of a project.
Use Gradle in Katalon Studio
Use project settings
Manually copy and paste .jar files to the Drivers folder
.jar
file (and its dependencies if any) into the Drivers folder of a project. You have to restart Katalon Studio (close and open the project again) to reload its class paths.
When your .jar
library is recognized by the test engine, you should be able to use it. Refer to how to create a Custom Keyword for more information on how to use the email validation functionality from Apache open-source library commons-validator-1.5.1.jar.
Exclude built-in libraries
- An active Katalon Studio Enterprise license.
Katalon Studio version 7.8.0 onwards.
.classpath
file of a project folder, you can replace a built-in library with an external one for flexible libraries usage in a test project.- This feature applies to all libraries in
classpath
, excluding:com.kms.katalon.*.jar
selenium-server-standalone-3.141.59.jar
poi-3.17.jar
poi-ooxml-3.17.jar
poi-ooxml-schemas-3.17.jar
java-client-7.0.0.jar
io.cucumber.*.jar
Excluding those libraries may cause failure of the relevant features.