Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Importing an External Library Into Your Automation Project in Katalon Studio

DZone's Guide to

Importing an External Library Into Your Automation Project in Katalon Studio

You can add external libraries to the Katalon Studio testing framework to handle specific situations. Learn how in this simple tutorial.

· DevOps Zone ·
Free Resource

Download the blueprint that can take a company of any maturity level all the way up to enterprise-scale continuous delivery using a combination of Automic Release Automation, Automic’s 20+ years of business automation experience, and the proven tools and practices the company is already leveraging.

Katalon Studio allows users to use external Java.jar libraries either through Katalon project settings or copying.jar files to a designated folder. Users 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.

Using Katalon Project Settings

On Katalon Studio, from the toolbar select Project > Settings > External Libraries. Click on Add to browse and select your .jar file(s) (and its dependencies, if any). Click on Apply and OK to save the settings.

External Library

After saving the setting, Katalon will add the library file(s) into its Drivers folder on the local drive and loads the libraries. Now user can use the libraries in their test scripts.

To remove imported external libraries, specify the library which you want to delete, click on Remove and click OK.

 remove import external library

Manually Copy.jar Files to the Drivers Folder

You can also manually copy your .jar file (and its dependencies if any) into Drivers folder. You have to restart Katalon (shutdown and open it again) to reload its classpaths.

When your .jar library is recognized by Katalon, you should be able to use it in your code. Refer to the topic How to create a Custom Keyword for information on how to use the email validation functionality from Apache open source library commons-validator-1.5.1.jar.

For more tutorials about automation testing tools, please visit Katalon Tutorials.

Download the ‘Practical Blueprint to Continuous Delivery’ to learn how Automic Release Automation can help you begin or continue your company’s digital transformation.

Topics:
katalon studio ,software testing ,test automation ,automation ,automated testing ,devops

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}