Class AbstractTestNGCucumberTests

java.lang.Object
io.cucumber.testng.AbstractTestNGCucumberTests

@Deprecated(forRemoval=true) @API(status=DEPRECATED) public abstract class AbstractTestNGCucumberTests extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.

Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.

Abstract TestNG Cucumber Test

Runs each cucumber scenario found in the features as separated test.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private @Nullable TestNGCucumberRunner
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    runScenario(PickleWrapper pickleWrapper, FeatureWrapper featureWrapper)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Runs a given pickle from given feature.
    Object[][]
    scenarios(org.testng.ITestContext context)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns two-dimensional array of PickleWrappers with their associated FeatureWrappers.
    void
    setUpClass(org.testng.ITestContext context)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Starts the test run.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Finishes the test run.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • testNGCucumberRunner

      private @Nullable TestNGCucumberRunner testNGCucumberRunner
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • AbstractTestNGCucumberTests

      public AbstractTestNGCucumberTests()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setUpClass

      @BeforeClass(alwaysRun=true) public void setUpClass(org.testng.ITestContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Starts the test run.

      Sublcasses may override this method, but must invoke it.

    • runScenario

      public void runScenario(PickleWrapper pickleWrapper, FeatureWrapper featureWrapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Runs a given pickle from given feature.

      Sublcasses may override this method, but must invoke it.

    • scenarios

      @DataProvider public Object[][] scenarios(org.testng.ITestContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns two-dimensional array of PickleWrappers with their associated FeatureWrappers.

      Sublcasses may override this method, but must invoke it.

      Returns:
      a two-dimensional array of scenarios features.
    • tearDownClass

      @AfterClass(alwaysRun=true) public void tearDownClass()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Finishes the test run.

      Sublcasses may override this method, but must invoke it.