Cucumber test not running

Viewed 16349

I am working on my first feature file/selenium project.

I have created a feature file and runner class.

package cucumberpkg2;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions
(features="Features") 
public class Runner {

}
I have the feature file test.feature

Feature: Login screen

  Scenario Outline: Successful login
    Given User is on Login page
    When User enters valid UserName and Password
    And Clicks the login button
    Then User landed on the home page

But whenever I try to run the TestRunner class as a JUnit test, I get the error:

Test class not found in selected project.

2 Answers
Related