Interface ReportEntry
- All Known Subinterfaces:
TestSetReportEntry
- All Known Implementing Classes:
CategorizedReportEntry, SimpleReportEntry
public interface ReportEntry
Describes a single entry for a test report
-
Method Summary
Modifier and TypeMethodDescriptionGets the runtime for the item.intgetElapsed(int fallback) getGroup()The group/category of the testcaseA message relating to a non-successful termination.getName()The name of the test caseHuman readabletest case.A source name of the test case together with the group or category (if any exists).A source text of the test case together with the group or category (if any exists).Run mode.The class name of the testHuman readabletest class.The group/category of the testcaseThis represents a reference pointing to a literal representation of test description or literal unique id.
-
Method Details
-
getSourceName
-
getSourceText
-
getName
-
getNameText
-
getGroup
-
getStackTraceWriter
StackTraceWriter getStackTraceWriter()The group/category of the testcase- Returns:
- stack trace object
-
getElapsed
Integer getElapsed()Gets the runtime for the item. Optional parameter. If the value is not set, it will be determined within the reporting subsystem. Some providers like to calculate this value themselves, and it gets the most accurate value.- Returns:
- duration of a test in milliseconds
-
getElapsed
int getElapsed(int fallback) - Parameters:
fallback- usually 0- Returns:
- elapsed time if
getElapsed()is not null; otherwise returnsfallback
-
getMessage
String getMessage()A message relating to a non-successful termination. May be the "message" from an exception or the reason for a test being ignored- Returns:
- A string that explains an anomaly
-
getNameWithGroup
String getNameWithGroup()A source name of the test case together with the group or category (if any exists).- Returns:
- A string with the test case name and group/category, or just the name.
-
getReportNameWithGroup
String getReportNameWithGroup()A source text of the test case together with the group or category (if any exists).- Returns:
- A string with the test case text and group/category, or just the source text. If no source text is provided, then this will return null.
-
getRunMode
-
getTestRunId
Long getTestRunId()This represents a reference pointing to a literal representation of test description or literal unique id.- Returns:
- id
-