java.lang.Object | ||
↳ | com.atlassian.jira.functest.framework.AbstractFuncTestUtil | |
↳ | com.atlassian.jira.functest.framework.NavigationImpl |
Implementation of Navigation
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BUTTON_NEXT | ||||||||||
String | PROJECT_PLUGIN_PREFIX |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Note: if you need to construct this for an old-style
JIRAWebTest , you may
want to consider using FuncTestHelperFactory instead. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Navigates to Browse Component page of the specified component
| |||||||||||
Navigates to the component tab panel for the specified component.
| |||||||||||
Navigates to the project's Browse page
| |||||||||||
Navigates to the project tab panel for the specified project.
| |||||||||||
Navigates to Browse Version page of the specified component
| |||||||||||
Navigates to the component tab panel for the specified component.
| |||||||||||
Follows the URL in the given WebLink.
| |||||||||||
Click on a link in a particular table cell with the given text.
| |||||||||||
Click on a link in a particular table cell with the given text.
| |||||||||||
Finds the first link on the page with the exact text and follows the URL.
| |||||||||||
Clicks on the 'Next' button (useful for bulk edits and such)
| |||||||||||
Navigates to the dashboard, returning it.
| |||||||||||
Historically this connected to a REST endpoint in the jira-functest-plugin to disable WebSudo
Currently this does nothing
| |||||||||||
Returns the relative path of the current page.
| |||||||||||
Goes to the admin section, or, if already in the admin section, does nothing.
| |||||||||||
Navigates to a particular page of the admin section
| |||||||||||
Navigates to the 'Custom Fields' page in the administration section
| |||||||||||
Goto the current user's dashboard.
| |||||||||||
Navigates to the given relative URL.
| |||||||||||
Navigates to the relative resource path. | |||||||||||
Navigates to the workflows table in the admin section
| |||||||||||
Access API to navigate through issues.
| |||||||||||
Access API to navigate through issue navigator.
| |||||||||||
Writes the specified message to the atlassian-jira.log on the server side.
| |||||||||||
This assumes the standard JIRA test behaviour of having the user name the same value as the password
| |||||||||||
Login the given user.
| |||||||||||
Attempts to login the given user without asserting success.
| |||||||||||
Login by navigating to the Dashboard and filling out the login form and submitting it
| |||||||||||
Login by adding parameters to the Dashboard URL
e.g.
| |||||||||||
Logout current user.
| |||||||||||
Go to the 'Manage filters' screen.
| |||||||||||
Run the given report for the given project using the given mapper
| |||||||||||
Run the given report for the given project
| |||||||||||
Checks if we have been redirected to the websudo login form and logs in.
| |||||||||||
Checks if we have been redirected to the websudo login form and logs in using the last password
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.atlassian.jira.functest.framework.Navigation | |||||||||||
From interface
com.atlassian.jira.testkit.client.log.FuncTestLogger
|
Note: if you need to construct this for an old-style JIRAWebTest
, you may
want to consider using FuncTestHelperFactory
instead.
tester | the tester |
---|---|
environmentData | the environment data |
Navigates to Browse Component page of the specified component
projectKey | the key of the project e.g. "HSP" |
---|---|
componentName | the name of the component e.g. "New Component 1" |
Navigates to the component tab panel for the specified component.
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", etc. |
Navigates to the project's Browse page
projectKey | the key of the project e.g. "HSP" |
---|
Navigates to the project tab panel for the specified project.
projectKey | the key of the project e.g. "HSP" |
---|---|
tab | the key of the project tab panel e.g. "summary", "issues", "changelog", etc. |
Navigates to Browse Version page of the specified component
projectKey | the key of the project e.g. "HSP" |
---|---|
versionName | the name of the version e.g. "New Version 1" |
Navigates to the component tab panel for the specified component.
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", etc. |
Follows the URL in the given WebLink.
webLink | WebLink |
---|
Click on a link in a particular table cell with the given text.
tableId | The id of the table whose link we're clicking |
---|---|
row | The table row that contains the link |
col | The table column that contains the link |
linkText | The text of the link |
Click on a link in a particular table cell with the given text.
table | The table whose link we're clicking |
---|---|
row | The table row that contains the link |
col | The table column that contains the link |
linkText | The text of the link |
Finds the first link on the page with the exact text and follows the URL.
Note: This is not the same as 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 match |
---|
Clicks on the 'Next' button (useful for bulk edits and such)
Historically this connected to a REST endpoint in the jira-functest-plugin to disable WebSudo Currently this does nothing
Returns the relative path of the current page.
E.g. if currently at http://web.com:9999/jira/browse/HSP-1, this method will return "/browse/HSP-1".
Also caters for situations when no context path is set, e.g. http://standalone.com/browse/HSP-1.
Use this method with gotoPage(String)
.
Goes to the admin section, or, if already in the admin section, does nothing.
Navigates to a particular page of the admin section
linkId | the link id of the admin section |
---|
Navigates to the 'Custom Fields' page in the administration section
Goto the current user's dashboard. This is a quick way to call dashboard().navigateTo()
.
Navigates to the given relative 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. |
---|
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. |
---|
Navigates to the workflows table in the admin section
Access API to navigate through issue navigator.
Writes the specified message to the atlassian-jira.log on the server side. Works because we have a magic servlet ready for this log messages.
logMessage | the message to log |
---|
This assumes the standard JIRA test behaviour of having the user name the same value as the password
userName | the user name and password to login as |
---|
Login the given user.
Note that this will assert that the login suceeded.
userName | the user name and password to login as |
---|
Attempts to login the given user without asserting success.
Login by navigating to the Dashboard and filling out the login form and submitting it
Login by adding parameters to the Dashboard URL e.g. http://localhost:8090/jira/secure/Dashboard.jspa?os_username=admin&os_password=admin
Logout current user.
Go to the 'Manage filters' screen. Access API to navigate through issue filters.
Run the given report for the given project using the given mapper
projectId | The id of the project |
---|---|
reportKey | The key of the report |
filterId | The filter id used for the report |
mapper | The mapper used for the report (e.g. "labels") |
Run the given report for the given project
projectId | The id of the project |
---|---|
reportKey | The key of the report. |
Checks if we have been redirected to the websudo login form and logs in.
Checks if we have been redirected to the websudo login form and logs in using the last password