Package com.thoughtworks.gauge
Annotation Type BeforeStep
-
@Target(METHOD) @Retention(RUNTIME) public @interface BeforeStep
Methods annotated with this hook, execute before every Step execution completes. The steps for which the hook executes can be filtered by passing additional attributesIf there is more than one method annotated with @BeforeStep, the order of execution is as follows:
- Hooks which are not filtered by tags.
- Hooks filtered by tags.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Operator
tagAggregation
String[]
tags
-
-
-
Element Detail
-
tags
String[] tags
- Returns:
- Array of tags to filter which steps the hook runs before.
- Default:
- {}
-
-
-
tagAggregation
Operator tagAggregation
- Returns:
- OR: if hook should execute for the current execution context (spec and scenario) containing any of the tags provided AND: if hook should execute for the current execution context (spec and scenario) containing all of the tags provided Default is AND
- Default:
- com.thoughtworks.gauge.Operator.AND
-
-