Record Class SequenceStepFinished
java.lang.Object
java.lang.Record
com.gtnewhorizons.horizonqa.api.event.SequenceStepFinished
- Record Components:
tick- logical event-log tickindex- one-based step indextotalSteps- number of declared sequence stepslabel- author label, or declaration source when unlabeledoutcome-completedorfailedattempts- number of action or condition attemptselapsedTicks- inclusive outer-test tick count from first attempt to completion
- All Implemented Interfaces:
TestEvent
@Desugar
public record SequenceStepFinished(int tick, int index, int totalSteps, String label, String outcome, int attempts, long elapsedTicks)
extends Record
implements TestEvent
A sequence step completed or failed. The human-readable summary omits timing for an immediate step,
reports only elapsed ticks when attempts and ticks match, and otherwise reports both values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gtnewhorizons.horizonqa.api.event.TestEvent
TestEvent.Category -
Constructor Summary
ConstructorsConstructorDescriptionSequenceStepFinished(int tick, int index, int totalSteps, String label, String outcome, int attempts, long elapsedTicks) Creates an instance of aSequenceStepFinishedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.category()Coarse bucket; one ofTestEvent.Category.longReturns the value of theelapsedTicksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.label()Returns the value of thelabelrecord component.outcome()Returns the value of theoutcomerecord component.summary()Single-line human-readable description.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalStepsrecord component.
-
Constructor Details
-
SequenceStepFinished
public SequenceStepFinished(int tick, int index, int totalSteps, String label, String outcome, int attempts, long elapsedTicks) Creates an instance of aSequenceStepFinishedrecord class.- Parameters:
tick- the value for thetickrecord componentindex- the value for theindexrecord componenttotalSteps- the value for thetotalStepsrecord componentlabel- the value for thelabelrecord componentoutcome- the value for theoutcomerecord componentattempts- the value for theattemptsrecord componentelapsedTicks- the value for theelapsedTicksrecord component
-
-
Method Details
-
category
Description copied from interface:TestEventCoarse bucket; one ofTestEvent.Category. -
summary
Description copied from interface:TestEventSingle-line human-readable description. Reporters print this verbatim. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tick
public int tick()Returns the value of thetickrecord component. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
totalSteps
public int totalSteps()Returns the value of thetotalStepsrecord component.- Returns:
- the value of the
totalStepsrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
attempts
public int attempts()Returns the value of theattemptsrecord component.- Returns:
- the value of the
attemptsrecord component
-
elapsedTicks
public long elapsedTicks()Returns the value of theelapsedTicksrecord component.- Returns:
- the value of the
elapsedTicksrecord component
-