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

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

The 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.
 */
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);

  XmlTest getTest();

  List getTestListeners();

  List getConfigurationListeners();

  ITestListener getExitCodeListener();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy