No.
In order to tell you why, I need to explain the .classpath file first.
All Katalon project has a file named .classpath in the root directory. The classpath file is auto-generated when you open the project by Eclipse platform on which Katalon Studio runs. Your project will have one as well. Please find a .classpath file of your project and have a look at it.
Here I would show you an example .classpath of my Katalon project created by Katalon Studio v9.0. I intentionally inserted the jar of latest version of Apache POI 5.2.5 into the “Drivers” folder.
.classpath (24.2 KB)
Inside the file, you will find the poi-x.x.x.jar to appear twice:
Line#36
<classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/lib/poi-3.17.jar"/>
Line#189
<classpathentry kind="lib" path="/Users/kazurayam/katalon-workspace/test/Drivers/poi-5.2.5.jar"/>
Katalon Studio will look for an individual class binary to load into JVM in all the jar files declared in the .classpath. It will look through the jars from the top to bottom as declared in the .classpath file. In other words the classes contained in poi-3.17.jar will have higher precedence to the classes contained poi-5.2.5.jar because the jar of ver3.17 comes first. What will happen if my Test Case script called the POI API? — Nobody can tell what will happen. We will see a total mess. The POI classes of the old v3.17 and the new v5.2.5 will be refered intermixed runtime.
Katalon Studio is NOT designed to drop the older poi-3.17.jar entirely when I inserted the newer poi-5.2.5. In other words, KS does not offer you to utilize such a “dependecy management” capability that Maven/Gradle provides.
When you put an “external” jar which is not bundled in the Katalon Studio distributable at all, yes, you will have no problem. Your test case script can safely use the classes in your new-comer jar.
When you put a newer version of jar of which older version is bundled in the Katalon Studio distributable (such as the poi-x.x.x.jar), no, you will get a total mess.
Similarly, you can not switch the version of Selenium WebDriver from v3 to v4 very easily.
The following description will be informative for you:
Exclude built-in libraries
- An active Katalon Studio Enterprise license.
- Katalon Studio version 7.8.0 onwards.
The Exclude built-in libraries feature allows you to remove built-in libraries stored in the .classpath file of a project folder. This feature applies to all libraries in the .classpath file, excluding the following:
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
Removing the above libraries may cause failure of the relevant features.