com.atlassian.jira.functest.framework.navigation
Class IssueNavigatorNavigationImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.AbstractNavigationUtil
          extended by com.atlassian.jira.functest.framework.navigation.IssueNavigatorNavigationImpl
All Implemented Interfaces:
IssueNavigatorNavigation, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class IssueNavigatorNavigationImpl
extends AbstractNavigationUtil
implements IssueNavigatorNavigation

Navigate Issue Navigation functionality.

Since:
v3.13

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.navigation.IssueNavigatorNavigation
IssueNavigatorNavigation.BulkChangeOption, IssueNavigatorNavigation.NavigatorEditMode, IssueNavigatorNavigation.NavigatorMode
 
Field Summary
protected  Backdoor backdoor
           
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
IssueNavigatorNavigationImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void addColumnToIssueNavigator(String[] fieldNames)
          Adds the extra columns to the Issue Navigator
 BulkChangeWizard bulkChange(IssueNavigatorNavigation.BulkChangeOption bulkChangeOption)
          Initiate the bulk change wizard on the current search results.
 void bulkEditAllIssues()
           
 void clickEditModeFlipLink()
          Clicks the link that flips between simple and advanced navigator edit modes.
 void configureColumns()
           
 void createFilter(String jql)
           
 long createNewAndSaveAsFilter(SharedEntityInfo info, NavigatorSearch search)
          Create and save the passed search.
 void createSearch(NavigatorSearch search)
          Create a search with the passed parameters.
 IssueNavigatorNavigation createSearch(String jqlQuery)
          Switches the navigator into Advanced mode, and then executes the specified JQL query.
 void deleteFilter(long id)
          Delete the listed filter.
 void displayAllIssues()
          Executes quicksearch with no search string to return all issues
 void displayFullContentAllIssues()
           
 void displayPrintableAllIssues()
           
 void displayRssAllComments()
           
 void displayRssAllIssues()
           
 void displayXmlAllIssues()
           
 void editFilter(long id)
           
 void expandAllNavigatorSections()
          Expand all of the navigator sections.
 void expandNavigatorSection(String sectionId)
          Expand the passed navigator section.
 IssueNavigatorNavigation.NavigatorEditMode getCurrentEditMode()
          Returns the edit mode that issue navigator is in.
 IssueNavigatorNavigation.NavigatorMode getCurrentMode()
          Returns the mode that issue navigator is currently in.
 void goToConfigureColumns()
          Go to the configure columns screen.
 void gotoEditMode(IssueNavigatorNavigation.NavigatorEditMode editMode)
          Switch the navigator into Edit mode.
 IssueNavigatorNavigation.NavigatorMode gotoEditOrNewMode(IssueNavigatorNavigation.NavigatorEditMode mode)
          Switch to the passed edit mode in navigator.
 void gotoNavigator()
          Goes to the navigation section, or, if already in the section, does nothing.
 void gotoNewMode(IssueNavigatorNavigation.NavigatorEditMode navigatorEditMode)
          Switch the navigator into New mode.
 void gotoViewMode()
          Switch the navigator into View mode.
 void loadFilter(long id)
          Loads a filter in the issue navigator in summary mode.
 void loadFilter(long id, IssueNavigatorNavigation.NavigatorEditMode mode)
          Loads a filter in the issue navigator in edit mode.
 void modifySearch(NavigatorSearch search)
          Modify the current search.
 void restoreColumnDefaults()
          Restore the default columns in the Issue Navigator.
 IssueSearchPage runPrintableSearch(String jqlQuery)
           
 void runSearch()
          Run the current search.
 IssueSearchPage runSearch(String jqlQuery)
           
 List<String> runSimpleSearch(String jqlQuery)
          Safely run a search, ignoring errors and returning only the matching issue keys in the order that they were returned.
 void runXmlSearch(String jqlQuery, String... fields)
           
 long saveCurrentAsNewFilter(SharedEntityInfo info)
          Save the current search and new filter.
 long saveCurrentAsNewFilter(String name, String description, boolean favourite, Set<? extends TestSharingPermission> permissions)
          Save current search as new filter.
 long saveCurrentFilter()
          Save the current filter.
 void sortIssues(String field, String direction)
          Sort the Issues in the navigator
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractNavigationUtil
getNavigation
 
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
 

Field Detail

backdoor

protected Backdoor backdoor
Constructor Detail

IssueNavigatorNavigationImpl

public IssueNavigatorNavigationImpl(net.sourceforge.jwebunit.WebTester tester,
                                    JIRAEnvironmentData environmentData)
Method Detail

configureColumns

public void configureColumns()
Specified by:
configureColumns in interface IssueNavigatorNavigation

getCurrentMode

public IssueNavigatorNavigation.NavigatorMode getCurrentMode()
Description copied from interface: IssueNavigatorNavigation
Returns the mode that issue navigator is currently in.

Specified by:
getCurrentMode in interface IssueNavigatorNavigation
Returns:
the mode that issue navigator is currently in. Null if we can't work it out.

getCurrentEditMode

