Class ViewIssuePage
java.lang.Object
com.atlassian.jira.functest.framework.page.ViewIssuePage
Contains helper methods for when you are on the View Issue Page
- Since:
- v6.0
-
Constructor Summary
ConstructorsConstructorDescriptionViewIssuePage(net.sourceforge.jwebunit.WebTester tester, LocatorFactory locators) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanVote()booleanReturns the current value of the Assignee field as appearing on this View Issue Page.getCustomFieldRelUsername(int customFieldId) getCustomFieldRelUsernames(int customFieldId) getCustomFieldValue(int customFieldId) Returns the current value of the custom field with the given ID.getFieldNode(String fieldName) Returns the DOM node of the named issue field as appearing on this View Issue Page.getFieldValue(String fieldName) Returns the current value of the named issue field as appearing on this View Issue Page.static StringgetRelUsername(Node node) Extracts a single username from a "rel" attribute somewhere under the given node.getRelUsernames(Node node) Extracts any number of usernames from the "rel" attributes somewhere under the given nodeReturns the current value of the Reporter field as appearing on this View Issue Page.intintbooleanhasVoted()booleanopenTabWithId(String id) Clicks on the "vote-toggle" link.Clicks on the "vote-toggle" link.
-
Constructor Details
-
ViewIssuePage
-
-
Method Details
-
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.
-
getAssigneeUsername
-
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.
-
getReporterUsername
-
getCreatorUserName
-
openTabWithId
- Parameters:
id- id of tab to open- Returns:
- a new ViewIssuePage if navigation took place, else this
-
getActiveTabId
- Returns:
- the id of the currently active tab
-
getIssueId
-
getFieldValue
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.
-
getFieldNode
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.
-
getRelUsername
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
nullif the value was not found or had multiple values
-
getRelUsernames
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)
-
getCustomFieldValue
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.
-
getCustomFieldRelUsername
-
getCustomFieldRelUsernames
-
hasVoted
public boolean hasVoted() -
getVoteCount
public int getVoteCount() -
toggleVote
Clicks on the "vote-toggle" link.- Returns:
- the refreshed ViewIssuePage.
-
canVote
public boolean canVote() -
isWatching
public boolean isWatching() -
getWatcherCount
public int getWatcherCount() -
toggleWatch
Clicks on the "vote-toggle" link.- Returns:
- the refreshed ViewIssuePage.
-
containsEditButton
public boolean containsEditButton()
-