Package net.masterthought.cucumber.json
Class Feature
- java.lang.Object
-
- net.masterthought.cucumber.json.Feature
-
- All Implemented Interfaces:
Durationable,Reportable
public class Feature extends Object implements Reportable, Durationable
-
-
Constructor Summary
Constructors Constructor Description Feature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElements(Element[] newElements)StringgetDescription()longgetDuration()Returns duration as milliseconds for this element.Element[]getElements()intgetFailedFeatures()Returns number of failed features for this element.intgetFailedScenarios()Returns number of failed scenarios for this element.intgetFailedSteps()Returns number of failed steps for this element.intgetFeatures()Returns number of features for this element.StringgetFormattedDuration()Returns formatted duration for this element.StringgetId()StringgetKeyword()IntegergetLine()StringgetName()Returns name of the element that will be displayed to user.intgetPassedFeatures()Returns number of passed features for this element.intgetPassedScenarios()Returns number of passed scenarios for this element.intgetPassedSteps()Returns number of passed steps for this element.intgetPendingSteps()Returns number of pending steps for this element.StringgetQualifier()StringgetReportFileName()intgetScenarios()Returns number of scenarios for this element.intgetSkippedSteps()Returns number of skipped steps for this element.StatusgetStatus()Returns status for this element.intgetSteps()Returns number of all steps for this element.Tag[]getTags()intgetUndefinedSteps()Returns number of undefined steps for this element.StringgetUri()voidsetMetaData(int jsonFileNo, Configuration configuration)Sets additional information and calculates values which should be calculated during object creation.voidsetQualifier(String qualifier)
-
-
-
Method Detail
-
getId
public String getId()
-
getUri
public String getUri()
-
addElements
public void addElements(Element[] newElements)
-
getElements
public Element[] getElements()
-
getReportFileName
public String getReportFileName()
-
getQualifier
public String getQualifier()
-
setQualifier
public void setQualifier(String qualifier)
- Parameters:
qualifier- name of the JSON file with report, used for parallel testing
-
getTags
public Tag[] getTags()
-
getStatus
public Status getStatus()
Description copied from interface:ReportableReturns status for this element.- Specified by:
getStatusin interfaceReportable
-
getName
public String getName()
Description copied from interface:ReportableReturns name of the element that will be displayed to user.- Specified by:
getNamein interfaceReportable
-
getKeyword
public String getKeyword()
-
getLine
public Integer getLine()
-
getDescription
public String getDescription()
-
getFeatures
public int getFeatures()
Description copied from interface:ReportableReturns number of features for this element.- Specified by:
getFeaturesin interfaceReportable
-
getPassedFeatures
public int getPassedFeatures()
Description copied from interface:ReportableReturns number of passed features for this element.- Specified by:
getPassedFeaturesin interfaceReportable
-
getFailedFeatures
public int getFailedFeatures()
Description copied from interface:ReportableReturns number of failed features for this element.- Specified by:
getFailedFeaturesin interfaceReportable
-
getScenarios
public int getScenarios()
Description copied from interface:ReportableReturns number of scenarios for this element.- Specified by:
getScenariosin interfaceReportable
-
getSteps
public int getSteps()
Description copied from interface:ReportableReturns number of all steps for this element.- Specified by:
getStepsin interfaceReportable
-
getPassedSteps
public int getPassedSteps()
Description copied from interface:ReportableReturns number of passed steps for this element.- Specified by:
getPassedStepsin interfaceReportable
-
getFailedSteps
public int getFailedSteps()
Description copied from interface:ReportableReturns number of failed steps for this element.- Specified by:
getFailedStepsin interfaceReportable
-
getPendingSteps
public int getPendingSteps()
Description copied from interface:ReportableReturns number of pending steps for this element.- Specified by:
getPendingStepsin interfaceReportable
-
getSkippedSteps
public int getSkippedSteps()
Description copied from interface:ReportableReturns number of skipped steps for this element.- Specified by:
getSkippedStepsin interfaceReportable
-
getUndefinedSteps
public int getUndefinedSteps()
Description copied from interface:ReportableReturns number of undefined steps for this element.- Specified by:
getUndefinedStepsin interfaceReportable
-
getDuration
public long getDuration()
Description copied from interface:ReportableReturns duration as milliseconds for this element.- Specified by:
getDurationin interfaceDurationable- Specified by:
getDurationin interfaceReportable- Returns:
- duration
-
getFormattedDuration
public String getFormattedDuration()
Description copied from interface:ReportableReturns formatted duration for this element.- Specified by:
getFormattedDurationin interfaceDurationable- Specified by:
getFormattedDurationin interfaceReportable- Returns:
- formatted duration
-
getPassedScenarios
public int getPassedScenarios()
Description copied from interface:ReportableReturns number of passed scenarios for this element.- Specified by:
getPassedScenariosin interfaceReportable
-
getFailedScenarios
public int getFailedScenarios()
Description copied from interface:ReportableReturns number of failed scenarios for this element.- Specified by:
getFailedScenariosin interfaceReportable
-
setMetaData
public void setMetaData(int jsonFileNo, Configuration configuration)Sets additional information and calculates values which should be calculated during object creation.- Parameters:
jsonFileNo- index of the JSON fileconfiguration- configuration for the report
-
-