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, run
Fields inherited from class hudson.tasks.test.TabulatedResult
testsByBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addUniqueTests
(List<TestNGTestResult> testList) Adds only the<test>
s that already aren't part of the list.boolean
float
int
Gets the total number of failed tests.int
getName()
int
Gets the total number of passed tests.int
Gets the total number of skipped tests.int
getTitle()
int
boolean
int
hashCode()
void
void
tally()
Updates the calculated fieldstoString()
Methods inherited from class hudson.plugins.testng.results.BaseResult
findCorrespondingResult, getAge, getDynamic, getParentAction, getRun, getTestResultAction, getUpUrl, setParent
Methods inherited from class hudson.tasks.test.TabulatedResult
blockToTestResult, getChildTitle, getChildType, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocks
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getPreviousResult, getProperties, getResultInRun, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyString
Methods 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, uniquifyName
Methods inherited from class hudson.tasks.junit.TestObject
getOwner
Methods 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:
getTitle
in classBaseResult
-
getFailedTests
- Overrides:
getFailedTests
in classhudson.tasks.test.TestResult
-
getPassedTests
- Overrides:
getPassedTests
in classhudson.tasks.test.TestResult
-
getSkippedTests
- Overrides:
getSkippedTests
in classhudson.tasks.test.TestResult
-
getFailedConfigs
-
getSkippedConfigs
-
getPassCount
public int getPassCount()Gets the total number of passed tests.- Overrides:
getPassCount
in classhudson.tasks.test.TestResult
-
getFailCount
@Exported public int getFailCount()Gets the total number of failed tests.- Overrides:
getFailCount
in classhudson.tasks.test.TestResult
-
getSkipCount
@Exported public int getSkipCount()Gets the total number of skipped tests.- Overrides:
getSkipCount
in classhudson.tasks.test.TestResult
-
getTestList
-
getTotalCount
@Exported(name="total") public int getTotalCount()- Overrides:
getTotalCount
in classhudson.tasks.test.TestObject
-
getDuration
@Exported public float getDuration()- Overrides:
getDuration
in 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:
setRun
in classBaseResult
-
equals
-
hashCode
public int hashCode() -
toString
-
tally
public void tally()Updates the calculated fields- Overrides:
tally
in classhudson.tasks.test.TestResult
-
getName
- Overrides:
getName
in classBaseResult
-
getParent
- Overrides:
getParent
in classBaseResult
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classBaseResult
-
getChildren
- Specified by:
getChildren
in classhudson.tasks.test.TabulatedResult
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildren
in classhudson.tasks.test.TabulatedResult
-