com.atlassian.jira.webtest.selenium.auidialog
Class AbstractAuiDialogTest

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.auidialog.AbstractAuiDialogTest
All Implemented Interfaces:
EnvironmentAware, com.atlassian.performance.junit.PerformanceTest, junit.framework.Test
Direct Known Subclasses:
AbstractAuiLabelsDialogTest, TestAttachFile, TestCommentDialog, TestCommentToggling, TestCustomFieldsInDialogs, TestDeleteFilterDialog, TestDeleteIssue, TestDeletePortalPage, TestDialogInteractions, TestManageAttachments, TestUserProfileControls, TestWorkflowTransition, TestWorklogAndTimeTrackingToggle

Deprecated. use page objects instead

@Deprecated
public abstract class AbstractAuiDialogTest
extends JiraSeleniumTest

Abstract base class for AUI dialog testing.

Since:
v4.2

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest
JiraSeleniumTest.Check
 
Field Summary
protected static String BARE_DIALOG_CONTENT_SELECTOR
          Deprecated.  
protected static int DEFAULT_TIMEOUT
          Deprecated.  
protected static String DIALOG_FORM_SELECTOR_FORMAT
          Deprecated.  
protected static String VISIBLE_DIALOG_CONTENT_SELECTOR
          Deprecated.  
 
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
AbstractAuiDialogTest()
          Deprecated.  
 
Method Summary
protected  void assertAuiErrorMessage(String expectedText)
          Deprecated.  
protected  void assertDialogContainsAuiForm(String formId)
          Deprecated.  
protected  void assertDialogContainsText(String text)
          Deprecated.  
protected  void assertDialogIsOpenAndReady()
          Deprecated. Assert that the dialog under test is open and its content has been fully rendered.
protected  void assertDialogNotLoaded()
          Deprecated. Assert that no dialog has been yet loaded into the page.
protected  void assertDialogNotOpen()
          Deprecated. Assert that no dialog is currently open on the page.
protected  void assertFieldHasInlineError(String fieldName, String errorText)
          Deprecated.  
protected  void assertFormIsUndecorated()
          Deprecated.  
protected  void closeDialogByClickingCancel()
          Deprecated. Close dialog by clicking the 'Cancel' link.
protected  void closeDialogByEscape()
          Deprecated.  
protected static String defaultDialogSubmitSelector()
          Deprecated.  
 void onSetUp()
          Deprecated.  
protected  void onTearDown()
          Deprecated.  
protected  void submitDialog()
          Deprecated. Submit AUI dialog using its default submit button.
protected  void submitDialog(String submitButtonId)
          Deprecated. 
protected  void submitDialogAndWaitForAjax()
          Deprecated. Submit AUI dialog using its default submit button.
protected  void submitDialogAndWaitForReload()
          Deprecated. Submit AUI dialog using its default submit button.
protected  void submitDialogAndWaitForReload(String submitButtonId)
          Deprecated. Submit the open AUI dialog using a button with specific ID.
protected static String submitSelector(String buttonId)
          Deprecated.  
 
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

BARE_DIALOG_CONTENT_SELECTOR

protected static final String BARE_DIALOG_CONTENT_SELECTOR
Deprecated. 
See Also:
Constant Field Values

VISIBLE_DIALOG_CONTENT_SELECTOR

protected static final String VISIBLE_DIALOG_CONTENT_SELECTOR
Deprecated. 
See Also:
Constant Field Values

DIALOG_FORM_SELECTOR_FORMAT

protected static final String DIALOG_FORM_SELECTOR_FORMAT
Deprecated. 
See Also:
Constant Field Values

DEFAULT_TIMEOUT

protected static final int DEFAULT_TIMEOUT
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

AbstractAuiDialogTest

public AbstractAuiDialogTest()
Deprecated. 
Method Detail

onSetUp

public void onSetUp()
Deprecated. 
Overrides:
onSetUp in class JiraSeleniumTest

onTearDown

protected void onTearDown()
                   throws Exception
Deprecated. 
Overrides:
onTearDown in class com.atlassian.selenium.SeleniumTest
Throws:
Exception

submitSelector

protected static String submitSelector(String buttonId)
Deprecated. 

defaultDialogSubmitSelector

protected static String defaultDialogSubmitSelector()
Deprecated. 

assertDialogIsOpenAndReady

protected final void assertDialogIsOpenAndReady()
Deprecated. 
Assert that the dialog under test is open and its content has been fully rendered.


assertDialogNotLoaded

protected final void assertDialogNotLoaded()
Deprecated. 
Assert that no dialog has been yet loaded into the page.


assertDialogNotOpen

protected final void assertDialogNotOpen()
Deprecated. 
Assert that no dialog is currently open on the page.


assertDialogContainsText

protected final void assertDialogContainsText(String text)
Deprecated. 

assertDialogContainsAuiForm

protected final void assertDialogContainsAuiForm(String formId)
Deprecated. 

assertFieldHasInlineError

protected final void assertFieldHasInlineError(String fieldName,
                                               String errorText)
Deprecated. 

assertAuiErrorMessage

protected final void assertAuiErrorMessage(String expectedText)
Deprecated. 

closeDialogByClickingCancel

protected final void closeDialogByClickingCancel()
Deprecated. 
Close dialog by clicking the 'Cancel' link.


closeDialogByEscape

protected final void closeDialogByEscape()
Deprecated. 

submitDialog

protected final void submitDialog()
Deprecated. 
Submit AUI dialog using its default submit button. Use with dialogs that don't do requests on submit.


submitDialogAndWaitForReload

protected final void submitDialogAndWaitForReload()
Deprecated. 
Submit AUI dialog using its default submit button. Use with dialogs that trigger page reload on submit.


submitDialogAndWaitForAjax

protected final void submitDialogAndWaitForAjax()
Deprecated. 
Submit AUI dialog using its default submit button. Use with dialogs that trigger AJAX requests on submit.


submitDialog

@Deprecated
protected final void submitDialog(String submitButtonId)
Deprecated. 

Submit the open AUI dialog using a button with specific ID. Use with dialogs that don't do requests on submit.

Parameters:
submitButtonId - id of the submit button

submitDialogAndWaitForReload

protected final void submitDialogAndWaitForReload(String submitButtonId)
Deprecated. 
Submit the open AUI dialog using a button with specific ID. Use with dialogs that trigger page reload on submit.

Parameters:
submitButtonId - id of the submit button

assertFormIsUndecorated

protected final void assertFormIsUndecorated()
Deprecated. 


Copyright © 2002-2012 Atlassian. All Rights Reserved.