Fixed | Not a File or Directory | Cucumber Feature File Runner Issue

This is the most common issue faced while running a Cucumber Feature File. This issue will not be there if you run the feature using a Runner File.

Reason for Exception thrown

When you move the feature file to another directory and try to run, we come across this exception because runtime will still be pointing the feature file to old location.

Fix

  • Right click on feature file and select Run As -> Run Configurations
  • Under Cucumber Feature Runner, change the feature path to the updated path. Click Apply and Run.

Thank you All!!! Hope you find this useful.

Leave a Reply

Up ↑

Discover more from JD Bots

Subscribe now to keep reading and get access to the full archive.

Continue reading