KRE 9.3.1 fails to load Keywords when executing the first TCs, but eventually gets them later in the run


Weird surprise after upgrading to KRE 9.3.1.

Most of our test cases start by calling a custom keyword:

When running test suites using such test cases, the first test cases fail, with KRE logging:

java.lang.ClassNotFoundException: testdata.someModule
(...) at 
etc etc

(see stack trace below)

Eventually, after n TCs left KO, at some point, it goes back to normal, it stops complaining about “ClassNotFoundException”, and it works. In other words, KRE starts working correctly only at the (n+1)-th TC.

With KS 9.3.1, running any test suite with such test cases just works. KS starts working correctly at the first TC.

Any idea what’s wrong? Is this a bug of the upgrade? Is there some part of the Java environment that is not loader early enough? Do we need to change some Java setup?

Thanks in advance for any insight.

Test Cases/someFolder/someTC FAILED.
java.lang.ClassNotFoundException: testdata.someModule
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.getCustomKeywordClassAndSetMetaClass(
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(
	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(
	at com.kms.katalon.core.main.TestCaseExecutor.runScript(
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(
	at com.kms.katalon.core.main.TestCaseExecutor.execute(
	at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(
	at com.kms.katalon.core.main.TestSuiteExecutor.execute(
	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$ Source)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(

Another fact: This issue does not exist with KRE 9.3.0.

But with KRE 9.3.0, as with KRE 9.1.0, we face another issue in the same area: your very first Test Suite may not be executed. See bug description under .

In both cases, it seems KRE may have an issue with in the first minutes of a run. It feels like it starts too quickly, while its contexts are not fully loaded.

In both cases, it should be fixed.



Thank you for letting us know. We will investigate this and let you know soon