Package org.testng.reporters
Class EmailableReporter2.TestResult
- java.lang.Object
-
- org.testng.reporters.EmailableReporter2.TestResult
-
- Enclosing class:
- EmailableReporter2
protected static class EmailableReporter2.TestResult extends Object
GroupsEmailableReporter2.ClassResults by test, type (configuration or test), and status.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Comparator<ITestResult>RESULT_COMPARATOROrders test results by class name and then by method name (in lexicographic order).
-
Constructor Summary
Constructors Constructor Description TestResult(ITestContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringformatGroups(String[] groups)Formats an array of groups for display.longgetDuration()StringgetExcludedGroups()List<EmailableReporter2.ClassResult>getFailedConfigurationResults()intgetFailedTestCount()List<EmailableReporter2.ClassResult>getFailedTestResults()StringgetIncludedGroups()intgetPassedTestCount()List<EmailableReporter2.ClassResult>getPassedTestResults()List<EmailableReporter2.ClassResult>getSkippedConfigurationResults()intgetSkippedTestCount()List<EmailableReporter2.ClassResult>getSkippedTestResults()StringgetTestName()protected List<EmailableReporter2.ClassResult>groupResults(Set<ITestResult> results)Groups test results by method and then by class.
-
-
-
Field Detail
-
RESULT_COMPARATOR
protected static final Comparator<ITestResult> RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order).
-
-
Constructor Detail
-
TestResult
public TestResult(ITestContext context)
-
-
Method Detail
-
groupResults
protected List<EmailableReporter2.ClassResult> groupResults(Set<ITestResult> results)
Groups test results by method and then by class.
-
getTestName
public String getTestName()
-
getFailedConfigurationResults
public List<EmailableReporter2.ClassResult> getFailedConfigurationResults()
- Returns:
- the results for failed configurations (possibly empty)
-
getFailedTestResults
public List<EmailableReporter2.ClassResult> getFailedTestResults()
- Returns:
- the results for failed tests (possibly empty)
-
getSkippedConfigurationResults
public List<EmailableReporter2.ClassResult> getSkippedConfigurationResults()
- Returns:
- the results for skipped configurations (possibly empty)
-
getSkippedTestResults
public List<EmailableReporter2.ClassResult> getSkippedTestResults()
- Returns:
- the results for skipped tests (possibly empty)
-
getPassedTestResults
public List<EmailableReporter2.ClassResult> getPassedTestResults()
- Returns:
- the results for passed tests (possibly empty)
-
getFailedTestCount
public int getFailedTestCount()
-
getSkippedTestCount
public int getSkippedTestCount()
-
getPassedTestCount
public int getPassedTestCount()
-
getDuration
public long getDuration()
-
getIncludedGroups
public String getIncludedGroups()
-
getExcludedGroups
public String getExcludedGroups()
-
-