com.atlassian.jira.webtest.selenium.browseprojects
Class AbstractTestBrowseProjects
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.atlassian.selenium.SeleniumTest
com.atlassian.jira.webtest.selenium.JiraSeleniumTest
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
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 |
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 interface junit.framework.Test |
countTestCases, run |
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
AbstractTestBrowseProjects
public AbstractTestBrowseProjects()
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 clickedpanelLinkId
- -
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.