@ExportedBean public final class SuiteResult extends Object implements Serializable
The notion of "test suite" is rather arbitrary in JUnit ant task. It's basically one invocation of junit.
This object is really only used as a part of the persisted object tree.
Modifier and Type | Class and Description |
---|---|
static class |
SuiteResult.SuiteResultParserConfigurationContext
Deprecated.
with no replacement.
|
Constructor and Description |
---|
SuiteResult(String name,
String stdout,
String stderr,
PipelineTestDetails pipelineTestDetails) |
Modifier and Type | Method and Description |
---|---|
void |
addCase(CaseResult cr) |
CaseResult |
getCase(String caseResultFullDisplayName)
Returns the
CaseResult whose CaseResult.getFullDisplayName()
is the same as the given string. |
List<CaseResult> |
getCases() |
Set<String> |
getClassNames() |
float |
getDuration() |
List<String> |
getEnclosingBlockNames()
The possibly-empty list of display names of enclosing blocks within which this suite was generated.
|
List<String> |
getEnclosingBlocks()
The possibly-empty list of
FlowNode.id s for enclosing blocks within which this suite was generated. |
String |
getFile()
The absolute path to the original test report.
|
String |
getId() |
String |
getName() |
String |
getNodeId()
The possibly-null
FlowNode.id this suite was generated in. |
TestResult |
getParent() |
SuiteResult |
getPreviousResult() |
String |
getStderr()
The stderr of this test.
|
String |
getStdout()
The stdout of this test.
|
String |
getTimestamp() |
void |
merge(SuiteResult sr)
Merges another SuiteResult into this one.
|
void |
setParent(TestResult parent)
KLUGE.
|
public SuiteResult(String name, String stdout, String stderr, @CheckForNull PipelineTestDetails pipelineTestDetails)
public void addCase(CaseResult cr)
@Exported(visibility=9) public String getName()
@Exported(visibility=9) public float getDuration()
@Exported(visibility=9) @CheckForNull public String getNodeId()
FlowNode.id
this suite was generated in.@Exported(visibility=9) @NonNull public List<String> getEnclosingBlocks()
FlowNode.id
s for enclosing blocks within which this suite was generated.@Exported(visibility=9) @NonNull public List<String> getEnclosingBlockNames()
@Exported public String getStdout()
CaseResult.getStdout()
@Exported public String getStderr()
CaseResult.getStderr()
public String getFile()
public TestResult getParent()
@Exported(visibility=9) public String getTimestamp()
@Exported(visibility=9) public String getId()
@Exported(inline=true, visibility=9) public List<CaseResult> getCases()
public SuiteResult getPreviousResult()
public CaseResult getCase(String caseResultFullDisplayName)
CaseResult
whose CaseResult.getFullDisplayName()
is the same as the given string.caseResultFullDisplayName
- The case FullDisplayName.CaseResult
with the provided name.public void setParent(TestResult parent)
parent
- public void merge(SuiteResult sr)
sr
- the SuiteResult to merge into this oneCopyright © 2016–2022. All rights reserved.