|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Navigation
An interface for navigating around JIRA
Method Summary | |
---|---|
void |
browseComponentTabPanel(String projectKey,
String componentName)
Navigates to Browse Component page of the specified component |
void |
browseComponentTabPanel(String projectKey,
String componentName,
String tab)
Navigates to the component tab panel for the specified component. |
void |
browseProject(String projectKey)
Navigates to the project's Browse page |
void |
browseProjectTabPanel(String projectKey,
String tab)
Navigates to the project tab panel for the specified project. |
void |
browseVersionTabPanel(String projectKey,
String versionName)
Navigates to Browse Version page of the specified component |
void |
browseVersionTabPanel(String projectKey,
String versionName,
String tab)
Navigates to the component tab panel for the specified component. |
void |
clickLink(com.meterware.httpunit.WebLink webLink)
Follows the URL in the given WebLink. |
void |
clickLinkInTableCell(String tableId,
int row,
int col,
String linkText)
Click on a link in a particular table cell with the given text. |
void |
clickLinkInTableCell(com.meterware.httpunit.WebTable table,
int row,
int col,
String linkText)
Click on a link in a particular table cell with the given text. |
void |
clickLinkWithExactText(String text)
Finds the first link on the page with the exact text and follows the URL. |
void |
clickOnNext()
Clicks on the 'Next' button (useful for bulk edits and such) |
Dashboard |
dashboard()
Navigates to the dashboard, returning it. |
void |
disableWebSudo()
Historically this connected to a REST endpoint in the jira-functest-plugin to disable WebSudo Currently this does nothing |
FilterNavigation |
filterPickerPopup()
|
String |
getCurrentPage()
Returns the relative path of the current page. |
void |
gotoAdmin()
Navigates to the admin section |
void |
gotoAdminSection(String linkId)
Navigates to a particular page of the admin section |
void |
gotoCustomFields()
Navigates to the 'Custom Fields' page in the administration section |
void |
gotoDashboard()
Goto the current user's dashboard. |
void |
gotoPage(String url)
Navigates to the given relative URL. |
void |
gotoResource(String resourcePath)
Navigates to the relative resource path. |
void |
gotoWorkflows()
Navigates to the workflows table in the admin section |
IssueNavigation |
issue()
Access API to navigate through issues. |
IssueNavigatorNavigation |
issueNavigator()
Access API to navigate through issue navigator. |
void |
jiraLog(String logMessage)
Writes the specified message to the atlassian-jira.log on the server side. |
void |
login(String userName)
This assumes the standard JIRA test behaviour of having the user name the same value as the password |
void |
login(String userName,
String userPassword)
Login the given user. |
void |
login(String userName,
String userPassword,
boolean useCookie)
|
void |
loginAttempt(String userName,
String userPassword)
Attempts to login the given user without asserting success. |
void |
loginUsingForm(String userName,
String userPassword)
|
void |
loginUsingForm(String userName,
String userPassword,
boolean useCookie,
boolean assertSuccess)
Login by navigating to the Dashboard and filling out the login form and submitting it |
void |
loginUsingURLParameters(String userName,
String userPassword,
boolean useCookie)
Login by adding parameters to the Dashboard URL e.g. |
void |
logout()
Logout current user. |
FilterNavigation |
manageFilters()
Go to the 'Manage filters' screen. |
void |
runReport(Long projectId,
String reportKey)
Run the given report for the given project |
void |
runReport(Long projectId,
String reportKey,
Long filterId,
String mapper)
Run the given report for the given project using the given mapper |
UserProfile |
userProfile()
|
void |
webSudoAuthenticate(String password)
Checks if we have been redirected to the websudo login form and logs in. |
void |
webSudoAuthenticateUsingLastPassword()
Checks if we have been redirected to the websudo login form and logs in using the last password |
Workflows |
workflows()
|
Method Detail |
---|
void login(String userName)
userName
- the user name and password to login asvoid login(String userName, String userPassword)
Note that this will assert that the login suceeded.
userName
- the user name and password to login asloginAttempt(String, String)
void login(String userName, String userPassword, boolean useCookie)
void loginUsingURLParameters(String userName, String userPassword, boolean useCookie)
userName
- userPassword
- useCookie
- void loginUsingForm(String userName, String userPassword, boolean useCookie, boolean assertSuccess)
userName
- userPassword
- useCookie
- assertSuccess
- void loginUsingForm(String userName, String userPassword)
void loginAttempt(String userName, String userPassword)
userName
- userPassword
- void logout()
String getCurrentPage()
WebTester.gotoPage(java.lang.String)
.
void clickLink(com.meterware.httpunit.WebLink webLink)
webLink
- WebLinkvoid clickLinkWithExactText(String text)
WebTester.clickLinkWithText(String)
as it does an exact text match, but
also no onclick events are fired. It simply follows the URL specified by the link tag.
text
- the text of the link to matchvoid clickLinkInTableCell(String tableId, int row, int col, String linkText)
tableId
- The id of the table whose link we're clickingrow
- The table row that contains the linkcol
- The table column that contains the linklinkText
- The text of the linkvoid clickLinkInTableCell(com.meterware.httpunit.WebTable table, int row, int col, String linkText)
table
- The table whose link we're clickingrow
- The table row that contains the linkcol
- The table column that contains the linklinkText
- The text of the linkvoid jiraLog(String logMessage)
logMessage
- the message to logvoid gotoPage(String url)
Note that the "base URL" is automatically prepended to the given URL including the context. eg: If the URL on your dev machine is "http://localhost:8091/jira/secure/Signup!default.jspa", then you would supply "secure/Signup!default.jspa" as the URL parameter to this method.
url
- URL to navigate to.void gotoResource(String resourcePath)
Navigates to the relative resource path.
Note that the This method will prepend current location to the resource path, e.g. if the current location is "http://localhost:8091/jira/secure/Signup!default.jspa", and given resource is "Signout.jspa, the resulting URL will be "http://localhost:8091/jira/secure/Signout.jspa".
resourcePath
- path to navigate to.void gotoDashboard()
dashboard().navigateTo()
.
void gotoAdmin()
void webSudoAuthenticate(String password)
password
- void webSudoAuthenticateUsingLastPassword()
void disableWebSudo()
void gotoAdminSection(String linkId)
linkId
- the link id of the admin sectionvoid gotoCustomFields()
void gotoWorkflows()
void runReport(Long projectId, String reportKey)
projectId
- The id of the projectreportKey
- The key of the report.void runReport(Long projectId, String reportKey, Long filterId, String mapper)
projectId
- The id of the projectreportKey
- The key of the reportfilterId
- The filter id used for the reportmapper
- The mapper used for the report (e.g. "labels")void browseProject(String projectKey)
projectKey
- the key of the project e.g. "HSP"void browseProjectTabPanel(String projectKey, String tab)
projectKey
- the key of the project e.g. "HSP"tab
- the key of the project tab panel e.g. "summary", "issues", "changelog", "popularissues", etc.void browseComponentTabPanel(String projectKey, String componentName, String tab)
projectKey
- the key of the project e.g. "HSP"componentName
- the name of the component e.g. "New Component 1"tab
- the key of the project tab panel e.g. "summary", "issues", "changelog", "popularissues", etc.void browseVersionTabPanel(String projectKey, String versionName, String tab)
projectKey
- the key of the project e.g. "HSP"versionName
- the name of the version e.g. "New Version 1"tab
- the key of the project tab panel e.g. "summary", "issues", "changelog", "popularissues", etc.void browseComponentTabPanel(String projectKey, String componentName)
projectKey
- the key of the project e.g. "HSP"componentName
- the name of the component e.g. "New Component 1"void browseVersionTabPanel(String projectKey, String versionName)
projectKey
- the key of the project e.g. "HSP"versionName
- the name of the version e.g. "New Version 1"FilterNavigation manageFilters()
IssueNavigation issue()
IssueNavigation
IssueNavigatorNavigation issueNavigator()
IssueNavigatorNavigation
FilterNavigation filterPickerPopup()
UserProfile userProfile()
Dashboard dashboard()
Workflows workflows()
void clickOnNext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |