Class TestNGCitrusSupport

    • Field Detail

      • log

        protected final org.slf4j.Logger log
        Logger
      • citrus

        protected Citrus citrus
        Citrus instance
    • Constructor Detail

      • TestNGCitrusSupport

        public TestNGCitrusSupport()
    • Method Detail

      • run

        public void run​(org.testng.IHookCallBack callBack,
                        org.testng.ITestResult testResult)
        Specified by:
        run in interface org.testng.IHookable
      • run

        protected void run​(org.testng.ITestResult testResult,
                           Method method,
                           int invocationCount)
        Run method prepares and executes test case.
        Parameters:
        testResult -
        method -
        invocationCount -
      • before

        protected void before​(CitrusContext context)
        Subclasses may add before test actions on the provided context.
        Parameters:
        context - the Citrus context.
      • after

        protected void after​(CitrusContext context)
        Subclasses may add after test actions on the provided context.
        Parameters:
        context - the Citrus context.
      • beforeSuite

        public final void beforeSuite​(org.testng.ITestContext testContext)
        Description copied from interface: TestNGSuiteListener
        Runs tasks before test suite.
        Specified by:
        beforeSuite in interface TestNGSuiteListener
        Parameters:
        testContext - the test context.
      • beforeSuite

        protected void beforeSuite​(CitrusContext context)
        Subclasses may add before suite actions on the provided context.
        Parameters:
        context - the Citrus context.
      • afterSuite

        public final void afterSuite​(org.testng.ITestContext testContext)
        Description copied from interface: TestNGSuiteListener
        Runs tasks after test suite.
        Specified by:
        afterSuite in interface TestNGSuiteListener
        Parameters:
        testContext - the test context.
      • afterSuite

        protected void afterSuite​(CitrusContext context)
        Subclasses may add after suite actions on the provided context.
        Parameters:
        context - the Citrus context.
      • prepareTestContext

        protected TestContext prepareTestContext​(TestContext testContext)
        Prepares the test context. Provides a hook for test context modifications before the test gets executed.
        Parameters:
        testContext - the test context.
        Returns:
        the (prepared) test context.
      • variable

        public <T> T variable​(String name,
                              T value)
      • name

        public void name​(String name)
      • description

        public void description​(String description)
      • author

        public void author​(String author)
      • creationDate

        public void creationDate​(Date date)