I got this `bytebuddy` error when executing BDD test

hey everyone @kazurayam @gregorio.catalan @ffrik @dineshh @adadiagne08 @claytonmildy

I found the solution for this issue.

  1. if you are using Katalon Studio v9, you need to use Java/JDK/JRE 21. you can change the configuration under Settings --> Java --> Installed JRE

  2. you should change your package from (default package) to your own, for example YourPackageName

  3. you should add the Test Listener on 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']
	}
}
  1. now you should able to run your BDD test from anywhere (from Feature Files, from Test Case or from Test Suite)

I have following this official documentation, but didn’t works :-1:

if you are confuse, just ping me or you can see on the attached images

8 Likes