Getting parse error for cucumber step definition class


#1

Hi,

I’m getting parse error for cucumber step definition class. Below is the error message shown in Katalon -
Problem while Organize Imports: E%%Softwares%My PC Apps%Katalon Studio%Workspace%LearnCucumber%LearnCucumber.prj/Include/scripts/groovy/stepDef/LoginSteps.groovy has parse errors. No changes applied.

My system environments are -

Execution Environment

|OS:||Windows 7 64bit||
|Katalon version:||7.0.9.1||
|Browser:||Chrome 78.0.3904.108||

Please suggest how to fix this issue.


#2

Hi @appan12345,

Please share us the script of LoginSteps


#3

I found the solution myself. The function name and the annotation glue code should be same and match with the step name in the feature file. In my case, it was not same which caused the issue. Thanks !!