public class

UserProfileControl

extends BackdoorControl<T extends BackdoorControl<T>>
java.lang.Object
   ↳ com.atlassian.jira.testkit.client.RestApiClient<T extends com.atlassian.jira.testkit.client.RestApiClient<T>>
     ↳ com.atlassian.jira.testkit.client.BackdoorControl<T extends com.atlassian.jira.testkit.client.BackdoorControl<T>>
       ↳ com.atlassian.jira.functest.framework.backdoor.BackdoorControl<T extends com.atlassian.jira.functest.framework.backdoor.BackdoorControl<T>>
         ↳ com.atlassian.jira.functest.framework.backdoor.UserProfileControl

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.testkit.client.BackdoorControl
From class com.atlassian.jira.testkit.client.RestApiClient
[Expand]
Inherited Fields
From class com.atlassian.jira.testkit.client.BackdoorControl
From class com.atlassian.jira.testkit.client.RestApiClient
Public Constructors
UserProfileControl(JIRAEnvironmentData environmentData)
Public Methods
void 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 language
void changeUserNotificationType(String username, String format)
Changes the given user's email format to the one supplied.
String getAvatarUrl(String username)
List<String> getCustomAvatarIds(String username)
String getUserLanguage(String username)
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
From class com.atlassian.jira.testkit.client.BackdoorControl
From class com.atlassian.jira.testkit.client.RestApiClient
From class java.lang.Object

Public Constructors

public UserProfileControl (JIRAEnvironmentData environmentData)

Public Methods

public void changeUserAutoWatch (Boolean autoWatchValue, String username)

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.

public void changeUserLanguage (String username, String language)

Changes the given user's language to the supplied language

Parameters
username the user to change the email format for
language the language the user's profile will be updated to

public void changeUserNotificationType (String username, String format)

Changes the given user's email format to the one supplied.

Parameters
username the user to change the email format for
format either "html" or "text"

public String getAvatarUrl (String username)

public List<String> getCustomAvatarIds (String username)

public String getUserLanguage (String username)