public interface Navigation
Modifier and Type | Interface and Description |
---|---|
static class |
Navigation.AdminSection |
Modifier and Type | Method and Description |
---|---|
<T extends WebTestPage> |
bindPage(Class<T> pageClass) |
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 |
clickLinkWithPost(com.meterware.httpunit.WebLink webLink)
Follows the URL in the given WebLink using PostMethodWebRequest with body containing XSRF token only.
|
void |
clickLinkWithPost(com.meterware.httpunit.WebLink webLink,
InputStream bodyInputStream)
Follows the URL in the given WebLink using PostMethodWebRequest with body defined by bodyInputStream.
|
void |
clickOnNext()
Clicks on the 'Next' button (useful for bulk edits and such)
|
CommentNavigation |
comment()
Access API to navigate through comments.
|
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(Navigation.AdminSection section)
Navigates to a particular AdminSection.
|
void |
gotoCustomFields()
Navigates to the 'Custom Fields' page in the administration section
|
void |
gotoDashboard()
Goto the current user's dashboard.
|
void |
gotoFullContentView(String jql) |
<T extends WebTestPage> |
gotoPage(Class<T> pageClass) |
void |
gotoPage(String url)
Navigates to the given relative URL.
|
<T extends WebTestPage> |
gotoPageWithParams(Class<T> pageClass,
String params) |
void |
gotoResource(String resourcePath)
Navigates to the relative resource path.
|
void |
gotoWorkflows()
Navigates to the workflows table in the admin section
|
void |
gotoXmlView(String jql) |
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
|
void |
sendPostRequest(String url,
InputStream bodyInputStream)
Visits the site with POST method.
|
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() |
void login(String userName)
userName
- the user name and password to login asvoid login(String userName, String userPassword)
userName
- the user name and password to login asloginAttempt(String, String)
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 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 clickLinkWithPost(com.meterware.httpunit.WebLink webLink, InputStream bodyInputStream)
webLink
- WebLinkbodyInputStream
- POST request bodyvoid clickLinkWithPost(com.meterware.httpunit.WebLink webLink)
webLink
- WebLinkvoid sendPostRequest(String url, InputStream bodyInputStream)
url
- relative url to visitbodyInputStream
- input stream sent as request bodyvoid 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)
url
- URL to navigate to.<T extends WebTestPage> T bindPage(Class<T> pageClass)
<T extends WebTestPage> T gotoPage(Class<T> pageClass)
<T extends WebTestPage> T gotoPageWithParams(Class<T> pageClass, String params)
void gotoResource(String resourcePath)
resourcePath
- path to navigate to.void gotoDashboard()
dashboard().navigateTo()
.void gotoAdmin()
void webSudoAuthenticate(String password)
password
- void webSudoAuthenticateUsingLastPassword()
void disableWebSudo()
void gotoAdminSection(Navigation.AdminSection section)
section
- the section to navigate tovoid 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", 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", 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", 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
CommentNavigation comment()
CommentNavigation
void gotoFullContentView(String jql)
void gotoXmlView(String jql)
IssueNavigatorNavigation issueNavigator()
IssueNavigatorNavigation
FilterNavigation filterPickerPopup()
UserProfile userProfile()
Dashboard dashboard()
Workflows workflows()
void clickOnNext()
Copyright © 2002-2024 Atlassian. All Rights Reserved.