Cucumber error | Selenium Forum
N
Nagajyothi Posted on 04/06/2020

while I was running the feature file in cucumber.I am getting the following error.

Please help me.

Thank you.


A
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


N
Nagajyothi Replied on 16/06/2020

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 {

}


A
Ashish Thakur Replied on 17/06/2020

features=".//Features/Login.feature",
glue="stepDefinitions",

 

this is case sensitive

Are your package names ok?


N
Nagajyothi Replied on 17/06/2020

Yes ,package names are same.

 


A
Ashish Thakur Replied on 23/06/2020

Attach your project here please