Package io.karatelabs.core
Record Class OutlineRunEvent
java.lang.Object
java.lang.Record
io.karatelabs.core.OutlineRunEvent
- All Implemented Interfaces:
RunEvent
public record OutlineRunEvent(FeatureRuntime source, ScenarioOutline outline, long timeStamp)
extends Record
implements RunEvent
Scenario-outline-level event (OUTLINE_ENTER). Fires once per outline section
before any of its generated examples run, so receivers can record the outline's
identity + metadata as a first-class node and stitch outline-example scenarios
to it by
outlineSlug. No OUTLINE_EXIT exists today — outline completion
is implied by the last outline-example's SCENARIO_EXIT.-
Constructor Summary
ConstructorsConstructorDescriptionOutlineRunEvent(FeatureRuntime source, ScenarioOutline outline, long timeStamp) Creates an instance of aOutlineRunEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutlineRunEvententer(FeatureRuntime fr, ScenarioOutline outline) final booleanIndicates whether some other object is "equal to" this one.longReturns the timestamp when this event occurred (epoch milliseconds).getType()Returns the event type.final inthashCode()Returns a hash code value for this object.outline()Returns the value of theoutlinerecord component.source()Returns the value of thesourcerecord component.longReturns the value of thetimeStamprecord component.toJson()Serializes this event to a map for JSONL output.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OutlineRunEvent
Creates an instance of aOutlineRunEventrecord class.- Parameters:
source- the value for thesourcerecord componentoutline- the value for theoutlinerecord componenttimeStamp- the value for thetimeStamprecord component
-
-
Method Details
-
enter
-
getType
Description copied from interface:RunEventReturns the event type. -
getTimeStamp
public long getTimeStamp()Description copied from interface:RunEventReturns the timestamp when this event occurred (epoch milliseconds).- Specified by:
getTimeStampin interfaceRunEvent
-
toJson
Description copied from interface:RunEventSerializes this event to a map for JSONL output. -
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 '=='. -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
outline
Returns the value of theoutlinerecord component.- Returns:
- the value of the
outlinerecord component
-
timeStamp
public long timeStamp()Returns the value of thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-