public interface CurrentStep
ScenarioState
annotation. It provides programmatic access to the current executed step.Modifier and Type | Method and Description |
---|---|
void |
addAttachment(Attachment attachment)
Adds an attachment to the current step
|
void |
setComment(java.lang.String comment)
Sets the comment of the step.
|
void |
setExtendedDescription(java.lang.String extendedDescription)
Sets the extended description of the current step
|
void |
setName(java.lang.String name)
Sets the name of the current step.
|
void addAttachment(Attachment attachment)
attachment
- an attachment to addvoid setExtendedDescription(java.lang.String extendedDescription)
extendedDescription
- the extended descriptionExtendedDescription
void setName(java.lang.String name)
As
annotation,
to change the name of the step, because it can handle arguments in parametrized scenarios.
If you use this method in a parameterized scenario and the step varies within that scenario, JGiven
will not be able to create a data table.name
- the new name of the stepvoid setComment(java.lang.String comment)
StepComment
comment
- the comment