Package io.cucumber.messages.types
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- See Also:
- Github - Cucumber - Messages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetAttempt()The first attempt should have value 0, and for each retry the value should increase by 1.StringgetId()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.StringgetTestCaseId()TimestampgetTimestamp()Optional<String>getWorkerId()An identifier for the worker process running this test case, if test cases are being run in parallel.inthashCode()StringtoString()
-
-
-
Method Detail
-
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()
-
-