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 Details

    • OutlineRunEvent

      public OutlineRunEvent(FeatureRuntime source, ScenarioOutline outline, long timeStamp)
      Creates an instance of a OutlineRunEvent record class.
      Parameters:
      source - the value for the source record component
      outline - the value for the outline record component
      timeStamp - the value for the timeStamp record component
  • Method Details

    • enter

      public static OutlineRunEvent enter(FeatureRuntime fr, ScenarioOutline outline)
    • getType

      public RunEventType getType()
      Description copied from interface: RunEvent
      Returns the event type.
      Specified by:
      getType in interface RunEvent
    • getTimeStamp

      public long getTimeStamp()
      Description copied from interface: RunEvent
      Returns the timestamp when this event occurred (epoch milliseconds).
      Specified by:
      getTimeStamp in interface RunEvent
    • toJson

      public Map<String,Object> toJson()
      Description copied from interface: RunEvent
      Serializes this event to a map for JSONL output.
      Specified by:
      toJson in interface RunEvent
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • source

      public FeatureRuntime source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • outline

      public ScenarioOutline outline()
      Returns the value of the outline record component.
      Returns:
      the value of the outline record component
    • timeStamp

      public long timeStamp()
      Returns the value of the timeStamp record component.
      Returns:
      the value of the timeStamp record component