hudson.plugins.fitnesse
Class ResultsDetails

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.tasks.junit.TestObject
          extended by hudson.tasks.test.TestObject
              extended by hudson.tasks.test.TestResult
                  extended by hudson.plugins.fitnesse.ResultsDetails
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, Serializable

public class ResultsDetails
extends hudson.tasks.test.TestResult

Represents the details of a FitNesseResults instance, i.e. the FitNesse html output.

See Also:
Serialized Form

Constructor Summary
ResultsDetails(FitnesseResults parent, String name)
           
 
Method Summary
 hudson.tasks.test.TestResult findCorrespondingResult(String id)
           
 String getDetailsHtml()
          referenced from body.jelly Reads the fitnesse-result from file.
 String getDisplayName()
           
 int getFailCount()
           
 Collection<? extends hudson.tasks.test.TestResult> getFailedTests()
          Gets the "children" of this test result that failed
 String getName()
          Required for TestObject.getId()
 hudson.model.AbstractBuild<?,?> getOwner()
           
 hudson.tasks.test.TestObject getParent()
           
 int getPassCount()
           
 Collection<? extends hudson.tasks.test.TestResult> getPassedTests()
          Gets the "children" of this test result that passed
 int getSkipCount()
           
 Collection<? extends hudson.tasks.test.TestResult> getSkippedTests()
          Gets the "children" of this test result that were skipped
 hudson.tasks.test.AbstractTestResultAction getTestResultAction()
           
 boolean isPassed()
           
 boolean isSkipped()
          Tests whether all test cases were skipped or not.
 
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getDuration, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPreviousResult, getResultInBuild, getStderr, getStdout, getTitle, setParent, setParentAction, tally, toPrettyString
 
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestActions, 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

ResultsDetails

public ResultsDetails(FitnesseResults parent,
                      String name)
Method Detail

getName

public String getName()
Required for TestObject.getId()

Overrides:
getName in class hudson.tasks.test.TestObject

getDisplayName

public String getDisplayName()

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Specified by:
getOwner in class hudson.tasks.test.TestObject

getParent

public hudson.tasks.test.TestObject getParent()
Overrides:
getParent in class hudson.tasks.test.TestObject

getTestResultAction

public hudson.tasks.test.AbstractTestResultAction getTestResultAction()
Overrides:
getTestResultAction in class hudson.tasks.test.TestObject

findCorrespondingResult

public hudson.tasks.test.TestResult findCorrespondingResult(String id)
Specified by:
findCorrespondingResult in class hudson.tasks.test.TestObject

getDetailsHtml

public String getDetailsHtml()
referenced from body.jelly Reads the fitnesse-result from file. The result is stored on user request in order to keep the memory footprint small.


getFailCount

public int getFailCount()
Overrides:
getFailCount in class hudson.tasks.test.TestResult

getSkipCount

public int getSkipCount()
Overrides:
getSkipCount in class hudson.tasks.test.TestResult

getPassCount

public int getPassCount()
Overrides:
getPassCount in class hudson.tasks.test.TestResult

getFailedTests

public Collection<? extends hudson.tasks.test.TestResult> getFailedTests()
Gets the "children" of this test result that failed

Overrides:
getFailedTests in class hudson.tasks.test.TestResult
Returns:
the children of this test result, if any, or an empty collection

getPassedTests

public Collection<? extends hudson.tasks.test.TestResult> getPassedTests()
Gets the "children" of this test result that passed

Overrides:
getPassedTests in class hudson.tasks.test.TestResult
Returns:
the children of this test result, if any, or an empty collection

getSkippedTests

public Collection<? extends hudson.tasks.test.TestResult> getSkippedTests()
Gets the "children" of this test result that were skipped

Overrides:
getSkippedTests in class hudson.tasks.test.TestResult
Returns:
the children of this test result, if any, or an empty list

isPassed

public boolean isPassed()
Overrides:
isPassed in class hudson.tasks.test.TestResult
Returns:
true if the test was not skipped and did not fail, false otherwise.

isSkipped

@Exported(visibility=9)
public boolean isSkipped()
Tests whether all test cases were skipped or not. TestNG allows tests to be skipped if their dependencies fail or they are part of a group that has been configured to be skipped.

Returns:
true if the test was not executed, false otherwise.


Copyright © 2004-2015. All Rights Reserved.