public class NavigationImpl extends Object implements Navigation
NavigationNavigation.AdminSection| Modifier and Type | Field and Description |
|---|---|
static String |
BUTTON_NEXT |
static String |
PROJECT_PLUGIN_PREFIX |
| Constructor and Description |
|---|
NavigationImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData)
Deprecated.
|
NavigationImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
FuncPageObjectBinder binder) |
| 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
|
void |
doLogin(String userName,
String userPassword,
boolean useCookie,
boolean assertSuccess) |
FilterNavigation |
filterPickerPopup() |
String |
getCurrentPage()
Returns the relative path of the current page.
|
void |
gotoAdmin()
Goes to the admin section, or, if already in the admin section, does nothing.
|
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() |
public static final String BUTTON_NEXT
public static final String PROJECT_PLUGIN_PREFIX
public NavigationImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData)
tester - the testerenvironmentData - the environment data@Inject
public NavigationImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
FuncPageObjectBinder binder)
public void login(String userName)
Navigationlogin in interface NavigationuserName - the user name and password to login aspublic void login(String userName, String userPassword)
Navigationlogin in interface NavigationuserName - the user name and password to login asNavigation.loginAttempt(String, String)public void loginAttempt(String userName, String userPassword)
NavigationloginAttempt in interface Navigationpublic void login(String userName, String userPassword, boolean useCookie)
login in interface Navigationpublic void doLogin(String userName, String userPassword, boolean useCookie, boolean assertSuccess)
public void loginUsingForm(String userName, String userPassword)
loginUsingForm in interface Navigationpublic void loginUsingForm(String userName, String userPassword, boolean useCookie, boolean assertSuccess)
NavigationloginUsingForm in interface Navigationpublic void loginUsingURLParameters(String userName, String userPassword, boolean useCookie)
NavigationloginUsingURLParameters in interface Navigationpublic void logout()
Navigationlogout in interface Navigationpublic String getCurrentPage()
NavigationWebTester.gotoPage(java.lang.String).getCurrentPage in interface Navigationpublic void clickLink(com.meterware.httpunit.WebLink webLink)
NavigationclickLink in interface NavigationwebLink - WebLinkpublic void clickLinkWithPost(com.meterware.httpunit.WebLink webLink,
InputStream bodyInputStream)
NavigationclickLinkWithPost in interface NavigationwebLink - WebLinkbodyInputStream - POST request bodypublic void sendPostRequest(String url, InputStream bodyInputStream)
NavigationsendPostRequest in interface Navigationurl - relative url to visitbodyInputStream - input stream sent as request bodypublic void clickLinkWithPost(com.meterware.httpunit.WebLink webLink)
NavigationclickLinkWithPost in interface NavigationwebLink - WebLinkpublic void clickLinkWithExactText(String text)
NavigationWebTester.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.clickLinkWithExactText in interface Navigationtext - the text of the link to matchpublic void clickLinkInTableCell(com.meterware.httpunit.WebTable table,
int row,
int col,
String linkText)
NavigationclickLinkInTableCell in interface Navigationtable - 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 linkpublic void clickLinkInTableCell(String tableId, int row, int col, String linkText)
NavigationclickLinkInTableCell in interface NavigationtableId - 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 linkpublic void jiraLog(String logMessage)
NavigationjiraLog in interface NavigationlogMessage - the message to logpublic void gotoDashboard()
Navigationdashboard().navigateTo().gotoDashboard in interface Navigationpublic Dashboard dashboard()
Navigationdashboard in interface Navigationpublic Workflows workflows()
workflows in interface Navigationpublic void clickOnNext()
NavigationclickOnNext in interface Navigationpublic void gotoAdmin()
gotoAdmin in interface Navigationpublic void webSudoAuthenticate(String password)
NavigationwebSudoAuthenticate in interface Navigationpublic void webSudoAuthenticateUsingLastPassword()
NavigationwebSudoAuthenticateUsingLastPassword in interface Navigationpublic void disableWebSudo()
NavigationdisableWebSudo in interface Navigationpublic void gotoPage(String url)
NavigationgotoPage in interface Navigationurl - URL to navigate to.public <T extends WebTestPage> T bindPage(Class<T> pageClass)
bindPage in interface Navigationpublic <T extends WebTestPage> T gotoPage(Class<T> pageClass)
gotoPage in interface Navigationpublic <T extends WebTestPage> T gotoPageWithParams(Class<T> pageClass, String params)
gotoPageWithParams in interface Navigationpublic void gotoResource(String resourcePath)
NavigationgotoResource in interface NavigationresourcePath - path to navigate to.public void gotoAdminSection(Navigation.AdminSection section)
NavigationgotoAdminSection in interface Navigationsection - the section to navigate topublic void gotoCustomFields()
NavigationgotoCustomFields in interface Navigationpublic void gotoWorkflows()
NavigationgotoWorkflows in interface Navigationpublic void runReport(Long projectId, String reportKey)
NavigationrunReport in interface NavigationprojectId - The id of the projectreportKey - The key of the report.public void runReport(Long projectId, String reportKey, Long filterId, String mapper)
NavigationrunReport in interface NavigationprojectId - 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")public void browseProject(String projectKey)
NavigationbrowseProject in interface NavigationprojectKey - the key of the project e.g. "HSP"public void browseProjectTabPanel(String projectKey, String tab)
NavigationbrowseProjectTabPanel in interface NavigationprojectKey - the key of the project e.g. "HSP"tab - the key of the project tab panel e.g. "summary", "issues", "changelog", etc.public void browseComponentTabPanel(String projectKey, String componentName, String tab)
NavigationbrowseComponentTabPanel in interface NavigationprojectKey - 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.public void browseVersionTabPanel(String projectKey, String versionName, String tab)
NavigationbrowseVersionTabPanel in interface NavigationprojectKey - 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.public void browseComponentTabPanel(String projectKey, String componentName)
NavigationbrowseComponentTabPanel in interface NavigationprojectKey - the key of the project e.g. "HSP"componentName - the name of the component e.g. "New Component 1"public void browseVersionTabPanel(String projectKey, String versionName)
NavigationbrowseVersionTabPanel in interface NavigationprojectKey - the key of the project e.g. "HSP"versionName - the name of the version e.g. "New Version 1"public FilterNavigation manageFilters()
NavigationmanageFilters in interface Navigationpublic FilterNavigation filterPickerPopup()
filterPickerPopup in interface Navigationpublic UserProfile userProfile()
userProfile in interface Navigationpublic IssueNavigation issue()
Navigationissue in interface NavigationIssueNavigationpublic CommentNavigation comment()
Navigationcomment in interface NavigationCommentNavigationpublic void gotoFullContentView(String jql)
gotoFullContentView in interface Navigationpublic void gotoXmlView(String jql)
gotoXmlView in interface Navigationpublic IssueNavigatorNavigation issueNavigator()
NavigationissueNavigator in interface NavigationIssueNavigatorNavigationCopyright © 2002-2024 Atlassian. All Rights Reserved.