public IssueNavigatorNavigation.NavigatorEditMode getCurrentEditMode()
Description copied from interface: IssueNavigatorNavigation
Returns the edit mode that issue navigator is in.

Specified by:
getCurrentEditMode in interface IssueNavigatorNavigation
Returns:
the edit mode that issue navigator is in. Null if we can't work it out.

gotoNavigator

public void gotoNavigator()
Goes to the navigation section, or, if already in the section, does nothing.

Specified by:
gotoNavigator in interface IssueNavigatorNavigation

displayAllIssues

public void displayAllIssues()
Executes quicksearch with no search string to return all issues

Specified by:
displayAllIssues in interface IssueNavigatorNavigation

displayFullContentAllIssues

public void displayFullContentAllIssues()
Specified by:
displayFullContentAllIssues in interface IssueNavigatorNavigation

displayRssAllIssues

public void displayRssAllIssues()
Specified by:
displayRssAllIssues in interface IssueNavigatorNavigation

displayRssAllComments

public void displayRssAllComments()
Specified by:
displayRssAllComments in interface IssueNavigatorNavigation

displayXmlAllIssues

public void displayXmlAllIssues()
Specified by:
displayXmlAllIssues in interface IssueNavigatorNavigation

bulkEditAllIssues

public void bulkEditAllIssues()
Specified by:
bulkEditAllIssues in interface IssueNavigatorNavigation

displayPrintableAllIssues

public void displayPrintableAllIssues()
Specified by:
displayPrintableAllIssues in interface IssueNavigatorNavigation

sortIssues

public void sortIssues(String field,
                       String direction)
Description copied from interface: IssueNavigatorNavigation
Sort the Issues in the navigator

Specified by:
sortIssues in interface IssueNavigatorNavigation
Parameters:
field - The name of the field that should be used to sort the issues.
direction - a String representing the sorting direction. The allowed values are "ASC" or "DESC".

addColumnToIssueNavigator

public void addColumnToIssueNavigator(String[] fieldNames)
Description copied from interface: IssueNavigatorNavigation
Adds the extra columns to the Issue Navigator

Specified by:
addColumnToIssueNavigator in interface IssueNavigatorNavigation
Parameters:
fieldNames - The name of the field to be added as columns to the issue navigator.

restoreColumnDefaults

public void restoreColumnDefaults()
Description copied from interface: IssueNavigatorNavigation
Restore the default columns in the Issue Navigator.

Specified by:
restoreColumnDefaults in interface IssueNavigatorNavigation

runSearch

public void runSearch()
Description copied from interface: IssueNavigatorNavigation
Run the current search.

Specified by:
runSearch in interface IssueNavigatorNavigation

expandAllNavigatorSections

public void expandAllNavigatorSections()
Description copied from interface: IssueNavigatorNavigation
Expand all of the navigator sections.

Specified by:
expandAllNavigatorSections in interface IssueNavigatorNavigation

expandNavigatorSection

public void expandNavigatorSection(String sectionId)
Description copied from interface: IssueNavigatorNavigation
Expand the passed navigator section.

Specified by:
expandNavigatorSection in interface IssueNavigatorNavigation
Parameters:
sectionId - the section to expand.

bulkChange

public BulkChangeWizard bulkChange(IssueNavigatorNavigation.BulkChangeOption bulkChangeOption)
Description copied from interface: IssueNavigatorNavigation
Initiate the bulk change wizard on the current search results.

Specified by:
bulkChange in interface IssueNavigatorNavigation
Parameters:
bulkChangeOption - whether to bulk change all results or just the current page.
Returns:
an instance of the bulk change wizard which will be used to step through the wizard.

loadFilter

public void loadFilter(long id)
Description copied from interface: IssueNavigatorNavigation
Loads a filter in the issue navigator in summary mode.

Specified by:
loadFilter in interface IssueNavigatorNavigation
Parameters:
id - The id of the filter to load.

loadFilter

public void loadFilter(long id,
                       IssueNavigatorNavigation.NavigatorEditMode mode)
Description copied from interface: IssueNavigatorNavigation
Loads a filter in the issue navigator in edit mode.

Specified by:
loadFilter in interface IssueNavigatorNavigation
Parameters:
id - the id of the filter to load.
mode - the navigator edit mode to enter into.

gotoEditMode

public void gotoEditMode(IssueNavigatorNavigation.NavigatorEditMode editMode)
Description copied from interface: IssueNavigatorNavigation
Switch the navigator into Edit mode. The mode of the edit can be specified in the passed argument.

Specified by:
gotoEditMode in interface IssueNavigatorNavigation
Parameters:
editMode - the mode to load the navigator into. Null indicates that we should goto the current mode.

editFilter

public void editFilter(long id)
Specified by:
editFilter in interface IssueNavigatorNavigation

createFilter

public void createFilter(String jql)
Specified by:
createFilter in interface IssueNavigatorNavigation

clickEditModeFlipLink

public void clickEditModeFlipLink()
Description copied from interface: IssueNavigatorNavigation
Clicks the link that flips between simple and advanced navigator edit modes. Assumes we are currently "editing" a filer.

