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 TypeMethodDescriptionvoid
finish()
Finishes test execution by Cucumber.Object[][]
void
runScenario
(Pickle pickle)
-
Constructor Details
-
TestNGCucumberRunner
Bootstrap the cucumber runtime- Parameters:
clazz
- Which has theCucumberOptions
andTest
annotations
-
TestNGCucumberRunner
@API(status=STABLE, since="6.11") public TestNGCucumberRunner(Class<?> clazz, CucumberPropertiesProvider properties) Bootstrap the cucumber runtime- Parameters:
clazz
- Which has theCucumberOptions
andTest
annotationsproperties
- 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
PickleWrapper
scenarios combined with theirFeatureWrapper
feature.
-