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 void
addElements(Element[] newElements)
String
getDescription()
long
getDuration()
Returns duration as milliseconds for this element.Element[]
getElements()
int
getFailedFeatures()
Returns number of failed features for this element.int
getFailedScenarios()
Returns number of failed scenarios for this element.int
getFailedSteps()
Returns number of failed steps for this element.int
getFeatures()
Returns number of features for this element.String
getFormattedDuration()
Returns formatted duration for this element.String
getId()
String
getKeyword()
Integer
getLine()
String
getName()
Returns name of the element that will be displayed to user.int
getPassedFeatures()
Returns number of passed features for this element.int
getPassedScenarios()
Returns number of passed scenarios for this element.int
getPassedSteps()
Returns number of passed steps for this element.int
getPendingSteps()
Returns number of pending steps for this element.String
getQualifier()
String
getReportFileName()
int
getScenarios()
Returns number of scenarios for this element.int
getSkippedSteps()
Returns number of skipped steps for this element.Status
getStatus()
Returns status for this element.int
getSteps()
Returns number of all steps for this element.Tag[]
getTags()
int
getUndefinedSteps()
Returns number of undefined steps for this element.String
getUri()
void
setMetaData(int jsonFileNo, Configuration configuration)
Sets additional information and calculates values which should be calculated during object creation.void
setQualifier(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:Reportable
Returns status for this element.- Specified by:
getStatus
in interfaceReportable
-
getName
public String getName()
Description copied from interface:Reportable
Returns name of the element that will be displayed to user.- Specified by:
getName
in interfaceReportable
-
getKeyword
public String getKeyword()
-
getLine
public Integer getLine()
-
getDescription
public String getDescription()
-
getFeatures
public int getFeatures()
Description copied from interface:Reportable
Returns number of features for this element.- Specified by:
getFeatures
in interfaceReportable
-
getPassedFeatures
public int getPassedFeatures()
Description copied from interface:Reportable
Returns number of passed features for this element.- Specified by:
getPassedFeatures
in interfaceReportable
-
getFailedFeatures
public int getFailedFeatures()
Description copied from interface:Reportable
Returns number of failed features for this element.- Specified by:
getFailedFeatures
in interfaceReportable
-
getScenarios
public int getScenarios()
Description copied from interface:Reportable
Returns number of scenarios for this element.- Specified by:
getScenarios
in interfaceReportable
-
getSteps
public int getSteps()
Description copied from interface:Reportable
Returns number of all steps for this element.- Specified by:
getSteps
in interfaceReportable
-
getPassedSteps
public int getPassedSteps()
Description copied from interface:Reportable
Returns number of passed steps for this element.- Specified by:
getPassedSteps
in interfaceReportable
-
getFailedSteps
public int getFailedSteps()
Description copied from interface:Reportable
Returns number of failed steps for this element.- Specified by:
getFailedSteps
in interfaceReportable
-
getPendingSteps
public int getPendingSteps()
Description copied from interface:Reportable
Returns number of pending steps for this element.- Specified by:
getPendingSteps
in interfaceReportable
-
getSkippedSteps
public int getSkippedSteps()
Description copied from interface:Reportable
Returns number of skipped steps for this element.- Specified by:
getSkippedSteps
in interfaceReportable
-
getUndefinedSteps
public int getUndefinedSteps()
Description copied from interface:Reportable
Returns number of undefined steps for this element.- Specified by:
getUndefinedSteps
in interfaceReportable
-
getDuration
public long getDuration()
Description copied from interface:Reportable
Returns duration as milliseconds for this element.- Specified by:
getDuration
in interfaceDurationable
- Specified by:
getDuration
in interfaceReportable
- Returns:
- duration
-
getFormattedDuration
public String getFormattedDuration()
Description copied from interface:Reportable
Returns formatted duration for this element.- Specified by:
getFormattedDuration
in interfaceDurationable
- Specified by:
getFormattedDuration
in interfaceReportable
- Returns:
- formatted duration
-
getPassedScenarios
public int getPassedScenarios()
Description copied from interface:Reportable
Returns number of passed scenarios for this element.- Specified by:
getPassedScenarios
in interfaceReportable
-
getFailedScenarios
public int getFailedScenarios()
Description copied from interface:Reportable
Returns number of failed scenarios for this element.- Specified by:
getFailedScenarios
in 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
-
-