Class StepObject
- java.lang.Object
-
- net.masterthought.cucumber.json.support.StepObject
-
public class StepObject extends Object
Keeps information about steps statistics.- Author:
- Damian Szczepanik (damianszczepanik@github)
-
-
Constructor Summary
Constructors Constructor Description StepObject(String location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDuration(long duration, Status status)
long
getAverageDuration()
long
getDuration()
String
getFormattedAverageDuration()
String
getFormattedMaxDuration()
String
getFormattedTotalDuration()
String
getLocation()
long
getMaxDuration()
String
getPercentageResult()
Gets percentage how many steps passed (PASSED / All) formatted to double decimal precision.Status
getStatus()
int
getTotalOccurrences()
-
-
-
Field Detail
-
location
public final String location
Name of the method / step implementation. This value is unique, there are no two steps with the same locations.
-
-
Constructor Detail
-
StepObject
public StepObject(String location)
-
-
Method Detail
-
getLocation
public String getLocation()
-
addDuration
public void addDuration(long duration, Status status)
-
getDuration
public long getDuration()
-
getFormattedTotalDuration
public String getFormattedTotalDuration()
-
getAverageDuration
public long getAverageDuration()
-
getFormattedAverageDuration
public String getFormattedAverageDuration()
-
getTotalOccurrences
public int getTotalOccurrences()
-
getMaxDuration
public long getMaxDuration()
-
getFormattedMaxDuration
public String getFormattedMaxDuration()
-
getPercentageResult
public String getPercentageResult()
Gets percentage how many steps passed (PASSED / All) formatted to double decimal precision.- Returns:
- percentage of passed statuses
-
getStatus
public Status getStatus()
-
-