If you try running your JUnit test with TestNGBuiltinKeywords v9.3.1, I believe your test will fail again.
I can point out several mistakes in your JUnit code. But I would not describe my observations here. Please try for yourself first and realize.
…
Have you tried it?
I believe, you would get into another trouble with the TestNGBuiltinKeywords class. I am sure, in the console of your failing Tests, you would see the output as the following example, .
2024-02-16 17:09:58.120 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Running TestNG test classes: '[class com.lfilipovic.demo.SearchForEmployeeTest]' failed
2024-02-16 17:09:58.130 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Keyword runJUnitTestClasses was failed (Root cause: com.kms.katalon.core.exception.StepFailedException: Running TestNG test classes: '[class com.lfilipovic.demo.SearchForEmployeeTest]' failed
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:51)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy)
...
All this message tells you is “Test failed, Bye!”. It will show you no diagnostics about your JUnit test class. It won’t tell you which line of your JUnit test is faulty.
You would not be able to debug the JUnit test code at all using the TestNGBuiltinKeywords class of Katlaon. TestNGBuiltinKeywords class is poorly implemented. Not useful at all.