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

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

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

import java.util.List;
import java.util.Set;

import org.testng.IConfigurationListener;
import org.testng.ITestListener;
import org.testng.ITestNGMethod;
import org.testng.ITestResult;
import org.testng.xml.XmlTest;

/**
 * An interface defining the notification for @Test results and also
 * \@Configuration results.
 *
 * @author Cedric Beust
 * @author Alexandru Popescu
 */
public interface ITestResultNotifier {

  Set getPassedTests(ITestNGMethod tm);

  Set getFailedTests(ITestNGMethod tm);

  Set getSkippedTests(ITestNGMethod tm);

  void addPassedTest(ITestNGMethod tm, ITestResult tr);

  void addSkippedTest(ITestNGMethod tm, ITestResult tr);

  void addFailedTest(ITestNGMethod tm, ITestResult tr);

  void addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr);

  void addInvokedMethod(InvokedMethod im);

  XmlTest getTest();

  List getTestListeners();

  List getConfigurationListeners();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy