blob: 30ebd35ac96e7bac866256c3e0f2096eef5dd7f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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 <a href="mailto:cedric@beust.com">Cedric Beust</a>
* @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a>
*/
public interface ITestResultNotifier {
Set<ITestResult> getPassedTests(ITestNGMethod tm);
Set<ITestResult> getFailedTests(ITestNGMethod tm);
Set<ITestResult> 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<ITestListener> getTestListeners();
List<IConfigurationListener> getConfigurationListeners();
}
|