Class TestStepResult

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

public final class TestStepResult extends Object
Represents the TestStepResult message in Cucumber's message protocol
  • Constructor Details

  • Method Details

    • getDuration

      public Duration getDuration()
    • getMessage

      public Optional<String> getMessage()
      An arbitrary bit of information that explains this result. If there was an exception, this should include a stringified representation of it including type, message and stack trace (the exact format will vary by platform).
    • getStatus

      public TestStepResultStatus getStatus()
    • getException

      public Optional<Exception> getException()
      Exception thrown while executing this step, if any.
    • 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