Hi,
Please refer to: Migrate Katalon Studio from 8.x to 9.0.0 | Katalon Docs.
if you have migrated a BDD project from KS 8.x to 9.x
For users with BDD projects
You need to add a @BeforeTestCase listener to your project. To learn more about test listeners, see Test Listeners (Test Hooks).
- You don’t need to modify every script in your project, you just need to add this test listener ONCE.
In the Tests Explorer panel, right click Test Listeners and create a new test listener. Then, copy and paste the following code to the listener script:
import com.kms.katalon.core.cucumber.keyword.internal.CucumberGlueGenerator@BeforeTestCasedef beforeTestCase(TestCaseContext context) { CucumberGlueGenerator.addDefaultPackages();}