Package io.cucumber.testng
Class TestNGCucumberRunner
java.lang.Object
io.cucumber.testng.TestNGCucumberRunner
Glue code for running Cucumber via TestNG.
Options can be provided in by (order of precedence):
- Properties from
System.getProperties() - Properties from in
System.getenv() - Properties properties from
testng.xml - Annotating the runner class with
CucumberOptions - Properties from "cucumber.properties"
Constants.-
Constructor Summary
ConstructorsConstructorDescriptionTestNGCucumberRunner(Class<?> clazz) Bootstrap the cucumber runtimeTestNGCucumberRunner(Class<?> clazz, CucumberPropertiesProvider properties) Bootstrap the cucumber runtime -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Finishes test execution by Cucumber.Object[][]voidrunScenario(Pickle pickle)
-
Constructor Details
-
TestNGCucumberRunner
Bootstrap the cucumber runtime- Parameters:
clazz- Which has theCucumberOptionsandTestannotations
-
TestNGCucumberRunner
@API(status=STABLE, since="6.11") public TestNGCucumberRunner(Class<?> clazz, CucumberPropertiesProvider properties) Bootstrap the cucumber runtime- Parameters:
clazz- Which has theCucumberOptionsandTestannotationsproperties- additional properties (e.g. fromtestng.xml).
-
-
Method Details
-
runScenario
-
finish
public void finish()Finishes test execution by Cucumber. -
provideScenarios
- Returns:
- returns the cucumber scenarios as a two dimensional array of
PickleWrapperscenarios combined with theirFeatureWrapperfeature.
-