Class TestNGParameterHelper


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

      • resolveParameter

        public static Object[] resolveParameter​(Object target,
                                                org.testng.ITestResult testResult,
                                                Method method,
                                                TestContext context,
                                                int invocationCount)
        Resolves method arguments supporting TestNG data provider parameters as well as CitrusResource annotated methods.
        Parameters:
        testResult -
        method -
        context -
        invocationCount -
        Returns:
      • injectTestParameters

        public static void injectTestParameters​(Method method,
                                                TestCase testCase,
                                                Object[] parameterValues)
        Methods adds optional TestNG parameters as variables to the test case.
        Parameters:
        method - the method currently executed
        testCase - the constructed Citrus test.