org.testng.internal.ITestResultNotifier Maven / Gradle / Ivy
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();
}