org.testng.internal
Interface IInvoker

All Known Implementing Classes:
Invoker

public interface IInvoker

This class defines an invoker.

Author:
Cedric Beust

Method Summary
 void invokeConfigurations(IClass testClass, ITestNGMethod[] allMethods, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.Object instance)
          Invoke configuration methods if they belong to the same TestClass passed in parameter..
 java.util.List<ITestResult> invokeTestMethods(ITestNGMethod testMethod, ITestNGMethod[] allTestMethods, int methodIndex, XmlSuite suite, java.util.Map<java.lang.String,java.lang.String> parameters, ConfigurationGroupMethods groupMethods, java.lang.Object[] instances, ITestContext testContext)
          Invoke the given method
 

Method Detail

invokeConfigurations

void invokeConfigurations(IClass testClass,
                          ITestNGMethod[] allMethods,
                          XmlSuite suite,
                          java.util.Map<java.lang.String,java.lang.String> parameters,
                          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,
                                              ITestNGMethod[] allTestMethods,
                                              int methodIndex,
                                              XmlSuite suite,
                                              java.util.Map<java.lang.String,java.lang.String> parameters,
                                              ConfigurationGroupMethods groupMethods,
                                              java.lang.Object[] instances,
                                              ITestContext testContext)
Invoke the given method

Parameters:
testMethod -
allTestMethods - The list of all the test methods
methodIndex - The index of testMethod in the allTestMethods array
suite -
parameters -
groupMethods -
Returns:
a list containing the results of the test methods invocations


Copyright © 2010. All Rights Reserved.