Specified by:
clickEditModeFlipLink in interface IssueNavigatorNavigation

gotoViewMode

public void gotoViewMode()
Description copied from interface: IssueNavigatorNavigation
Switch the navigator into View mode.

Specified by:
gotoViewMode in interface IssueNavigatorNavigation

runSearch

public IssueSearchPage runSearch(String jqlQuery)
Specified by:
runSearch in interface IssueNavigatorNavigation

runSimpleSearch

public List<String> runSimpleSearch(String jqlQuery)
Description copied from interface: IssueNavigatorNavigation
Safely run a search, ignoring errors and returning only the matching issue keys in the order that they were returned.

Specified by:
runSimpleSearch in interface IssueNavigatorNavigation
Parameters:
jqlQuery - the JQL query to run
Returns:
the list of values returned (never null)

runPrintableSearch

public IssueSearchPage runPrintableSearch(String jqlQuery)
Specified by:
runPrintableSearch in interface IssueNavigatorNavigation

runXmlSearch

public void runXmlSearch(String jqlQuery,
                         String... fields)
Specified by:
runXmlSearch in interface IssueNavigatorNavigation

createSearch

public IssueNavigatorNavigation createSearch(String jqlQuery)
Description copied from interface: IssueNavigatorNavigation
Switches the navigator into Advanced mode, and then executes the specified JQL query.

Specified by:
createSearch in interface IssueNavigatorNavigation
Parameters:
jqlQuery - the query to be executed
Returns:
this object

createSearch

public void createSearch(NavigatorSearch search)
Description copied from interface: IssueNavigatorNavigation
Create a search with the passed parameters.

Specified by:
createSearch in interface IssueNavigatorNavigation
Parameters:
search - the search to create.

modifySearch

public void modifySearch(NavigatorSearch search)
Description copied from interface: IssueNavigatorNavigation
Modify the current search.

Specified by:
modifySearch in interface IssueNavigatorNavigation
Parameters:
search - make the current search look like this.

createNewAndSaveAsFilter

public long createNewAndSaveAsFilter(SharedEntityInfo info,
                                     NavigatorSearch search)
Description copied from interface: IssueNavigatorNavigation
Create and save the passed search.

Specified by:
createNewAndSaveAsFilter in interface IssueNavigatorNavigation
Parameters:
info - the details of the search to create and save.
search - the search to create and save.
Returns:
the id of the search just created.

saveCurrentAsNewFilter

public long saveCurrentAsNewFilter(SharedEntityInfo info)
Description copied from interface: IssueNavigatorNavigation
Save the current search and new filter.

Specified by:
saveCurrentAsNewFilter in interface IssueNavigatorNavigation
Parameters:
info - information used to save the search.
Returns:
the id of the search just created.

saveCurrentAsNewFilter

public long saveCurrentAsNewFilter(String name,
                                   String description,
                                   boolean favourite,
                                   Set<? extends TestSharingPermission> permissions)
Description copied from interface: IssueNavigatorNavigation
Save current search as new filter.

Specified by:
saveCurrentAsNewFilter in interface IssueNavigatorNavigation
Parameters:
name - name of the search.
description - of the search.
favourite - should the search going to be saved as a favourite?
permissions - the share permissions to associate with the current search.
Returns:
the id of the search just created.

saveCurrentFilter

public long saveCurrentFilter()
Description copied from interface: IssueNavigatorNavigation
Save the current filter.

Specified by:
saveCurrentFilter in interface IssueNavigatorNavigation
Returns:
the id of the search just saved.

deleteFilter

public void deleteFilter(long id)
Description copied from interface: IssueNavigatorNavigation
Delete the listed filter.

Specified by:
deleteFilter in interface IssueNavigatorNavigation
Parameters:
id - the id of the filter to delete.

gotoNewMode

public void gotoNewMode(IssueNavigatorNavigation.NavigatorEditMode navigatorEditMode)
Description copied from interface: IssueNavigatorNavigation
Switch the navigator into New mode.

Specified by:
gotoNewMode in interface IssueNavigatorNavigation
Parameters:
navigatorEditMode - the editing mode to go into; may be null to use current.

gotoEditOrNewMode

public IssueNavigatorNavigation.NavigatorMode gotoEditOrNewMode(IssueNavigatorNavigation.NavigatorEditMode mode)
Description copied from interface: IssueNavigatorNavigation
Switch to the passed edit mode in navigator. If there is a current search it will move into IssueNavigatorNavigation.NavigatorMode.EDIT. If there is not current search it will move into IssueNavigatorNavigation.NavigatorMode.NEW.

Specified by:
gotoEditOrNewMode in interface IssueNavigatorNavigation
Parameters:
mode - the edit mode to switch into.
Returns:
the mode navigator switched into.

goToConfigureColumns

public void goToConfigureColumns()
Description copied from interface: IssueNavigatorNavigation
Go to the configure columns screen.

Specified by:
goToConfigureColumns in interface IssueNavigatorNavigation


Copyright © 2002-2014 Atlassian. All Rights Reserved.