1. Define a test class
@RunWith(Cucumber.class)
@CucumberOptions(features = “Include/features/Login.feature”, tags = “@LoginWithoutAD_Admin2”)
public class MyCucumberRunner2
{
}
2. Create a test scenario
CucumberKW.runWithCucumberRunner(MyCucumberRunner2.class)
It will run successfully
BUT
Then I want to change the name of public class. For example like this
**MyCucumberRunner3
**so I change it in both places
and when I run my scenario, i got an error
unable to resolve class scenarios.MyCucumberRunner2
@ line 18, column 1.
import scenarios.MyCucumberRunner2
so why it still looking for old name?