Package org.testng.reporters
Class EmailableReporter2.TestResult
- java.lang.Object
-
- org.testng.reporters.EmailableReporter2.TestResult
-
- Enclosing class:
- EmailableReporter2
protected static class EmailableReporter2.TestResult extends java.lang.Object
GroupsEmailableReporter2.ClassResult
s by test, type (configuration or test), and status.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Comparator<ITestResult>
RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order).
-
Constructor Summary
Constructors Constructor Description TestResult(ITestContext context)
-
Method Summary
-
-
-
Field Detail
-
RESULT_COMPARATOR
protected static final java.util.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 java.util.List<EmailableReporter2.ClassResult> groupResults(java.util.Set<ITestResult> results)
Groups test results by method and then by class.
-
getTestName
public java.lang.String getTestName()
-
getFailedConfigurationResults
public java.util.List<EmailableReporter2.ClassResult> getFailedConfigurationResults()
- Returns:
- the results for failed configurations (possibly empty)
-
getFailedTestResults
public java.util.List<EmailableReporter2.ClassResult> getFailedTestResults()
- Returns:
- the results for failed tests (possibly empty)
-
getSkippedConfigurationResults
public java.util.List<EmailableReporter2.ClassResult> getSkippedConfigurationResults()
- Returns:
- the results for skipped configurations (possibly empty)
-
getSkippedTestResults
public java.util.List<EmailableReporter2.ClassResult> getSkippedTestResults()
- Returns:
- the results for skipped tests (possibly empty)
-
getRetriedTestResults
public java.util.List<EmailableReporter2.ClassResult> getRetriedTestResults()
-
getPassedTestResults
public java.util.List<EmailableReporter2.ClassResult> getPassedTestResults()
- Returns:
- the results for passed tests (possibly empty)
-
getFailedTestCount
public int getFailedTestCount()
-
getSkippedTestCount
public int getSkippedTestCount()
-
getRetriedTestCount
public int getRetriedTestCount()
-
getPassedTestCount
public int getPassedTestCount()
-
getDuration
public long getDuration()
-
getIncludedGroups
public java.lang.String getIncludedGroups()
-
getExcludedGroups
public java.lang.String getExcludedGroups()
-
formatGroups
protected java.lang.String formatGroups(java.lang.String[] groups)
Formats an array of groups for display.
-
-