问题
feature file and stepdefiniton file could not be connected. It happens only in eclipse installed in Win Server 2012R2 Virtual Machine.
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/58327032/step-definition-detection-only-works-when-project-is-configured-as-cucumber-proj