com.atlassian.jira.webtest.selenium.browseprojects
Class AbstractTestBrowseProjects

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.selenium.SeleniumTest
              extended by com.atlassian.jira.webtest.selenium.JiraSeleniumTest
                  extended by com.atlassian.jira.webtest.selenium.browseprojects.AbstractTestBrowseProjects
All Implemented Interfaces:
EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
Direct Known Subclasses:
TestBrowseProjectControls, TestBrowseProjectNavigation, TestChangeLog

public abstract class AbstractTestBrowseProjects
extends JiraSeleniumTest

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
JiraSeleniumTest.Check
 
Field Summary
protected static String CHANGE_LOG
           
protected static String COMPONENT_PREFIX
           
protected static String COMPONENTS
           
protected static String DROP_DOWN_ID_SUFFIX
           
protected static String ISSUES
           
protected static int LOAD_WAIT
           
protected static Map<String,String> PANELS
           
protected static String POPULAR_ISSUES
           
protected static String ROAD_MAP
           
protected static String SUMMARY
           
protected static String VERSION_PREFIX
           
protected static String VERSIONS
           
 
Fields inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
ADMIN_PASSWORD, ADMIN_USERNAME, backdoor, DROP_DOWN_WAIT, environmentData, HSP_1, logger, MKY_1, PAGE_LOAD_WAIT, PAGE_LOAD_WAIT_TIME, PRESENT_TO_VISIBLE_DELAY, VK_DOWN, VK_ESC, VK_UP
 
Fields inherited from class com.atlassian.selenium.SeleniumTest
assertThat, client, config, recorder
 
Constructor Summary
AbstractTestBrowseProjects()
           
 
Method Summary
protected  void assertIsTab(String panelAssertion)
           
protected  String getLinkHref(String CSSselector)
           
protected  String getTriggerId(String panel)
           
protected  String getTriggerId(String panel, String prefix)
           
protected  String getWindowLocation()
          Gets current browser location
protected  void goToComponentPage()
           
protected  void goToPersonalRoadMapPage()
           
protected  void goToVersionsPage()
           
protected  boolean isVisible(String Id)
          Finds element by Id an checks wether it is displayed
protected  void loadAjaxTab(String panel)
          Clicks tabs and ensures everything is working asyncrously by checking the url for change
protected  void loadAjaxTab(String panelAssertion, String panelLinkId)
          Clicks tabs and ensures everything is working asyncrously by checking the url for change
protected  void loggedOutRedirect(String controlXPATH, String xsrfToken)
           
 void onSetUp()
           
 
Methods inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
assertFalse, assertFalse, assertTrue, assertTrue, backgroundLogout, context, getAdministration, getBackdoor, getEnvironmentData, getNavigator, getSeleniumConfiguration, getUserPreferences, getWebUnitTest, getXsrfToken, globalPages, internalSetup, isBeforeJdk15, isKickAssEnabled, isUserAgentFirefox, log, onTearDown, restoreBlankInstance, restoreData, restoreData, restoreData, restoreDataWithPluginsReload, restoreDataWithReplacedTokens, restoreI18nData, restoreUnsetupJIRA, restoreViaBackdoor, restoreViaBackdoorAndGoToDashboard, runBare, runBareTestCase, selectMainWindow, setEnvironmentData, setSeleniumTestListener, suiteFor, timeouts, turnOffProfiling, turnOnProfiling, visibleByTimeoutWithDelay, waitFor, waitForContentUpdate, waitForRestore
 
Methods inherited from class com.atlassian.selenium.SeleniumTest
getRecorder, getSeleniumClient, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Field Detail

PANELS

protected static final Map<String,String> PANELS

COMPONENT_PREFIX

protected static final String COMPONENT_PREFIX
See Also:
Constant Field Values

VERSION_PREFIX

protected static final String VERSION_PREFIX
See Also:
Constant Field Values

DROP_DOWN_ID_SUFFIX

protected static final String DROP_DOWN_ID_SUFFIX
See Also:
Constant Field Values

SUMMARY

protected static final String SUMMARY
See Also:
Constant Field Values

ISSUES

protected static final String ISSUES
See Also:
Constant Field Values

ROAD_MAP

protected static final String ROAD_MAP
See Also:
Constant Field Values

POPULAR_ISSUES

protected static final String POPULAR_ISSUES
See Also:
Constant Field Values

VERSIONS

protected static final String VERSIONS
See Also:
Constant Field Values

COMPONENTS

protected static final String COMPONENTS
See Also:
Constant Field Values

CHANGE_LOG

protected static final String CHANGE_LOG
See Also:
Constant Field Values

LOAD_WAIT

protected static final int LOAD_WAIT
See Also:
Constant Field Values
Constructor Detail

AbstractTestBrowseProjects

public AbstractTestBrowseProjects()
Method Detail

onSetUp

public void onSetUp()
Overrides:
onSetUp in class JiraSeleniumTest

loggedOutRedirect

protected void loggedOutRedirect(String controlXPATH,
                                 String xsrfToken)

isVisible

protected boolean isVisible(String Id)
Finds element by Id an checks wether it is displayed

Parameters:
Id - - HTML id of dropdown
Returns:
Whether or not the element is visible, by checking the css display property is not equal to none

getLinkHref

protected String getLinkHref(String CSSselector)

getWindowLocation

protected String getWindowLocation()
Gets current browser location

Returns:
url location of window

goToComponentPage

protected void goToComponentPage()

goToVersionsPage

protected void goToVersionsPage()

goToPersonalRoadMapPage

protected void goToPersonalRoadMapPage()

loadAjaxTab

protected void loadAjaxTab(String panelAssertion,
                           String panelLinkId)
Clicks tabs and ensures everything is working asyncrously by checking the url for change

Parameters:
panelAssertion - - HTML id of tab being clicked
panelLinkId - -

loadAjaxTab

protected void loadAjaxTab(String panel)
Clicks tabs and ensures everything is working asyncrously by checking the url for change

Parameters:
panel - - HTML id of tab being clicked

assertIsTab

protected void assertIsTab(String panelAssertion)

getTriggerId

protected String getTriggerId(String panel)

getTriggerId

protected String getTriggerId(String panel,
                              String prefix)


Copyright © 2002-2013 Atlassian. All Rights Reserved.