Interface IInvoker

  • All Known Implementing Classes:
    Invoker

    public interface IInvoker
    This class defines an invoker.
    • Method Detail

      • invokeConfigurations

        void invokeConfigurations​(IClass testClass,
                                  ITestNGMethod[] allMethods,
                                  XmlSuite suite,
                                  java.util.Map<java.lang.String,​java.lang.String> parameters,
                                  java.lang.Object[] parameterValues,
                                  java.lang.Object instance)
        Invoke configuration methods if they belong to the same TestClass passed in parameter.. TODO: Calculate ahead of time which methods should be invoked for each class. Might speed things up for users who invoke the same test class with different parameters in the same suite run.
        Parameters:
        testClass - the class whose configuration methods must be run
      • invokeTestMethods

        java.util.List<ITestResult> invokeTestMethods​(ITestNGMethod testMethod,
                                                      XmlSuite suite,
                                                      java.util.Map<java.lang.String,​java.lang.String> parameters,
                                                      ConfigurationGroupMethods groupMethods,
                                                      java.lang.Object instance,
                                                      ITestContext testContext)
        Invoke the given method
        Parameters:
        testMethod -
        suite -
        parameters -
        groupMethods -
        Returns:
        a list containing the results of the test methods invocations