Hello, I’m encountering a persistent issue when executing a BDD test using runFeatureFile() in Katalon Studio version 10.3.2.
The test case fails with the following exception:
com.kms.katalon.core.exception.StepFailedException: Feature file ‘Include/features/Test.feature’ was failed
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:51)
…
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:74)
Steps I’ve already verified:
The .feature file is correctly located at Include/features/Test.feature
The glue code is in Include/scripts/groovy/stepDefinitions/TestStepDefinition.groovy with the package stepDefinitions
Step definitions use cucumber.api.java.en.Given/When/Then and match the .feature file exactly
Auto-build is enabled (Project > Build Automatically)
I’ve cleaned the project by deleting bin/, Libs/, .classpath, and .project
The plugin “Cucumber for Groovy” is not visible in the Katalon Store, so I assume it’s integrated in version 10.3.2
Despite all this, the test consistently fails with StepFailedException.
Can you confirm whether BDD/Cucumber support is fully functional in Katalon Studio 10.3.2?
Is there a way to verify whether glue code is being registered correctly?
Could you provide a working sample project to test the environment?
To force a verification, you can deliberately introduce a typo into a step in your .feature file. If the error message changes from the generic failure to a specific “step is undefined” error, you know the connection is working for the other steps.
If your setup matches these paths and it still fails, download the official BDD sample project from GitHub, run it in 10.3.2, and compare the folder and package structure directly against your project layout.
error indicates Katalon cannot locate or match glue code, often due to package mismatch or build cache issues.
Welcome to our community. Have you got your problem solved? If yes, feel free to share the workaround. If no, please help provide any follow-up information so that we can better support. Thank you