Class TestNGHelper


  • public final class TestNGHelper
    extends Object
    Author:
    Christoph Deppisch
    • Method Detail

      • invokeTestMethod

        public static void invokeTestMethod​(Object target,
                                            org.testng.ITestResult testResult,
                                            Method method,
                                            TestLoader testLoader,
                                            TestContext context,
                                            int invocationCount)
        Invokes test method.
        Parameters:
        target -
        testResult -
        method -
        testLoader -
        context -
        invocationCount -
      • createTestCaseRunner

        public static TestCaseRunner createTestCaseRunner​(Object target,
                                                          Method method,
                                                          TestContext context)
        Creates new test runner instance for this test method.
        Parameters:
        method -
        context -
        Returns:
      • createMethodTestLoaders

        public static List<TestLoader> createMethodTestLoaders​(Method method,
                                                               TestNGHelper.TestLoaderProvider provider)
        Creates test loader from @CitrusXmlTest annotated test method and saves those to local member. Test loaders get executed later when actual method is called by TestNG. This way user can annotate multiple methods in one single class each executing several Citrus XML tests.
        Parameters:
        method -
        provider -
        Returns: