Class StepObject


  • public class StepObject
    extends Object
    Keeps information about steps statistics.
    Author:
    Damian Szczepanik (damianszczepanik@github)
    • 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()