Package net.masterthought.cucumber.json
Class Feature
java.lang.Object
net.masterthought.cucumber.json.Feature
- All Implemented Interfaces:
Durationable,Reportable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElements(Element[] newElements) longReturns duration for given item.Element[]intintintintReturns duration displayed in humanable format.getId()getLine()getName()intintintintintintintgetSteps()Tag[]getTags()intgetUri()voidsetMetaData(int jsonFileNo, Configuration configuration) Sets additional information and calculates values which should be calculated during object creation.voidsetQualifier(String qualifier)
-
Constructor Details
-
Feature
public Feature()
-
-
Method Details
-
getId
-
getUri
-
addElements
-
getElements
-
getReportFileName
-
getQualifier
-
setQualifier
- Parameters:
qualifier- name of the JSON file with report, used for parallel testing
-
getTags
-
getStatus
- Specified by:
getStatusin interfaceReportable- Returns:
- status for this element.
-
getName
- Specified by:
getNamein interfaceReportable- Returns:
- name of the element that will be displayed to user.
-
getKeyword
-
getLine
-
getDescription
-
getFeatures
public int getFeatures()- Specified by:
getFeaturesin interfaceReportable- Returns:
- number of features for this element.
-
getPassedFeatures
public int getPassedFeatures()- Specified by:
getPassedFeaturesin interfaceReportable- Returns:
- number of passed features for this element.
-
getFailedFeatures
public int getFailedFeatures()- Specified by:
getFailedFeaturesin interfaceReportable- Returns:
- number of failed features for this element.
-
getScenarios
public int getScenarios()- Specified by:
getScenariosin interfaceReportable- Returns:
- number of scenarios for this element.
-
getSteps
public int getSteps()- Specified by:
getStepsin interfaceReportable- Returns:
- number of all steps for this element.
-
getPassedSteps
public int getPassedSteps()- Specified by:
getPassedStepsin interfaceReportable- Returns:
- number of passed steps for this element.
-
getFailedSteps
public int getFailedSteps()- Specified by:
getFailedStepsin interfaceReportable- Returns:
- number of failed steps for this element.
-
getPendingSteps
public int getPendingSteps()- Specified by:
getPendingStepsin interfaceReportable- Returns:
- number of pending steps for this element.
-
getSkippedSteps
public int getSkippedSteps()- Specified by:
getSkippedStepsin interfaceReportable- Returns:
- number of skipped steps for this element.
-
getUndefinedSteps
public int getUndefinedSteps()- Specified by:
getUndefinedStepsin interfaceReportable- Returns:
- number of undefined steps for this element.
-
getDuration
public long getDuration()Description copied from interface:DurationableReturns duration for given item.- Specified by:
getDurationin interfaceDurationable- Specified by:
getDurationin interfaceReportable- Returns:
- duration as milliseconds for this element.
-
getFormattedDuration
Description copied from interface:DurationableReturns duration displayed in humanable format.- Specified by:
getFormattedDurationin interfaceDurationable- Specified by:
getFormattedDurationin interfaceReportable- Returns:
- formatted duration for this element.
-
getPassedScenarios
public int getPassedScenarios()- Specified by:
getPassedScenariosin interfaceReportable- Returns:
- number of passed scenarios for this element.
-
getFailedScenarios
public int getFailedScenarios()- Specified by:
getFailedScenariosin interfaceReportable- Returns:
- number of failed scenarios for this element.
-
setMetaData
Sets additional information and calculates values which should be calculated during object creation.- Parameters:
jsonFileNo- index of the JSON fileconfiguration- configuration for the report
-