hudson.plugins.testng.results
Class PackageResult
java.lang.Object
hudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
hudson.plugins.testng.results.BaseResult
hudson.plugins.testng.results.PackageResult
- All Implemented Interfaces:
- hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, Serializable
public class PackageResult
- extends BaseResult
Handles package level results
- See Also:
- Serialized Form
Methods inherited from class hudson.plugins.testng.results.BaseResult |
findCorrespondingResult, getAge, getDisplayName, getDynamic, getName, getOwner, getParent, getParentAction, getTestResultAction, getTitle, getUpUrl, setParent |
Methods inherited from class hudson.tasks.test.TabulatedResult |
getChildTitle |
Methods inherited from class hudson.tasks.test.TestResult |
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getPassedTests, getPreviousResult, getResultInBuild, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyString |
Methods inherited from class hudson.tasks.test.TestObject |
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTopLevelTestResult, 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 |
MAX_EXEC_MTHD_LIST_SIZE
public final int MAX_EXEC_MTHD_LIST_SIZE
- See Also:
- Constant Field Values
PackageResult
public PackageResult(String name)
setOwner
public void setOwner(hudson.model.AbstractBuild<?,?> owner)
- Overrides:
setOwner
in class BaseResult
getDuration
@Exported
public float getDuration()
- Can't change this to return seconds as expected by
TestObject
because
it has already been exported
- Overrides:
getDuration
in class hudson.tasks.test.TestResult
- Returns:
- duration in milliseconds
getFailCount
@Exported(visibility=9,
name="fail")
public int getFailCount()
- Overrides:
getFailCount
in class hudson.tasks.test.TestResult
getSkipCount
@Exported(visibility=9,
name="skip")
public int getSkipCount()
- Overrides:
getSkipCount
in class hudson.tasks.test.TestResult
getTotalCount
@Exported(visibility=9)
public int getTotalCount()
- Overrides:
getTotalCount
in class hudson.tasks.test.TestObject
getPassCount
public int getPassCount()
- Overrides:
getPassCount
in class hudson.tasks.test.TestResult
getSortedTestMethodsByStartTime
public List<MethodResult> getSortedTestMethodsByStartTime()
- Gets all the method results related to this package sorted by the time
the methods were executed
- Returns:
getAllSortedTestMethodsByStartTime
@JavaScriptMethod
public String getAllSortedTestMethodsByStartTime()
- Gets table row representation for all the method results associated with
this package (sorted based on start time)
- Returns:
getFirstXSortedTestMethodsByStartTime
@JavaScriptMethod
public String getFirstXSortedTestMethodsByStartTime()
- Gets table row representation for the first
MAX_EXEC_MTHD_LIST_SIZE
method results associated with this package (sorted based on start time)
- Returns:
tally
public void tally()
- Overrides:
tally
in class hudson.tasks.test.TestResult
sortTestMethods
public void sortTestMethods()
- Sorts the test method results associated with this package based on the
start time for method execution
getChildren
@Exported(name="classs")
public List<ClassResult> getChildren()
- Specified by:
getChildren
in class hudson.tasks.test.TabulatedResult
hasChildren
public boolean hasChildren()
- Specified by:
hasChildren
in class hudson.tasks.test.TabulatedResult
Copyright © 2004-2013. All Rights Reserved.