|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
hudson.tasks.test.MetaTabulatedResult
hudson.plugins.labeledgroupedtests.LabeledTestResultGroup
@ExportedBean public class LabeledTestResultGroup
Represents a list of several test results that share a common label. It is designed to be used for children of MetaLabeledTestResultGroup.
| Field Summary | |
|---|---|
protected boolean |
cacheDirty
|
protected java.util.List<hudson.tasks.test.TestResult> |
children
We expect a maximum of one AbstractTestResult per parser class. |
protected java.util.Map<java.lang.String,hudson.tasks.test.TestResult> |
childrenByName
|
protected java.util.List<hudson.tasks.test.TestResult> |
childrenWithFailures
|
protected java.lang.String |
description
|
protected float |
duration
|
protected int |
failCount
|
protected java.lang.String |
label
|
protected boolean |
namesHaveBeenSet
|
protected java.util.Map<hudson.tasks.test.TestResult,java.lang.String> |
nameToChildMap
|
protected hudson.tasks.test.TestResult |
parent
|
protected int |
passCount
|
protected java.util.List<hudson.tasks.test.TestResult> |
passedChildren
|
protected int |
skipCount
|
protected int |
totalCount
|
| Constructor Summary | |
|---|---|
LabeledTestResultGroup()
|
|
LabeledTestResultGroup(hudson.tasks.test.TestResult parent,
java.lang.String label,
java.util.List<hudson.tasks.test.TestResult> children)
|
|
| Method Summary | |
|---|---|
void |
addAll(LabeledTestResultGroup group)
Add the children from this group, unless we've already got them |
void |
addResult(hudson.tasks.test.TestResult result)
Add the result, unless we've already got it |
hudson.tasks.test.TestResult |
findCorrespondingResult(java.lang.String id)
|
hudson.tasks.test.TestResult |
getChildByIndex(int i)
|
java.util.Collection<? extends hudson.tasks.test.TestResult> |
getChildren()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getDisplayNameForChild(hudson.tasks.test.TestResult c)
|
float |
getDuration()
|
java.lang.Object |
getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
int |
getFailCount()
|
int |
getFailDiff()
|
java.util.Collection<? extends hudson.tasks.test.TestResult> |
getFailedTests()
|
java.lang.String |
getLabel()
|
java.lang.String |
getName()
|
hudson.model.AbstractBuild<?,?> |
getOwner()
|
hudson.tasks.test.TestObject |
getParent()
|
int |
getPassCount()
|
int |
getPassDiff()
|
hudson.tasks.test.TestResult |
getPreviousResult()
|
hudson.tasks.test.TestResult |
getResultInBuild(hudson.model.AbstractBuild<?,?> build)
|
int |
getSkipCount()
|
int |
getSkipDiff()
|
int |
getTotalDiff()
|
boolean |
hasChildren()
|
protected void |
lockInNames()
Either this *or* setNameMap should be called. |
java.lang.Object |
readResolve()
Allow the object to rebuild its internal data structures when it is deserialized. |
void |
setNameMap(java.util.HashMap<hudson.tasks.test.TestResult,java.lang.String> resultToNameMap)
This method records a unique name for each child result. |
void |
setParentAction(hudson.tasks.test.AbstractTestResultAction action)
|
void |
tally()
|
java.lang.String |
toPrettyString()
|
protected void |
updateCache()
|
| Methods inherited from class hudson.tasks.test.TabulatedResult |
|---|
getChildTitle |
| Methods inherited from class hudson.tasks.test.TestResult |
|---|
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPassedTests, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent |
| Methods inherited from class hudson.tasks.test.TestObject |
|---|
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<hudson.tasks.test.TestResult> children
protected transient java.util.List<hudson.tasks.test.TestResult> childrenWithFailures
protected transient java.util.List<hudson.tasks.test.TestResult> passedChildren
protected java.lang.String label
protected int failCount
protected int skipCount
protected int passCount
protected int totalCount
protected float duration
protected hudson.tasks.test.TestResult parent
protected java.lang.String description
protected transient boolean cacheDirty
protected java.util.Map<java.lang.String,hudson.tasks.test.TestResult> childrenByName
protected java.util.Map<hudson.tasks.test.TestResult,java.lang.String> nameToChildMap
protected boolean namesHaveBeenSet
| Constructor Detail |
|---|
public LabeledTestResultGroup()
public LabeledTestResultGroup(hudson.tasks.test.TestResult parent,
java.lang.String label,
java.util.List<hudson.tasks.test.TestResult> children)
| Method Detail |
|---|
public void setParentAction(hudson.tasks.test.AbstractTestResultAction action)
setParentAction in class hudson.tasks.test.TestResult@Exported(visibility=99) public int getPassCount()
getPassCount in class hudson.tasks.test.TestResult@Exported(visibility=99) public int getSkipCount()
getSkipCount in class hudson.tasks.test.TestResult@Exported(visibility=99) public int getFailCount()
getFailCount in class hudson.tasks.test.TestResult@Exported(visibility=99) public java.lang.String getLabel()
public java.lang.String getName()
getName in class hudson.tasks.test.TestObjectpublic java.lang.String getDisplayNameForChild(hudson.tasks.test.TestResult c)
public hudson.tasks.test.TestResult getChildByIndex(int i)
public java.lang.Object getDynamic(java.lang.String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
getDynamic in class hudson.tasks.test.TestObjectpublic java.lang.Object readResolve()
public void tally()
tally in class hudson.tasks.test.TestResultprotected void updateCache()
public java.util.Collection<? extends hudson.tasks.test.TestResult> getFailedTests()
getFailedTests in class hudson.tasks.test.MetaTabulatedResult@Exported(visibility=99) public java.util.Collection<? extends hudson.tasks.test.TestResult> getChildren()
getChildren in class hudson.tasks.test.TabulatedResultpublic boolean hasChildren()
hasChildren in class hudson.tasks.test.TabulatedResultpublic hudson.model.AbstractBuild<?,?> getOwner()
getOwner in class hudson.tasks.test.TestObjectpublic hudson.tasks.test.TestObject getParent()
getParent in class hudson.tasks.test.TestObjectpublic float getDuration()
getDuration in class hudson.tasks.test.TestResult@Exported(visibility=99) public java.lang.String getDisplayName()
public void addResult(hudson.tasks.test.TestResult result)
result - public void addAll(LabeledTestResultGroup group)
group - public hudson.tasks.test.TestResult getPreviousResult()
getPreviousResult in class hudson.tasks.test.TestResultpublic hudson.tasks.test.TestResult getResultInBuild(hudson.model.AbstractBuild<?,?> build)
getResultInBuild in class hudson.tasks.test.TestResultpublic hudson.tasks.test.TestResult findCorrespondingResult(java.lang.String id)
findCorrespondingResult in class hudson.tasks.test.TestObjectpublic java.lang.String toPrettyString()
toPrettyString in class hudson.tasks.test.TestResultpublic int getPassDiff()
public int getSkipDiff()
public int getFailDiff()
public int getTotalDiff()
public void setNameMap(java.util.HashMap<hudson.tasks.test.TestResult,java.lang.String> resultToNameMap)
:peform
protected void lockInNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||