Class TestNGCitrusSpringSupport

    • Field Detail

      • log

        protected final org.slf4j.Logger log
        Logger
      • citrus

        protected Citrus citrus
        Citrus instance
    • Constructor Detail

      • TestNGCitrusSpringSupport

        public TestNGCitrusSpringSupport()
    • Method Detail

      • run

        public void run​(org.testng.IHookCallBack callBack,
                        org.testng.ITestResult testResult)
        Specified by:
        run in interface org.testng.IHookable
        Overrides:
        run in class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
      • run

        protected void run​(org.testng.ITestResult testResult,
                           Method method,
                           TestLoader testLoader,
                           int invocationCount)
        Run method prepares and executes test case.
        Parameters:
        testResult -
        method -
        testLoader -
        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.
      • createTestLoader

        protected TestLoader createTestLoader​(String testName,
                                              String packageName)
        Creates new test loader which has TestNG test annotations set for test execution. Only suitable for tests that get created at runtime through factory method. Subclasses may overwrite this in order to provide custom test loader with custom test annotations set.
        Parameters:
        testName -
        packageName -
        Returns:
      • getTestCase

        protected TestCase getTestCase()
        Constructs the test case to execute.
        Returns:
      • 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)