|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.page.ViewIssuePage
public class ViewIssuePage
Contains helper methods for when you are on the View Issue Page
Constructor Summary | |
---|---|
ViewIssuePage(FuncTestHelperFactory funcTestHelperFactory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewIssuePage(FuncTestHelperFactory funcTestHelperFactory)
Method Detail |
---|
public String getAssignee()
public String getAssigneeUsername()
public String getReporter()
public String getReporterUsername()
public String getCreatorUserName()
public ViewIssuePage openTabWithId(String id)
id
- id of tab to open
public String getActiveTabId()
public String getIssueId()
public String getFieldValue(String fieldName)
public Node getFieldNode(String fieldName)
public static String getRelUsername(Node node)
node
- the node to examine, which should be the value node for a single-user field
null
if the value was not found or had
multiple valuespublic static List<String> getRelUsernames(Node node)
node
- the node to examine, which should be the value node for a single- or
multiple-user field
null
)public String getCustomFieldValue(int customFieldId)
public String getCustomFieldRelUsername(int customFieldId)
public List<String> getCustomFieldRelUsernames(int customFieldId)
public boolean hasVoted()
public int getVoteCount()
public ViewIssuePage toggleVote()
public boolean canVote()
public boolean isWatching()
public int getWatcherCount()
public ViewIssuePage toggleWatch()
public boolean containsEditButton()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |