public class NavigationImpl extends Object implements Navigation
Navigation
Navigation.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 |
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
|
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)
Navigation
login
in interface Navigation
userName
- the user name and password to login aspublic void login(String userName, String userPassword)
Navigation
login
in interface Navigation
userName
- the user name and password to login asNavigation.loginAttempt(String, String)
public void loginAttempt(String userName, String userPassword)
Navigation
loginAttempt
in interface Navigation
public void login(String userName, String userPassword, boolean useCookie)
login
in interface Navigation
public void doLogin(String userName, String userPassword, boolean useCookie, boolean assertSuccess)
public void loginUsingForm(String userName, String userPassword)
loginUsingForm
in interface Navigation
public void loginUsingForm(String userName, String userPassword, boolean useCookie, boolean assertSuccess)
Navigation
loginUsingForm
in interface Navigation
public void loginUsingURLParameters(String userName, String userPassword, boolean useCookie)
Navigation
loginUsingURLParameters
in interface Navigation
public void logout()
Navigation
logout
in interface Navigation
public String getCurrentPage()
Navigation
WebTester.gotoPage(java.lang.String)
.getCurrentPage
in interface Navigation
public void clickLink(com.meterware.httpunit.WebLink webLink)
Navigation
clickLink
in interface Navigation
webLink
- WebLinkpublic void clickLinkWithExactText(String text)
Navigation
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.clickLinkWithExactText
in interface Navigation
text
- the text of the link to matchpublic void clickLinkInTableCell(com.meterware.httpunit.WebTable table, int row, int col, String linkText)
Navigation
clickLinkInTableCell
in interface Navigation
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 linkpublic void clickLinkInTableCell(String tableId, int row, int col, String linkText)
Navigation
clickLinkInTableCell
in interface Navigation
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 linkpublic void jiraLog(String logMessage)
Navigation
jiraLog
in interface Navigation
logMessage
- the message to logpublic void gotoDashboard()
Navigation
dashboard().navigateTo()
.gotoDashboard
in interface Navigation
public Dashboard dashboard()
Navigation
dashboard
in interface Navigation
public Workflows workflows()
workflows
in interface Navigation
public void clickOnNext()
Navigation
clickOnNext
in interface Navigation
public void gotoAdmin()
gotoAdmin
in interface Navigation
public void webSudoAuthenticate(String password)
Navigation
webSudoAuthenticate
in interface Navigation
public void webSudoAuthenticateUsingLastPassword()
Navigation
webSudoAuthenticateUsingLastPassword
in interface Navigation
public void disableWebSudo()
Navigation
disableWebSudo
in interface Navigation
public void gotoPage(String url)
Navigation
gotoPage
in interface Navigation
url
- URL to navigate to.public <T extends WebTestPage> T bindPage(Class<T> pageClass)
bindPage
in interface Navigation
public <T extends WebTestPage> T gotoPage(Class<T> pageClass)
gotoPage
in interface Navigation
public <T extends WebTestPage> T gotoPageWithParams(Class<T> pageClass, String params)
gotoPageWithParams
in interface Navigation
public void gotoResource(String resourcePath)
Navigation
gotoResource
in interface Navigation
resourcePath
- path to navigate to.public void gotoAdminSection(Navigation.AdminSection section)
Navigation
gotoAdminSection
in interface Navigation
section
- the section to navigate topublic void gotoCustomFields()
Navigation
gotoCustomFields
in interface Navigation
public void gotoWorkflows()
Navigation
gotoWorkflows
in interface Navigation
public void runReport(Long projectId, String reportKey)
Navigation
runReport
in interface Navigation
projectId
- The id of the projectreportKey
- The key of the report.public void runReport(Long projectId, String reportKey, Long filterId, String mapper)
Navigation
runReport
in interface Navigation
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")public void browseProject(String projectKey)
Navigation
browseProject
in interface Navigation
projectKey
- the key of the project e.g. "HSP"public void browseProjectTabPanel(String projectKey, String tab)
Navigation
browseProjectTabPanel
in interface Navigation
projectKey
- 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)
Navigation
browseComponentTabPanel
in interface Navigation
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.public void browseVersionTabPanel(String projectKey, String versionName, String tab)
Navigation
browseVersionTabPanel
in interface Navigation
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.public void browseComponentTabPanel(String projectKey, String componentName)
Navigation
browseComponentTabPanel
in interface Navigation
projectKey
- 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)
Navigation
browseVersionTabPanel
in interface Navigation
projectKey
- the key of the project e.g. "HSP"versionName
- the name of the version e.g. "New Version 1"public FilterNavigation manageFilters()
Navigation
manageFilters
in interface Navigation
public FilterNavigation filterPickerPopup()
filterPickerPopup
in interface Navigation
public UserProfile userProfile()
userProfile
in interface Navigation
public IssueNavigation issue()
Navigation
issue
in interface Navigation
IssueNavigation
public CommentNavigation comment()
Navigation
comment
in interface Navigation
CommentNavigation
public void gotoFullContentView(String jql)
gotoFullContentView
in interface Navigation
public void gotoXmlView(String jql)
gotoXmlView
in interface Navigation
public IssueNavigatorNavigation issueNavigator()
Navigation
issueNavigator
in interface Navigation
IssueNavigatorNavigation
Copyright © 2002-2022 Atlassian. All Rights Reserved.