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 TypeFieldDescriptionprivate final long
private final String
private final List<EmailableReporter2.ClassResult>
private final int
private final List<EmailableReporter2.ClassResult>
private final String
private final int
private final List<EmailableReporter2.ClassResult>
protected static final Comparator<ITestResult>
Orders test results by class name and then by method name (in lexicographic order).private final int
private final List<EmailableReporter2.ClassResult>
private final List<EmailableReporter2.ClassResult>
private final int
private final List<EmailableReporter2.ClassResult>
private final String
-
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.private static Set<ITestResult>
pruneRetried
(Set<ITestResult> results) private static Set<ITestResult>
pruneSkipped
(Set<ITestResult> results)
-
Field Details
-
RESULT_COMPARATOR
Orders test results by class name and then by method name (in lexicographic order). -
testName
-
failedConfigurationResults
-
failedTestResults
-
skippedConfigurationResults
-
skippedTestResults
-
retriedTestResults
-
passedTestResults
-
failedTestCount
private final int failedTestCount -
retriedTestCount
private final int retriedTestCount -
skippedTestCount
private final int skippedTestCount -
passedTestCount
private final int passedTestCount -
duration
private final long duration -
includedGroups
-
excludedGroups
-
-
Constructor Details
-
TestResult
-
-
Method Details
-
pruneSkipped
-
pruneRetried
-
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
-