Runner class:
package runners;
import factory.PageTypeFactory;
import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
plugin = {“pretty”, “testrail.TestRailCucumberListener”},
/* we have to glue scenarios with step definitions.
along to step definitions we need define here
packages with hooks and transformations
cucumber cli options:
cucumber-jvm/USAGE.txt at main · cucumber/cucumber-jvm · GitHub
*/
features = “Include/src/test/resources/features”,
tags = “()”,
glue = {“hooks”, “mobile”},
objectFactory = PageTypeFactory.class
)
public class DefaultRunner {
}
Error: