Annotation Interface TestInstanceParameter


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface TestInstanceParameter
You can use this annotation to add test instance parameters to your TestNG tests. Fields declared by the test class and its superclasses are supported. If multiple fields resolve to the same parameter name, the field declared by the most-derived class takes precedence.
See Also:
  • Parameter
  • Parameter.Mode
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Set it to true to exclude the parameter from history ID generation.
    io.qameta.allure.model.Parameter.Mode
    The parameter mode.
    The name of parameter.
  • Element Details

    • value

      String value
      The name of parameter. If empty, the field name will be used.
      Returns:
      the name of parameter.
      Default:
      ""
    • mode

      io.qameta.allure.model.Parameter.Mode mode
      The parameter mode. It controls how the value is displayed and does not exclude the parameter from history ID generation.
      Returns:
      the parameter mode.
      Default:
      DEFAULT
    • excluded

      boolean excluded
      Set it to true to exclude the parameter from history ID generation.
      Returns:
      true if parameter is excluded, false otherwise.
      Default:
      false