Class TestNGCucumberRunner

    • Constructor Detail

      • TestNGCucumberRunner

        public TestNGCucumberRunner​(Class<?> clazz)
        Bootstrap the cucumber runtime
        Parameters:
        clazz - Which has the CucumberOptions and Test annotations
      • TestNGCucumberRunner

        @API(status=STABLE,
             since="6.11")
        public TestNGCucumberRunner​(Class<?> clazz,
                                    CucumberPropertiesProvider properties)
        Bootstrap the cucumber runtime
        Parameters:
        clazz - Which has the CucumberOptions and Test annotations
        properties - additional properties (e.g. from testng.xml).
    • Method Detail

      • runScenario

        public void runScenario​(Pickle pickle)
      • finish

        public void finish()
        Finishes test execution by Cucumber.
      • provideScenarios

        public Object[][] provideScenarios()
        Returns:
        returns the cucumber scenarios as a two dimensional array of PickleWrapper scenarios combined with their FeatureWrapper feature.