Step Definition detection only works when project is configured as cucumber project.- Virtual Machine

Viewed 14033

feature file and stepdefiniton file could not be connected. It happens only in eclipse installed in Win Server 2012R2 Virtual Machine.

3 Answers

This error will appear when you import any new cucumber project from git or directly from local system. Because you have not configured the project to cucumber and it is configured only to maven.

This error can appear for both Selenium and appium testing for web and mobile automation testing.

You can use below screenshot to convert to cucumber project.

Right click on project- Click on Configure amd select configure as Cucumber project

This issue will be resolved if you convert the project as a cucumber project. Right-click on your project from the Project Explorer > Configure > Convert as Cucumber Project.

After changing the project to Cucumber the issue resolved for me.

Related