I am working on a project where we want to use Katalon Studio as a single point of running and maintaining tests.
Some of the tests use SikuliX in order to test GUI of native applications, and we aim to write the glue code between the Cucumber features in KS and the Sikulix API in Java.
This glue code is maintained in a separate Java code project at the moment.
The glue code is packaged in a jar with all its dependencies. This jar is then added as Project -> External Libraries in Katalon Studio.
When running tests, we experience the following error:
Apparently, this is due to version mismatch in the net.java.dev.jna library.
SikuliX require version 5.x.x of this library. It seems that Katalon has a lower version (4.x.x).
- Are there any plans of upgrading Katalon Studio to use newer versions of the jna-library?
- Are there any other ways to circumvent this problem?
We have tried relocating the jna classes in the glue code by using the maven shade plugin. This might work in the general case where there are version mismatches, but in the case of jna, there are too many native dependencies that break.
We are using KS version 7.2.1
I ended up replacing the jna-4.x.jar and the jna-platform-4.x.jar inside
with jna-5.x.jar and jna-platform-5.x.jar respectively. Then restarting KS.
However, I don’t know if this will hit me with other side effects…