All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.internal.IInvoker Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
package org.testng.internal;

import org.testng.IClass;
import org.testng.ITestContext;
import org.testng.ITestNGMethod;
import org.testng.ITestResult;
import org.testng.xml.XmlSuite;

import java.util.List;
import java.util.Map;

/**
 * This class defines an invoker.
 *
 * @author Cedric Beust
 */
public interface IInvoker {

  /**
   * 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.
   *
   * @param testClass the class whose configuration methods must be run
   */
  public  void invokeConfigurations(IClass testClass,
                                    ITestNGMethod[] allMethods,
                                    XmlSuite suite,
                                    Map parameters,
                                    Object[] parameterValues,
                                    Object instance);

  /**
   * Invoke the given method
   *
   * @param testMethod
   * @param suite
   * @param parameters
   * @param groupMethods
   *
   * @return a list containing the results of the test methods invocations
   */
  public List invokeTestMethods(ITestNGMethod testMethod,
                                             XmlSuite suite,
                                             Map parameters,
                                             ConfigurationGroupMethods groupMethods,
                                             Object instance,
                                             ITestContext testContext);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy