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