Annotation Interface BeforeStep


@Retention(RUNTIME) @Target(METHOD) @API(status=STABLE) public @interface BeforeStep
Execute method before each step.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of this hook, used for reporting.
    int
    Returns the order in which this hook should run.
    Tag expression.
  • Element Details

    • value

      String value
      Tag expression. If the expression applies to the current scenario this hook will be executed.
      Returns:
      a tag expression
      Default:
      ""
    • name

      String name
      Name of this hook, used for reporting.
      Returns:
      the hook name
      Default:
      ""
    • order

      int order
      Returns the order in which this hook should run.

      Lower numbers are run first. The default order is 10000.

      Returns:
      the order in which this hook should run
      Default:
      10000