"Create all steps definition" options is not working in Gradle Cucumber project in Intellij

I am working on a Java Intellij gradle project. I am trying to implement BDD cucumber in my project.

I have encountered two issue while implementing cucumber in my project:

1. "Create all steps definition":  As the name suggest "creating step definition for all" is not creating definition for all the Scenario or When & Then statement.

2. As in the attached screenshot If i select to create a java step definition file from the .feature file then the "when or Then" statement unable to link/ refer the definition. If i will create a .js file then only it used to link/ refer the definition. I think i have to create a .java definition file and it should link to the statement.

 

Please correct if i am doing anything wrong or what should be the right way of creating the step definition file from .feature file.

1
Avatar
Permanently deleted user

I seeing the same thing - it's as if the glue between then no longer seems to work.

0
Avatar
Permanently deleted user

Worked for me by going to Preference->search for bdd  -> Select 'Behave' for Preferred BDD framework. Restart the Pycharm

0

请先登录再写评论。