StarBugs
StarBugs

Reputation: 71

Control Click from .feature file to Step Definition is not working

I am using Cucumber with Java on Eclipse IDE. Trying to navigate from .feature file to Step definition, however when I hit enter button and hover mouse to the Given, then or When it is not turning in to hyperlink and after click as well not going anywhere.

Upvotes: 7

Views: 43232

Answers (5)

amar kaldate
amar kaldate

Reputation: 21

Following 3 steps are quite handy while configuring any Cucumber project from new/existing in Eclipse:

  1. Install these 2 Plugins from Eclipse Marketplace - Cucumber Eclipse & Natural
  2. Right-click on project and select Configure -> Convert to Cucumber Project...
  3. Install pending Eclipse updates, if any.

This will solve the original problem of control click (navigation to step definition file from feature file) in Eclipse as well.

Upvotes: 1

Tanmay Wadkar
Tanmay Wadkar

Reputation: 111

Install Cucumber Eclipse Plugin from Eclipse Marketplace;
Once the plugin is installed, Create a feature file;
Right Click on Project -> Configure -> Convert to Cucumber project;
Now try Ctrl + Click on any step from feature file.

Upvotes: 11

Shubham parab
Shubham parab

Reputation: 81

Install " Cucumber Eclipse Plugin " From Eclipse Marketplace once the plugin is installed Create a feature file .

Right Click on Project -> Configure -> Convert to Cucumber project

once its Converted all steps within feature file will redirect to step-definition

Path to Convert Project

Upvotes: 6

Chakrapani Meruva
Chakrapani Meruva

Reputation: 19

  • Uninstall Cucumber from marketplace and restart the eclipse

  • Then just search for keyword "Cucumber" in the marketplace, install it and restart Eclipse.

  • Now from project tree open your feature file with "Cucumber Editor".

  • Control + Click and you are good to go.

Upvotes: 1

Related Questions