Package org.testng.reporters
Class EmailableReporter2.TestResult
java.lang.Object
org.testng.reporters.EmailableReporter2.TestResult
- Enclosing class:
EmailableReporter2
Groups
EmailableReporter2.ClassResult
s by test, type (configuration or test), and status.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Comparator
<ITestResult> Orders test results by class name and then by method name (in lexicographic order). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
formatGroups
(String[] groups) Formats an array of groups for display.long
int
int
int
int
protected List
<EmailableReporter2.ClassResult> groupResults
(Set<ITestResult> results) Groups test results by method and then by class.
-
Field Details
-
RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order).
-
-
Constructor Details
-
TestResult
-
-
Method Details
-
groupResults
Groups test results by method and then by class.- Parameters:
results
- All test results- Returns:
- Test result grouped by method and class
-
getTestName
-
getFailedConfigurationResults
- Returns:
- the results for failed configurations (possibly empty)
-
getFailedTestResults
- Returns:
- the results for failed tests (possibly empty)
-
getSkippedConfigurationResults
- Returns:
- the results for skipped configurations (possibly empty)
-
getSkippedTestResults
- Returns:
- the results for skipped tests (possibly empty)
-
getRetriedTestResults
-
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
-
getExcludedGroups
-
formatGroups
Formats an array of groups for display.- Parameters:
groups
- The groups- Returns:
- The String value of the groups
-