Annotation Interface LoginAs


@Documented @Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface LoginAs
Performs logout and login before running annotated test (set of tests in class), if needed.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Username of user to log in as
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true then it will always logout and login in, not only when currently logged in user do not match
    Password of user to log in as
  • Element Details

    • value

      String value
      Username of user to log in as
    • password

      String password
      Password of user to log in as
      Default:
      ""
    • forceRelog

      boolean forceRelog
      If true then it will always logout and login in, not only when currently logged in user do not match
      Default:
      false