Best Answer · By JanBask QA Expert
Ashish Mishra JanBask Expert
Answered on Jan 13, 2020
TestRunner class is utilized to give the connection between the feature file and step definition file. The following is the example portrayal of how TestRunner class will resemble. A TestRunner class is commonly an unfilled class with no class definition.
Package com.sample.TestRunner
importorg.junit.runner.RunWith;
importcucumber.api.CucumberOptions;
importcucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features="Features",glue={"StepDefinition"})
public class Runner
{
}