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() |
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 |
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.
|
public String getId()
public String getUri()
public void addElements(Element[] newElements)
public Element[] getElements()
public String getReportFileName()
public Tag[] getTags()
public Status getStatus()
ReportablegetStatus in interface Reportablepublic String getName()
ReportablegetName in interface Reportablepublic String getKeyword()
public Integer getLine()
public String getDescription()
public int getFeatures()
ReportablegetFeatures in interface Reportablepublic int getPassedFeatures()
ReportablegetPassedFeatures in interface Reportablepublic int getFailedFeatures()
ReportablegetFailedFeatures in interface Reportablepublic int getScenarios()
ReportablegetScenarios in interface Reportablepublic int getSteps()
ReportablegetSteps in interface Reportablepublic int getPassedSteps()
ReportablegetPassedSteps in interface Reportablepublic int getFailedSteps()
ReportablegetFailedSteps in interface Reportablepublic int getPendingSteps()
ReportablegetPendingSteps in interface Reportablepublic int getSkippedSteps()
ReportablegetSkippedSteps in interface Reportablepublic int getUndefinedSteps()
ReportablegetUndefinedSteps in interface Reportablepublic long getDuration()
ReportablegetDuration in interface DurationablegetDuration in interface Reportablepublic String getFormattedDuration()
ReportablegetFormattedDuration in interface DurationablegetFormattedDuration in interface Reportablepublic int getPassedScenarios()
ReportablegetPassedScenarios in interface Reportablepublic int getFailedScenarios()
ReportablegetFailedScenarios in interface Reportablepublic void setMetaData(int jsonFileNo,
Configuration configuration)
jsonFileNo - index of the JSON fileconfiguration - configuration for the reportCopyright © 2019. All rights reserved.