проверьте класс тестового бегуна, в котором вы указали путь для подбора файлов объектов. В настоящее время он ищет папку C:/Users/304090/eclipse-workspace/evms-qa-testautomation/src/test/resources/
для файлов .feature.
cucumber.api.CucumberOptions
импортирует аннотацию @CucumberOptions
и ее wwll подскажет, где искать файлы объектов
Вам необходимо создать папку функций в src/test/resources
и вставить в нее вашу .feature file
. После этого просто обновите свой класс бегуна
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/resources/features/featurefileanme.feature",
glue={"path of glue package"}
)
public class TestRunner {
}
со спокойствием:
import cucumber.api.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
features = "src/test/resources/CreatePreVioltReport.feature",
glue = "stepsDef"
)
public class RunTests {}