|
||||||||||
| 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
com.cwctravel.hudson.plugins.suitegroupedtests.junit.CaseResult
public final class CaseResult
One test result.
| Nested Class Summary | |
|---|---|
static class |
CaseResult.Status
Constants that represent the status of this test. |
| Constructor Summary | |
|---|---|
CaseResult(hudson.tasks.test.TestObject parent,
JUnitTestInfo testInfo)
|
|
| Method Summary | |
|---|---|
int |
compareTo(CaseResult that)
|
hudson.tasks.test.TestResult |
findCorrespondingResult(java.lang.String id)
Case results have no children |
int |
getAge()
Gets the number of consecutive builds (including this) that this test case has been failing. |
java.lang.String |
getClassName()
Gets the class name of a test class. |
java.lang.String |
getDisplayName()
|
float |
getDuration()
Gets the duration of the test, in seconds |
java.lang.String |
getErrorDetails()
If there was an error or a failure, this is the text from the message. |
java.lang.String |
getErrorStackTrace()
If there was an error or a failure, this is the stack trace, or otherwise null. |
int |
getFailCount()
|
int |
getFailedSince()
If this test failed, then return the build number when this test started failing. |
hudson.model.Run<?,?> |
getFailedSinceRun()
|
java.util.Collection<? extends hudson.tasks.test.TestResult> |
getFailedTests()
Gets the "children" of this test result that failed |
java.lang.String |
getFullName()
|
hudson.tasks.junit.History |
getHistory()
|
JUnitMetricsInfo |
getMetrics()
|
java.lang.String |
getName()
Gets the name of the test, which is returned from TestCase.getName() |
hudson.model.AbstractBuild<?,?> |
getOwner()
|
java.lang.String |
getPackageName()
Gets the package name of a test case |
hudson.tasks.test.TestObject |
getParent()
|
int |
getPassCount()
|
java.util.Collection<? extends hudson.tasks.test.TestResult> |
getPassedTests()
Gets the "children" of this test result that passed |
CaseResult |
getPreviousResult()
|
java.lang.String |
getRootUrl(java.lang.String urlName)
|
java.lang.String |
getRootUrl(hudson.tasks.junit.TestAction testAction)
|
java.lang.String |
getSafeName()
Gets the version of getName() that's URL-safe. |
java.lang.String |
getSimpleName()
Gets the simple (not qualified) class name. |
int |
getSkipCount()
|
java.util.Collection<? extends hudson.tasks.test.TestResult> |
getSkippedTests()
Gets the "children" of this test result that were skipped |
CaseResult.Status |
getStatus()
|
java.lang.String |
getStderr()
The stderr of this test. |
java.lang.String |
getStdout()
The stdout of this test. |
java.util.List<hudson.tasks.junit.TestAction> |
getTestActions()
|
SuiteGroupResultAction |
getTestResultAction()
|
java.lang.String |
getTitle()
Gets the human readable title of this result object. |
boolean |
isPassed()
|
boolean |
isSkipped()
Tests whether the test was skipped or not. |
| Methods inherited from class hudson.tasks.test.TestResult |
|---|
annotate, getBuildResult, getParentAction, getResultInBuild, setParent, setParentAction, tally, toPrettyString |
| Methods inherited from class hudson.tasks.test.TestObject |
|---|
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getId, getRelativePathFrom, getSearchUrl, getTestAction, getTestResult, 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 |
| Constructor Detail |
|---|
public CaseResult(hudson.tasks.test.TestObject parent,
JUnitTestInfo testInfo)
| Method Detail |
|---|
public hudson.tasks.test.TestObject getParent()
getParent in class hudson.tasks.test.TestObjectpublic java.util.List<hudson.tasks.junit.TestAction> getTestActions()
getTestActions in class hudson.tasks.test.TestObjectpublic SuiteGroupResultAction getTestResultAction()
getTestResultAction in class hudson.tasks.test.TestObjectpublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObject@Exported(visibility=999) public java.lang.String getName()
TestCase.getName()
Note that this may contain any URL-unfriendly character.
getName in class hudson.tasks.test.TestObjectpublic java.lang.String getTitle()
getTitle in class hudson.tasks.test.TestResult@Exported(visibility=9) public float getDuration()
getDuration in class hudson.tasks.test.TestResultpublic java.lang.String getSafeName()
getName() that's URL-safe.
getSafeName in class hudson.tasks.test.TestObject@Exported(visibility=9) public java.lang.String getClassName()
public java.lang.String getSimpleName()
public java.lang.String getPackageName()
public java.lang.String getFullName()
public int getFailCount()
getFailCount in class hudson.tasks.test.TestResultpublic int getSkipCount()
getSkipCount in class hudson.tasks.test.TestResultpublic int getPassCount()
getPassCount in class hudson.tasks.test.TestResult@Exported(visibility=9) public int getFailedSince()
getFailedSince in class hudson.tasks.test.TestResultpublic hudson.model.Run<?,?> getFailedSinceRun()
getFailedSinceRun in class hudson.tasks.test.TestResult@Exported(visibility=9) public int getAge()
@Exported public java.lang.String getStdout()
Depending on the tool that produced the XML report, this method works somewhat inconsistently. With some tools (such as Maven surefire plugin), you get the accurate information, that is the stdout from this test case. With some other tools (such as the JUnit task in Ant), this method returns the stdout produced by the entire test suite.
If you need to know which is the case, compare this output from SuiteResult.getStdout().
getStdout in class hudson.tasks.test.TestResult@Exported public java.lang.String getStderr()
getStderr in class hudson.tasks.test.TestResultgetStdout()public CaseResult getPreviousResult()
getPreviousResult in class hudson.tasks.test.TestResultpublic JUnitMetricsInfo getMetrics()
public hudson.tasks.test.TestResult findCorrespondingResult(java.lang.String id)
findCorrespondingResult in class hudson.tasks.test.TestObjectpublic java.util.Collection<? extends hudson.tasks.test.TestResult> getFailedTests()
getFailedTests in class hudson.tasks.test.TestResultpublic java.util.Collection<? extends hudson.tasks.test.TestResult> getPassedTests()
getPassedTests in class hudson.tasks.test.TestResultpublic java.util.Collection<? extends hudson.tasks.test.TestResult> getSkippedTests()
getSkippedTests in class hudson.tasks.test.TestResult@Exported public java.lang.String getErrorStackTrace()
getErrorStackTrace in class hudson.tasks.test.TestResult@Exported public java.lang.String getErrorDetails()
getErrorDetails in class hudson.tasks.test.TestResultpublic boolean isPassed()
isPassed in class hudson.tasks.test.TestResult@Exported(visibility=9) public boolean isSkipped()
public hudson.model.AbstractBuild<?,?> getOwner()
getOwner in class hudson.tasks.test.TestObjectpublic int compareTo(CaseResult that)
compareTo in interface java.lang.Comparable<CaseResult>
@Exported(name="status",
visibility=9)
public CaseResult.Status getStatus()
public java.lang.String getRootUrl(java.lang.String urlName)
public java.lang.String getRootUrl(hudson.tasks.junit.TestAction testAction)
public hudson.tasks.junit.History getHistory()
getHistory in class hudson.tasks.test.TestObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||