@ExportedBean
public class LabeledTestResultGroup
extends hudson.tasks.test.MetaTabulatedResult
Modifier and Type | Field and Description |
---|---|
protected boolean |
cacheDirty |
protected List<hudson.tasks.test.TestResult> |
children
We expect a maximum of one AbstractTestResult per parser class.
|
protected Map<String,hudson.tasks.test.TestResult> |
childrenByName |
protected List<hudson.tasks.test.TestResult> |
childrenWithFailures |
protected String |
description |
protected float |
duration |
protected int |
failCount |
protected String |
label |
protected boolean |
namesHaveBeenSet |
protected Map<hudson.tasks.test.TestResult,String> |
nameToChildMap |
protected hudson.tasks.test.TestResult |
parent |
protected int |
passCount |
protected List<hudson.tasks.test.TestResult> |
passedChildren |
protected int |
skipCount |
protected int |
totalCount |
Constructor and Description |
---|
LabeledTestResultGroup() |
LabeledTestResultGroup(hudson.tasks.test.TestResult parent,
String label,
List<hudson.tasks.test.TestResult> children) |
Modifier and Type | Method and Description |
---|---|
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(String id) |
hudson.tasks.test.TestResult |
getChildByIndex(int i) |
Collection<? extends hudson.tasks.test.TestResult> |
getChildren() |
String |
getDisplayName() |
String |
getDisplayNameForChild(hudson.tasks.test.TestResult c) |
float |
getDuration() |
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
int |
getFailCount() |
int |
getFailDiff() |
Collection<? extends hudson.tasks.test.TestResult> |
getFailedTests() |
String |
getLabel() |
String |
getName() |
hudson.tasks.test.TestObject |
getParent() |
int |
getPassCount() |
int |
getPassDiff() |
hudson.tasks.test.TestResult |
getPreviousResult() |
hudson.tasks.test.TestResult |
getResultInBuild(hudson.model.AbstractBuild<?,?> build) |
hudson.model.Run<?,?> |
getRun() |
int |
getSkipCount() |
int |
getSkipDiff() |
int |
getTotalDiff() |
boolean |
hasChildren() |
protected void |
lockInNames()
Either this *or* setNameMap should be called.
|
Object |
readResolve()
Allow the object to rebuild its internal data structures when it is deserialized.
|
void |
setNameMap(HashMap<hudson.tasks.test.TestResult,String> resultToNameMap)
This method records a unique name for each child result.
|
void |
setParentAction(hudson.tasks.test.AbstractTestResultAction action) |
void |
tally() |
String |
toPrettyString() |
protected void |
updateCache() |
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPassedTests, getResultInRun, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent
doSubmitDescription, getApi, getDescription, getDurationString, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
protected List<hudson.tasks.test.TestResult> children
protected transient List<hudson.tasks.test.TestResult> childrenWithFailures
protected transient List<hudson.tasks.test.TestResult> passedChildren
protected String label
protected int failCount
protected int skipCount
protected int passCount
protected int totalCount
protected float duration
protected hudson.tasks.test.TestResult parent
protected String description
protected transient boolean cacheDirty
protected boolean namesHaveBeenSet
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 String getLabel()
public String getName()
getName
in class hudson.tasks.test.TestObject
public String getDisplayNameForChild(hudson.tasks.test.TestResult c)
public hudson.tasks.test.TestResult getChildByIndex(int i)
public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic
in class hudson.tasks.test.TestObject
public Object readResolve()
public void tally()
tally
in class hudson.tasks.test.TestResult
protected void updateCache()
public Collection<? extends hudson.tasks.test.TestResult> getFailedTests()
getFailedTests
in class hudson.tasks.test.MetaTabulatedResult
@Exported(visibility=99) public Collection<? extends hudson.tasks.test.TestResult> getChildren()
getChildren
in class hudson.tasks.test.TabulatedResult
public boolean hasChildren()
hasChildren
in class hudson.tasks.test.TabulatedResult
public hudson.model.Run<?,?> getRun()
getRun
in class hudson.tasks.junit.TestObject
public hudson.tasks.test.TestObject getParent()
getParent
in class hudson.tasks.test.TestObject
public float getDuration()
getDuration
in class hudson.tasks.test.TestResult
@Exported(visibility=99) public 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.TestResult
public hudson.tasks.test.TestResult getResultInBuild(hudson.model.AbstractBuild<?,?> build)
getResultInBuild
in class hudson.tasks.test.TestObject
public hudson.tasks.test.TestResult findCorrespondingResult(String id)
findCorrespondingResult
in class hudson.tasks.test.TestObject
public String toPrettyString()
toPrettyString
in class hudson.tasks.test.TestResult
public int getPassDiff()
public int getSkipDiff()
public int getFailDiff()
public int getTotalDiff()
public void setNameMap(HashMap<hudson.tasks.test.TestResult,String> resultToNameMap)
:peform
protected void lockInNames()
Copyright © 2004-2017 Yahoo!, Inc.. All Rights Reserved.