Interface UsersAndGroups
- All Known Implementing Classes:
UsersAndGroupsImpl
public interface UsersAndGroups
Admin operations for users and groups.
- Since:
- v3.13
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified group.voidAdds a user with all fields set to username and email address as 'username'@example.com.voidAdds a user with specified values.voidAdds a user with specified values.voidaddUserToGroup(String userName, String groupName) Adds the specified user to the specified groupvoidaddUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress) Attempts to add a user with specified values, but does not verify that the add succeeded.voidaddUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress, boolean sendEmail) Attempts to add a user with specified values, but does not verify that the add succeeded.voiddeleteGroup(String groupname) Removes a group given the groupname.voiddeleteUser(String username) Removes a user given the username.gotoEditUser(String username) Navigate to the edit user page in the admin section for the given user.voidNavigate to the user browser page.voidgotoViewUser(String username) Navigate to the view user page in the admin section for the given user.voidremoveUserFromGroup(String userName, String groupName) Removes an user from a specified group.booleanuserExists(String username) Check if user with given username exists.
-
Method Details
-
addUser
Adds a user with all fields set to username and email address as 'username'@example.com. Brake the test if user exists.- Parameters:
username- The user to add.
-
userExists
Check if user with given username exists.- Parameters:
username- username to check.- Returns:
- true if the user exists; otherwise false.
-
addUser
Adds a user with specified values.- Parameters:
username- usernamepassword- user passwordfullname- user's fullnameemailAddress- email address of user
-
addUser
void addUser(String username, String password, String fullname, String emailAddress, boolean sendEmail) Adds a user with specified values.- Parameters:
username- usernamepassword- user passwordfullname- user's fullnameemailAddress- email address of usersendEmail- flag to send a notification email to the new user
-
addUserWithoutVerifyingResult
void addUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress) Attempts to add a user with specified values, but does not verify that the add succeeded. This is intended for use in tests that are specifically checking for failing conditions.- Parameters:
username- usernamepassword- user passwordfullname- user's fullnameemailAddress- email address of user
-
addUserWithoutVerifyingResult
void addUserWithoutVerifyingResult(String username, String password, String fullname, String emailAddress, boolean sendEmail) Attempts to add a user with specified values, but does not verify that the add succeeded. This is intended for use in tests that are specifically checking for failing conditions.- Parameters:
username- usernamepassword- user passwordfullname- user's fullnameemailAddress- email address of usersendEmail- flag to send a notification email to the new user
-
deleteUser
Removes a user given the username. This will throw an error if no user with the username exists.- Parameters:
username- The username of the user to delete.
-
deleteGroup
Removes a group given the groupname. This will throw an error if no group with that groupname exists.- Parameters:
groupname- The name of the group to delete.
-
gotoViewUser
Navigate to the view user page in the admin section for the given user.- Parameters:
username- The username of the user to view.
-
gotoUserBrowser
void gotoUserBrowser()Navigate to the user browser page. -
gotoEditUser
Navigate to the edit user page in the admin section for the given user.- Parameters:
username- The username of the user to edit.
-
addUserToGroup
Adds the specified user to the specified group- Parameters:
userName- the user to add.groupName- the group to join.
-
addGroup
Adds the specified group.- Parameters:
groupName- the name of the group to create.
-
removeUserFromGroup
Removes an user from a specified group.- Parameters:
userName- The name of the user to remove from the group.groupName- The name of the group to remove the user from.
-