I’ve created a script to download a file and place it to a desired location within the Katalon project. I was able to run my script successfully on my local Katalon Studio.
Now, I’ve setup my script to run in the TestOps environment and getting NullPointer exceptions. This is the same code that runs okay locally.
[2024-02-29T08:37:55.756Z] [DEBUG]:
Reason:
java.lang.NullPointerException
at crm.crmUI.setDesiredCapabilitiesAtRuntime(crmUI.groovy:166)
This error points to the DriverFactory.getChromeDriverPath())
This will return a valid string only when you selected Chrome to run your tests with.
If you selected other browsers (Firefox, Edge, etc) then this method will return null.
Unfortunately no. I’m still getting the same error. Also I’ve added the run configuration properties in the log for further investigation just to see if I can’t find a lead. I’m still working on fixing the issue.
Since 15 Feb this year, many Katalon users experienced failures for Chrome v121. You are not alone. Are you aware of it?
Yesterday, Katalon released Katalon Studio v9.3.1 which includes a hot fix for this problem. Have you applied it to your system? If not, just use v9.3.1.
From Katalon support: Regarding the error message, our developer confirms that it’s a limitation from TestCloud’s vendor is currently not able to use the DriverFactory class.
To my surprise, the DriverFactory class is missing there.
I guess, Katalon made some mistake in the buid processing so that the DriverFactory class is not properly exposed to the external world: for the Javadoc, and for the jars provided to the “TestCloud’s vendor”.