Class TestCaseStarted

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

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

  • Method Details

    • getAttempt

      public Long getAttempt()
      The first attempt should have value 0, and for each retry the value should increase by 1.
    • getId

      public String getId()
      Because a `TestCase` can be run multiple times (in case of a retry), we use this field to group messages relating to the same attempt.
    • getTestCaseId

      public String getTestCaseId()
    • getWorkerId

      public Optional<String> getWorkerId()
      An identifier for the worker process running this test case, if test cases are being run in parallel. The identifier will be unique per worker, but no particular format is defined - it could be an index, uuid, machine name etc - and as such should be assumed that it's not human readable.
    • getTimestamp

      public Timestamp getTimestamp()
    • 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