hi guyss, i have another issue, anyone can help ?
im using katalon version : 10.0.0.223
jre : 21
i have add this in build.gradle also
dependencies {
implementation 'net.bytebuddy:byte-buddy:1.12.8' // or the compatible version with Katalon
}
configurations.all {
resolutionStrategy {
force 'net.bytebuddy:byte-buddy:1.12.8'
}
}
but got this errror
Caused by: java.lang.IncompatibleClassChangeError: class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty$1 cannot inherit from final class net.bytebuddy.implementation.FieldAccessor$FieldNameExtractor$ForBeanProperty
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
i have import this in my test casee…
and the package name on my Include/ folder also common.
so where i should put this CucumberKW.GLUE = [‘common’] @depapp ?
in Include/` folder - common package ya ?
okay, i have follow those step…
and the nettbuddy issue already gone. thanks @depapp@kazurayam for your help.
but currently im facing new issue
1 Scenarios (e[33m1 undefinede[0m)
3 Steps (e[33m3 undefinede[0m)
so the gherkin step in cucumber is not recognized. when am googling about this the solution is make sure cucumber plugin is installed in katalon store, but when i go to my katalon store and search cucumber plugin, its not found…
where i can install the cucumber plugin ?
anytime.
to make it easier for others to find the solution, I think it would be great if you @rosdiana.sitinjak could mark my answer as the solution. thanks
you need to use Java/JDK/JRE 21. you can change the configuration under Settings --> Java --> Installed JRE
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']
}
}
notes :
YourPackageName is taken from you should see on the Include/ folder