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 for given item.Element[]
getElements()
int
getFailedFeatures()
int
getFailedScenarios()
int
getFailedSteps()
int
getFeatures()
String
getFormattedDuration()
Returns duration displayed in humanable format.String
getId()
String
getKeyword()
Integer
getLine()
String
getName()
int
getPassedFeatures()
int
getPassedScenarios()
int
getPassedSteps()
int
getPendingSteps()
String
getQualifier()
String
getReportFileName()
int
getScenarios()
int
getSkippedSteps()
Status
getStatus()
int
getSteps()
Tag[]
getTags()
int
getUndefinedSteps()
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()
- Specified by:
getStatus
in interfaceReportable
- Returns:
- status for this element.
-
getName
public String getName()
- Specified by:
getName
in interfaceReportable
- Returns:
- name of the element that will be displayed to user.
-
getKeyword
public String getKeyword()
-
getLine
public Integer getLine()
-
getDescription
public String getDescription()
-
getFeatures
public int getFeatures()
- Specified by:
getFeatures
in interfaceReportable
- Returns:
- number of features for this element.
-
getPassedFeatures
public int getPassedFeatures()
- Specified by:
getPassedFeatures
in interfaceReportable
- Returns:
- number of passed features for this element.
-
getFailedFeatures
public int getFailedFeatures()
- Specified by:
getFailedFeatures
in interfaceReportable
- Returns:
- number of failed features for this element.
-
getScenarios
public int getScenarios()
- Specified by:
getScenarios
in interfaceReportable
- Returns:
- number of scenarios for this element.
-
getSteps
public int getSteps()
- Specified by:
getSteps
in interfaceReportable
- Returns:
- number of all steps for this element.
-
getPassedSteps
public int getPassedSteps()
- Specified by:
getPassedSteps
in interfaceReportable
- Returns:
- number of passed steps for this element.
-
getFailedSteps
public int getFailedSteps()
- Specified by:
getFailedSteps
in interfaceReportable
- Returns:
- number of failed steps for this element.
-
getPendingSteps
public int getPendingSteps()
- Specified by:
getPendingSteps
in interfaceReportable
- Returns:
- number of pending steps for this element.
-
getSkippedSteps
public int getSkippedSteps()
- Specified by:
getSkippedSteps
in interfaceReportable
- Returns:
- number of skipped steps for this element.
-
getUndefinedSteps
public int getUndefinedSteps()
- Specified by:
getUndefinedSteps
in interfaceReportable
- Returns:
- number of undefined steps for this element.
-
getDuration
public long getDuration()
Description copied from interface:Durationable
Returns duration for given item.- Specified by:
getDuration
in interfaceDurationable
- Specified by:
getDuration
in interfaceReportable
- Returns:
- duration as milliseconds for this element.
-
getFormattedDuration
public String getFormattedDuration()
Description copied from interface:Durationable
Returns duration displayed in humanable format.- Specified by:
getFormattedDuration
in interfaceDurationable
- Specified by:
getFormattedDuration
in interfaceReportable
- Returns:
- formatted duration for this element.
-
getPassedScenarios
public int getPassedScenarios()
- Specified by:
getPassedScenarios
in interfaceReportable
- Returns:
- number of passed scenarios for this element.
-
getFailedScenarios
public int getFailedScenarios()
- Specified by:
getFailedScenarios
in interfaceReportable
- Returns:
- number of failed scenarios for this element.
-
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
-
-