public class

ViewIssuePage

extends Object
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.page.ViewIssuePage

Class Overview

Contains helper methods for when you are on the View Issue Page

Summary

Public Constructors
ViewIssuePage(FuncTestHelperFactory funcTestHelperFactory)
Public Methods
boolean canVote()
boolean containsEditButton()
String getActiveTabId()
String getAssignee()
Returns the current value of the Assignee field as appearing on this View Issue Page.
String getAssigneeUsername()
String getCreatorUserName()
String getCustomFieldRelUsername(int customFieldId)
List<String> getCustomFieldRelUsernames(int customFieldId)
String getCustomFieldValue(int customFieldId)
Returns the current value of the custom field with the given ID.
Node getFieldNode(String fieldName)
Returns the DOM node of the named issue field as appearing on this View Issue Page.
String getFieldValue(String fieldName)
Returns the current value of the named issue field as appearing on this View Issue Page.
String getIssueId()
static String getRelUsername(Node node)
Extracts a single username from a "rel" attribute somewhere under the given node.
static List<String> getRelUsernames(Node node)
Extracts any number of usernames from the "rel" attributes somewhere under the given node
String getReporter()
Returns the current value of the Reporter field as appearing on this View Issue Page.
String getReporterUsername()
int getVoteCount()
int getWatcherCount()
boolean hasVoted()
boolean isWatching()
ViewIssuePage openTabWithId(String id)
ViewIssuePage toggleVote()
Clicks on the "vote-toggle" link.
ViewIssuePage toggleWatch()
Clicks on the "vote-toggle" link.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ViewIssuePage (FuncTestHelperFactory funcTestHelperFactory)

Public Methods

public boolean canVote ()

public boolean containsEditButton ()

public String getActiveTabId ()

Returns
  • the id of the currently active tab

public String getAssignee ()

Returns the current value of the Assignee field as appearing on this View Issue Page.

Returns
  • the current value of the Assignee field as appearing on this View Issue Page.

public String getAssigneeUsername ()

public String getCreatorUserName ()

public String getCustomFieldRelUsername (int customFieldId)

public List<String> getCustomFieldRelUsernames (int customFieldId)

public String getCustomFieldValue (int customFieldId)

Returns the current value of the custom field with the given ID. This is equivalent to calling getFieldValue("customfield_1234")

Returns
  • the current value of the custom field with the given ID.

public Node getFieldNode (String fieldName)

Returns the DOM node of the named issue field as appearing on this View Issue Page.

Returns
  • the DOM node of the named issue field as appearing on this View Issue Page.

public String getFieldValue (String fieldName)

Returns the current value of the named issue field as appearing on this View Issue Page.

Returns
  • the current value of the named issue field as appearing on this View Issue Page.

public String getIssueId ()

public static String getRelUsername (Node node)

Extracts a single username from a "rel" attribute somewhere under the given node.

Parameters
node the node to examine, which should be the value node for a single-user field
Returns
  • the single username found, or null if the value was not found or had multiple values

public static List<String> getRelUsernames (Node node)

Extracts any number of usernames from the "rel" attributes somewhere under the given node

Parameters
node the node to examine, which should be the value node for a single- or multiple-user field
Returns
  • a list of the usernames found (never null)

public String getReporter ()

Returns the current value of the Reporter field as appearing on this View Issue Page.

Returns
  • the current value of the Reporter field as appearing on this View Issue Page.

public String getReporterUsername ()

public int getVoteCount ()

public int getWatcherCount ()

public boolean hasVoted ()

public boolean isWatching ()

public ViewIssuePage openTabWithId (String id)

Parameters
id id of tab to open
Returns
  • a new ViewIssuePage if navigation took place, else this

public ViewIssuePage toggleVote ()

Clicks on the "vote-toggle" link.

Returns
  • the refreshed ViewIssuePage.

public ViewIssuePage toggleWatch ()

Clicks on the "vote-toggle" link.

Returns
  • the refreshed ViewIssuePage.