org.jenkinsci.plugins.cucumber.jsontestsupport
Class ScenarioResult

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 org.jenkinsci.plugins.cucumber.jsontestsupport.ScenarioResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, Serializable

@ExportedBean
public class ScenarioResult
extends hudson.tasks.test.TestResult

Represents a Scenario belonging to a Feature from Cucumber.

Author:
James Nord
See Also:
Serialized Form

Method Summary
 hudson.tasks.test.TestResult findCorrespondingResult(String id)
           
 List<BeforeAfterResult> getAfterResults()
           
 int getAge()
          Gets the number of consecutive builds (including this) that this test case has been failing.
 BackgroundResult getBackgroundResult()
           
 List<BeforeAfterResult> getBeforeResults()
           
 String getDisplayName()
           
 float getDuration()
           
 String getErrorDetails()
          If there was an error or a failure, this is the text from the message.
 int getFailCount()
           
 int getFailedSince()
          If this test failed, then return the build number when this test started failing.
 String getFullName()
           
 String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
           
 FeatureResult getParent()
           
 int getPassCount()
           
 String getRelativePathFrom(hudson.tasks.test.TestObject from)
           
 String getSafeName()
           
 gherkin.formatter.model.Scenario getScenario()
           
 int getSkipCount()
           
 String getSource()
           
 hudson.tasks.junit.CaseResult.Status getStatus()
           
 Collection<StepResult> getStepResults()
           
 void setOwner(hudson.model.AbstractBuild<?,?> owner)
           
protected  void setParent(FeatureResult parent)
           
 void tally()
           
 
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorStackTrace, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getPreviousResult, getResultInBuild, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent, setParentAction, toPrettyString
 
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getHistory, getId, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, 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
 

Method Detail

getName

@Exported(visibility=9)
public String getName()
Overrides:
getName in class hudson.tasks.test.TestObject

getFullName

public String getFullName()

getFailCount

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

getSafeName

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

getSkipCount

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

getPassCount

@Exported(visibility=9)
public int getPassCount()
Overrides:
getPassCount in class hudson.tasks.test.TestResult

getOwner

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

setOwner

public void setOwner(hudson.model.AbstractBuild<?,?> owner)

getParent

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

setParent

protected void setParent(FeatureResult parent)

findCorrespondingResult

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

getDisplayName

public String getDisplayName()

getBackgroundResult

public BackgroundResult getBackgroundResult()

getAfterResults

public List<BeforeAfterResult> getAfterResults()

getBeforeResults

public List<BeforeAfterResult> getBeforeResults()

getStepResults

public Collection<StepResult> getStepResults()

getScenario

public gherkin.formatter.model.Scenario getScenario()

getDuration

@Exported(visibility=9)
public float getDuration()
Overrides:
getDuration in class hudson.tasks.test.TestResult

getStatus

@Exported(name="status",
          visibility=9)
public hudson.tasks.junit.CaseResult.Status getStatus()

getFailedSince

@Exported(visibility=9)
public int getFailedSince()
If this test failed, then return the build number when this test started failing.

Overrides:
getFailedSince in class hudson.tasks.test.TestResult

getAge

@Exported(visibility=9)
public int getAge()
Gets the number of consecutive builds (including this) that this test case has been failing.


tally

public void tally()
Overrides:
tally in class hudson.tasks.test.TestResult

getErrorDetails

public String getErrorDetails()
If there was an error or a failure, this is the text from the message.

Overrides:
getErrorDetails in class hudson.tasks.test.TestResult

getSource

public String getSource()

getRelativePathFrom

public String getRelativePathFrom(hudson.tasks.test.TestObject from)
Overrides:
getRelativePathFrom in class hudson.tasks.test.TestObject


Copyright © 2013. All Rights Reserved.