while I was running the feature file in cucumber.I am getting the following error.
Please help me.
Thank you.
Instructor
Ashish Thakur Replied on 09/06/2020
please specify path in runner config
Or the package name of feature file glue code should be same as feature file path
Hi Ashish,
I specified this already in runner class.
Thankyou.
package TestRunner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions
(
features=".//Features/Login.feature",
glue="stepDefinitions",
dryRun=false,
monochrome=true,
plugin= {"pretty","html:test-output"}
)
public class Testrun {
}
Instructor
Ashish Thakur Replied on 17/06/2020
features=".//Features/Login.feature",
glue="stepDefinitions",
this is case sensitive
Are your package names ok?
Yes ,package names are same.
Instructor
Ashish Thakur Replied on 23/06/2020
Attach your project here please