Class UserProfileControl
java.lang.Object
com.atlassian.jira.testkit.client.RestApiClient<UserProfileControl>
com.atlassian.jira.testkit.client.BackdoorControl<UserProfileControl>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<UserProfileControl>
com.atlassian.jira.functest.framework.backdoor.UserProfileControl
Use this class from func/selenium/page-object tests that need to manipulate User Profiles.
See UserProfileBackdoor for the code this plugs into at the back-end.
- Since:
- v5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.testkit.client.RestApiClient
com.atlassian.jira.testkit.client.RestApiClient.BackdoorLoggingFilter, com.atlassian.jira.testkit.client.RestApiClient.JsonMediaTypeFilter, com.atlassian.jira.testkit.client.RestApiClient.RestCall
-
Field Summary
Fields inherited from class com.atlassian.jira.testkit.client.BackdoorControl
API_REST_PATH, API_REST_VERSION, DEFAULT_REST_PATH, logger, rootPath
Fields inherited from class com.atlassian.jira.testkit.client.RestApiClient
REST_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeUserAutoWatch
(Boolean autoWatchValue, String username) Changes the given user's autowatch value.void
changeUserLanguage
(String username, String language) Changes the given user's language to the supplied languagevoid
changeUserNotificationType
(String username, String format) Changes the given user's email format to the one supplied.void
changeUserQuickSearchingMode
(String quickSearchingMode, String username) void
changeUserTimezone
(String username, String timezone) Changes the given user's timezone to the supplied timezonegetAvatarUrl
(String username) getCustomAvatarIds
(String username) getUserLanguage
(String username) long
getUserLoginCount
(String username) getUserTimezone
(String username) Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResource
Methods inherited from class com.atlassian.jira.testkit.client.BackdoorControl
createResourceForPath, createResourceForPath, get, getRestModulePath
Methods inherited from class com.atlassian.jira.testkit.client.RestApiClient
anonymous, authenticate, authoriseWithOAuth2, authoriseWithOAuth2, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getCredentialsProvider, getEnvironmentData, loginAs, loginAs, registerResponse, resourceRoot, resourceRoot, setOf, toResponse, toResponse, toResponse, withCredentialsProvider
-
Constructor Details
-
UserProfileControl
-
-
Method Details
-
changeUserNotificationType
Changes the given user's email format to the one supplied.- Parameters:
username
- the user to change the email format forformat
- either "html" or "text"
-
changeUserLanguage
Changes the given user's language to the supplied language- Parameters:
username
- the user to change the email format forlanguage
- the language the user's profile will be updated to
-
changeUserTimezone
Changes the given user's timezone to the supplied timezone- Parameters:
username
- the user to change the timezone fortimezone
- the timezone the user's profile will be updated to
-
changeUserAutoWatch
Changes the given user's autowatch value.- Parameters:
autoWatchValue
- autowatch value. Can pass null, no autowatch preference.username
- the user to change the autowatch value.
-
changeUserQuickSearchingMode
-
getAvatarUrl
-
getCustomAvatarIds
-
getUserLanguage
-
getUserTimezone
-
getUserLoginCount
-