• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.testng.internal;
2 
3 import java.util.List;
4 import java.util.Set;
5 
6 import org.testng.IConfigurationListener;
7 import org.testng.ITestListener;
8 import org.testng.ITestNGMethod;
9 import org.testng.ITestResult;
10 import org.testng.xml.XmlTest;
11 
12 /**
13  * An interface defining the notification for @Test results and also
14  * \@Configuration results.
15  *
16  * @author <a href="mailto:cedric@beust.com">Cedric Beust</a>
17  * @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a>
18  */
19 public interface ITestResultNotifier {
20 
getPassedTests(ITestNGMethod tm)21   Set<ITestResult> getPassedTests(ITestNGMethod tm);
22 
getFailedTests(ITestNGMethod tm)23   Set<ITestResult> getFailedTests(ITestNGMethod tm);
24 
getSkippedTests(ITestNGMethod tm)25   Set<ITestResult> getSkippedTests(ITestNGMethod tm);
26 
addPassedTest(ITestNGMethod tm, ITestResult tr)27   void addPassedTest(ITestNGMethod tm, ITestResult tr);
28 
addSkippedTest(ITestNGMethod tm, ITestResult tr)29   void addSkippedTest(ITestNGMethod tm, ITestResult tr);
30 
addFailedTest(ITestNGMethod tm, ITestResult tr)31   void addFailedTest(ITestNGMethod tm, ITestResult tr);
32 
addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr)33   void addFailedButWithinSuccessPercentageTest(ITestNGMethod tm, ITestResult tr);
34 
addInvokedMethod(InvokedMethod im)35   void addInvokedMethod(InvokedMethod im);
36 
getTest()37   XmlTest getTest();
38 
getTestListeners()39   List<ITestListener> getTestListeners();
40 
getConfigurationListeners()41   List<IConfigurationListener> getConfigurationListeners();
42 }
43