public class Feature extends Object implements Reportable, Durationable
Constructor and Description |
---|
Feature() |
Modifier and Type | Method and 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() |
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 |
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.
|
void |
setMetaData(int jsonFileNo,
Configuration configuration)
Sets additional information and calculates values which should be calculated during object creation.
|
public String getId()
public void addElements(Element[] newElements)
public Element[] getElements()
public String getReportFileName()
public Tag[] getTags()
public Status getStatus()
Reportable
getStatus
in interface Reportable
public String getName()
Reportable
getName
in interface Reportable
public String getKeyword()
public String getDescription()
public int getFeatures()
Reportable
getFeatures
in interface Reportable
public int getPassedFeatures()
Reportable
getPassedFeatures
in interface Reportable
public int getFailedFeatures()
Reportable
getFailedFeatures
in interface Reportable
public int getScenarios()
Reportable
getScenarios
in interface Reportable
public int getSteps()
Reportable
getSteps
in interface Reportable
public int getPassedSteps()
Reportable
getPassedSteps
in interface Reportable
public int getFailedSteps()
Reportable
getFailedSteps
in interface Reportable
public int getPendingSteps()
Reportable
getPendingSteps
in interface Reportable
public int getSkippedSteps()
Reportable
getSkippedSteps
in interface Reportable
public int getUndefinedSteps()
Reportable
getUndefinedSteps
in interface Reportable
public long getDuration()
Reportable
getDuration
in interface Durationable
getDuration
in interface Reportable
public String getFormattedDuration()
Reportable
getFormattedDuration
in interface Durationable
getFormattedDuration
in interface Reportable
public int getPassedScenarios()
Reportable
getPassedScenarios
in interface Reportable
public int getFailedScenarios()
Reportable
getFailedScenarios
in interface Reportable
public void setMetaData(int jsonFileNo, Configuration configuration)
jsonFileNo
- index of the JSON fileconfiguration
- configuration for the reportCopyright © 2019. All rights reserved.