Annotation Type Before


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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    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:
      ""
    • order

      int order
      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