Package hudson.plugins.testng.results
Class TestNGResult
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.TestNGResult
- All Implemented Interfaces:
ModelObject,SearchableModelObject,SearchItem,Serializable
Represents all the results gathered for a single build (or a single suite, while parsing the test
results)
- Author:
- nullin, farshidce
- See Also:
-
Field Summary
Fields inherited from class hudson.plugins.testng.results.BaseResult
name, parent, runFields inherited from class hudson.tasks.test.TabulatedResult
testsByBlock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUniqueTests(List<TestNGTestResult> testList) Adds only the<test>s that already aren't part of the list.booleanfloatintGets the total number of failed tests.intgetName()intGets the total number of passed tests.intGets the total number of skipped tests.intgetTitle()intbooleaninthashCode()voidvoidtally()Updates the calculated fieldstoString()Methods inherited from class hudson.plugins.testng.results.BaseResult
findCorrespondingResult, getAge, getDynamic, getParentAction, getRun, getTestResultAction, getUpUrl, setParentMethods inherited from class hudson.tasks.test.TabulatedResult
blockToTestResult, getChildTitle, getChildType, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocksMethods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getPreviousResult, getProperties, getResultInRun, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyStringMethods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTopLevelTestResult, getUrl, safe, setDescription, uniquifyNameMethods inherited from class hudson.tasks.junit.TestObject
getOwnerMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
TestNGResult
Deprecated.don't use this constructor- Parameters:
name- input name is ignored
-
TestNGResult
public TestNGResult()
-
-
Method Details
-
getTitle
- Overrides:
getTitlein classBaseResult
-
getFailedTests
- Overrides:
getFailedTestsin classhudson.tasks.test.TestResult
-
getPassedTests
- Overrides:
getPassedTestsin classhudson.tasks.test.TestResult
-
getSkippedTests
- Overrides:
getSkippedTestsin classhudson.tasks.test.TestResult
-
getFailedConfigs
-
getSkippedConfigs
-
getPassCount
public int getPassCount()Gets the total number of passed tests.- Overrides:
getPassCountin classhudson.tasks.test.TestResult
-
getFailCount
@Exported public int getFailCount()Gets the total number of failed tests.- Overrides:
getFailCountin classhudson.tasks.test.TestResult
-
getSkipCount
@Exported public int getSkipCount()Gets the total number of skipped tests.- Overrides:
getSkipCountin classhudson.tasks.test.TestResult
-
getTestList
-
getTotalCount
@Exported(name="total") public int getTotalCount()- Overrides:
getTotalCountin classhudson.tasks.test.TestObject
-
getDuration
@Exported public float getDuration()- Overrides:
getDurationin classhudson.tasks.test.TestResult
-
getFailedConfigCount
@Exported(name="fail-config") public int getFailedConfigCount() -
getSkippedConfigCount
@Exported(name="skip-config") public int getSkippedConfigCount() -
getPackageList
-
getPackageMap
-
getPackageNames
-
addUniqueTests
Adds only the<test>s that already aren't part of the list.- Parameters:
testList- tests to be added to the list without duplicating existing list content
-
setRun
- Overrides:
setRunin classBaseResult
-
equals
-
hashCode
public int hashCode() -
toString
-
tally
public void tally()Updates the calculated fields- Overrides:
tallyin classhudson.tasks.test.TestResult
-
getName
- Overrides:
getNamein classBaseResult
-
getParent
- Overrides:
getParentin classBaseResult
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classBaseResult
-
getChildren
- Specified by:
getChildrenin classhudson.tasks.test.TabulatedResult
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildrenin classhudson.tasks.test.TabulatedResult
-