Class Step

java.lang.Object
io.cucumber.messages.types.Step

public final class Step extends Object
Represents the Step message in Cucumber's message protocol

A step

  • Constructor Details

  • Method Details

    • getLocation

      public Location getLocation()
      The location of the steps' `keyword`
    • getKeyword

      public String getKeyword()
      The actual keyword as it appeared in the source.
    • getKeywordType

      public Optional<StepKeywordType> getKeywordType()
      The test phase signalled by the keyword: Context definition (Given), Action performance (When), Outcome assertion (Then). Other keywords signal Continuation (And and But) from a prior keyword. Please note that all translations which a dialect maps to multiple keywords (`*` is in this category for all dialects), map to 'Unknown'.
    • getText

      public String getText()
    • getDocString

      public Optional<DocString> getDocString()
    • getDataTable

      public Optional<DataTable> getDataTable()
    • getId

      public String getId()
      Unique ID to be able to reference the Step from PickleStep
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object