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:
https://github.com/cucumber/cucumber-jvm/blob/main/core/src/main/resources/io/cucumber/core/options/USAGE.txt
*/
features = “Include/src/test/resources/features”,
tags = “()”,
glue = {“hooks”, “mobile”},
objectFactory = PageTypeFactory.class
)
public class DefaultRunner {
}
Error:
