hey everyone @kazurayam @gregorio.catalan @ffrik @dineshh @adadiagne08 @claytonmildy
I found the solution for this issue.
-
if you are using
Katalon Studio v9, you need to useJava/JDK/JRE 21. you can change the configuration underSettings --> Java --> Installed JRE -
you should change your package from
(default package)to your own, for exampleYourPackageName -
you should add the
Test Listeneron the project, here’s the example:
// README: the Test Listener filename should be `Listener`
// README: you should change the `YourPackageName` to your own package name
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
class Listener {
/**
* Executes before every test case starts.
* @param testCaseContext related information of the executed test case.
*/
@BeforeTestCase
def sampleBeforeTestCase(TestCaseContext testCaseContext) {
CucumberKW.GLUE = ['YourPackageName']
}
}
- now you should able to run your BDD test from anywhere (
from Feature Files,from Test Caseorfrom Test Suite)
I have following this official documentation, but didn’t works ![]()
if you are confuse, just ping me or you can see on the attached images
