|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.NavigationImpl
public class NavigationImpl
Implementation of Navigation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.Navigation |
|---|
Navigation.AdminSection |
| Field Summary | |
|---|---|
static String |
BUTTON_NEXT
|
static String |
PROJECT_PLUGIN_PREFIX
|
| Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
environmentData, FS, locators, logger, logIndentLevel, tester |
| Constructor Summary | |
|---|---|
NavigationImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData)
Note: if you need to construct this for an old-style JIRAWebTest, you may
want to consider using FuncTestHelperFactory instead. |
|
| 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 |
|
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)
|
|
|
gotoPage(Class<T> pageClass)
|
|
void |
gotoPage(String url)
Navigates to the given relative URL. |
|
|
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()
|
|
| Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.jira.testkit.client.log.FuncTestLogger |
|---|
log, log |
| Field Detail |
|---|
public static final String BUTTON_NEXT
public static final String PROJECT_PLUGIN_PREFIX
| Constructor Detail |
|---|
public NavigationImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData)
JIRAWebTest, you may
want to consider using FuncTestHelperFactory instead.
tester - the testerenvironmentData - the environment data| Method Detail |
|---|
public void login(String userName)
Navigation
login in interface NavigationuserName - the user name and password to login as
public void login(String userName,
String userPassword)
NavigationNote that this will assert that the login suceeded.
login in interface NavigationuserName - 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 Navigationpublic void logout()
Navigation
logout in interface Navigationpublic String getCurrentPage()
NavigationWebTester.gotoPage(java.lang.String).
getCurrentPage in interface Navigationpublic void clickLink(com.meterware.httpunit.WebLink webLink)
Navigation
clickLink 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 match
public void clickLinkInTableCell(com.meterware.httpunit.WebTable table,
int row,
int col,
String linkText)
Navigation
clickLinkInTableCell 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 link
public void clickLinkInTableCell(String tableId,
int row,
int col,
String linkText)
Navigation
clickLinkInTableCell 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)
Navigation
jiraLog in interface NavigationlogMessage - the message to logpublic void gotoDashboard()
Navigationdashboard().navigateTo().
gotoDashboard in interface Navigationpublic Dashboard dashboard()
Navigation
dashboard in interface Navigationpublic Workflows workflows()
workflows in interface Navigationpublic void clickOnNext()
Navigation
clickOnNext in interface Navigationpublic void gotoAdmin()
gotoAdmin in interface Navigationpublic void webSudoAuthenticate(String password)
Navigation
webSudoAuthenticate in interface Navigationpublic void webSudoAuthenticateUsingLastPassword()
Navigation
webSudoAuthenticateUsingLastPassword in interface Navigationpublic void disableWebSudo()
Navigation
disableWebSudo in interface Navigationpublic void gotoPage(String url)
NavigationNote 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.
gotoPage in interface Navigationurl - URL to navigate to.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 Navigationpublic void gotoResource(String resourcePath)
NavigationNavigates 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".
gotoResource in interface NavigationresourcePath - path to navigate to.public void gotoAdminSection(Navigation.AdminSection section)
Navigation
gotoAdminSection in interface Navigationsection - the section to navigate topublic void gotoCustomFields()
Navigation
gotoCustomFields in interface Navigationpublic void gotoWorkflows()
Navigation
gotoWorkflows in interface Navigation
public void runReport(Long projectId,
String reportKey)
Navigation
runReport in interface NavigationprojectId - 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 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)
Navigation
browseProject in interface NavigationprojectKey - the key of the project e.g. "HSP"
public void browseProjectTabPanel(String projectKey,
String tab)
Navigation
browseProjectTabPanel 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)
Navigation
browseComponentTabPanel 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)
Navigation
browseVersionTabPanel 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)
Navigation
browseComponentTabPanel 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)
Navigation
browseVersionTabPanel 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()
Navigation
manageFilters in interface Navigationpublic FilterNavigation filterPickerPopup()
filterPickerPopup in interface Navigationpublic UserProfile userProfile()
userProfile in interface Navigationpublic IssueNavigation issue()
Navigation
issue in interface NavigationIssueNavigationpublic void gotoFullContentView(String jql)
gotoFullContentView in interface Navigationpublic void gotoXmlView(String jql)
gotoXmlView in interface Navigationpublic IssueNavigatorNavigation issueNavigator()
Navigation
issueNavigator in interface NavigationIssueNavigatorNavigation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||