com.atlassian.jira.webtest.selenium.gadgets
Class BaseChartGadgetTest

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.gadgets.GadgetTest
                      extended by com.atlassian.jira.webtest.selenium.gadgets.BaseChartGadgetTest
All Implemented Interfaces:
EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
Direct Known Subclasses:
StatsTestBase, TestAverageAgeGadget, TestCreatedVsResolvedGadget, TestRecentlyCreatedGadget

public abstract class BaseChartGadgetTest
extends GadgetTest

Base class for testing the standard charts in gadgets

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 DAILY_PERIOD
           
protected static DateFormat DF_DAILY_CHART
           
protected static DateFormat DF_HOURLY_CHART
           
protected static DateFormat DF_MONTHLY_CHART
           
protected static DateFormat DF_QUARTERLY_CHART
           
protected static DateFormat DF_WEEKLY_CHART
           
protected static DateFormat DF_YEAR_CHART
           
protected static String HOURLY_PERIOD
           
protected static String MONTHLY_PERIOD
           
protected static String QUARTERLY_PERIOD
           
protected static String REFRESH_NEVER
           
protected static String WEEKLY_PERIOD
           
protected static String YEARLY_PERIOD
           
 
Fields inherited from class com.atlassian.jira.webtest.selenium.gadgets.GadgetTest
GADGET_DIRECTORY_TIMEOUT, openDropdownLocator, TIMEOUT, title
 
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
BaseChartGadgetTest()
           
 
Method Summary
 void _testAllPeriods(String gadgetName)
           
 void _testDailyPeriod(String gadgetName)
           
 void _testHourlyPeriod(String gadgetName)
           
 void _testMonthlyPeriod(String gadgetName)
           
 void _testQuarterlyPeriod(String gadgetName)
           
 void _testWeeklyPeriod(String gadgetName)
           
 void _testYearlyPeriod(String gadgetName)
           
protected  void assertDaysForPeriodValid()
           
protected  void gotoDashboard()
           
 
Methods inherited from class com.atlassian.jira.webtest.selenium.gadgets.GadgetTest
addColumnByName, addColumnByName, addGadget, addGadget, assertAutoComplete, assertDaysPreviouslyFieldPresent, assertFieldOptionLabelsPresent, assertFieldOptionValuePresent, assertFieldOptionValuesPresent, assertGadgetNotVisible, assertGadgetTitle, assertPeriodFieldPresent, assertRefreshIntervalFieldPresent, assertSelectFieldError, assertTextFieldError, clickConfigButton, clickRefreshButton, deleteColumnByValue, deleteColumnByValue, deleteGadget, getBaseUrl, loginAsAdmin, maximizeGadget, minimizeGadget, onSetUp, onTearDown, restoreGadgetData, selectByLabels, selectDashboardFrame, selectGadget, selectProjectOrFilterFromAutoComplete, setSelectField, setTextField, submitGadgetConfig, viewGadgetAsAnonymous, viewGadgetAsAnonymous, waitForGadgetConfiguration, waitForGadgetView
 
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, 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

DF_DAILY_CHART

protected static final DateFormat DF_DAILY_CHART

DF_HOURLY_CHART

protected static final DateFormat DF_HOURLY_CHART

DF_WEEKLY_CHART

protected static final DateFormat DF_WEEKLY_CHART

DF_MONTHLY_CHART

protected static final DateFormat DF_MONTHLY_CHART

DF_QUARTERLY_CHART

protected static final DateFormat DF_QUARTERLY_CHART

DF_YEAR_CHART

protected static final DateFormat DF_YEAR_CHART

DAILY_PERIOD

protected static final String DAILY_PERIOD
See Also:
Constant Field Values

HOURLY_PERIOD

protected static final String HOURLY_PERIOD
See Also:
Constant Field Values

WEEKLY_PERIOD

protected static final String WEEKLY_PERIOD
See Also:
Constant Field Values

MONTHLY_PERIOD

protected static final String MONTHLY_PERIOD
See Also:
Constant Field Values

QUARTERLY_PERIOD

protected static final String QUARTERLY_PERIOD
See Also:
Constant Field Values

YEARLY_PERIOD

protected static final String YEARLY_PERIOD
See Also:
Constant Field Values

REFRESH_NEVER

protected static final String REFRESH_NEVER
See Also:
Constant Field Values
Constructor Detail

BaseChartGadgetTest

public BaseChartGadgetTest()
Method Detail

_testAllPeriods

public void _testAllPeriods(String gadgetName)
                     throws InterruptedException
Throws:
InterruptedException

_testHourlyPeriod

public void _testHourlyPeriod(String gadgetName)

_testDailyPeriod

public void _testDailyPeriod(String gadgetName)

_testWeeklyPeriod

public void _testWeeklyPeriod(String gadgetName)

_testMonthlyPeriod

public void _testMonthlyPeriod(String gadgetName)

_testQuarterlyPeriod

public void _testQuarterlyPeriod(String gadgetName)

_testYearlyPeriod

public void _testYearlyPeriod(String gadgetName)

gotoDashboard

protected void gotoDashboard()

assertDaysForPeriodValid

protected void assertDaysForPeriodValid()


Copyright © 2002-2013 Atlassian. All Rights Reserved.