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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Integer
getElapsed()
Gets the runtime for the item.int
getElapsed(int fallback)
String
getGroup()
The group/category of the testcaseString
getMessage()
A message relating to a non-successful termination.String
getName()
The name of the test caseString
getNameText()
Human readabletest case
.String
getNameWithGroup()
A source name of the test case together with the group or category (if any exists).String
getReportNameWithGroup()
A source text of the test case together with the group or category (if any exists).RunMode
getRunMode()
Run mode.String
getSourceName()
The class name of the testString
getSourceText()
Human readabletest class
.StackTraceWriter
getStackTraceWriter()
The group/category of the testcaseLong
getTestRunId()
This represents a reference pointing to a literal representation of test description or literal unique id.
-
-
-
Method Detail
-
getSourceName
String getSourceName()
The class name of the test- Returns:
- A string with the class name
-
getSourceText
String getSourceText()
Human readabletest class
.- Returns:
- source text
-
getName
String getName()
The name of the test case- Returns:
- A string describing the test case
-
getGroup
String getGroup()
The group/category of the testcase- Returns:
- A string
-
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 milli seconds
-
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.
-
getTestRunId
Long getTestRunId()
This represents a reference pointing to a literal representation of test description or literal unique id.- Returns:
- id
-
-