com.atlassian.confluence.selenium
Class EditorAutocompleteMediaShortcutTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.junit3.JUnit3TimingTestCase
              extended by com.atlassian.confluence.selenium.AbstractSeleniumTest
                  extended by com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
                      extended by com.atlassian.confluence.selenium.EditorAutocompleteMediaShortcutTest
All Implemented Interfaces:
junit.framework.Test

public class EditorAutocompleteMediaShortcutTest
extends AbstractEditorAutocompleteTester

Tests Media Autocomplete in the RTE. The autocomplete is fired by the shortcut key, not the trigger character, so these tests can run in IE.


Field Summary
 
Fields inherited from class com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
defaultUser, editor, editorAutocomplete, isAttachment, isComment, isCreatePage, searchText, shortCut, testContent, tinyMce
 
Fields inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
adminUser, assertThat, client, rpc, screenShotIndex, suite, testBlogPost, testComment, testData, testGroup, testImage, testImage2, testPage, testSpace, testUser, testUserWithApostrophe, userHelper, users
 
Constructor Summary
EditorAutocompleteMediaShortcutTest()
           
 
Method Summary
protected  void assertInsertedInRTE()
           
protected  void assertInView()
           
protected  void setUp()
           
protected  void setupWhenTestTypeKnown(long contentId, boolean isSearch)
           
 void testAnonymousUser()
           
 void testAttachmentSearchOnBlogpost()
           
 void testAttachmentSuggestionOnBlogpost()
           
 void testCloseWithClickOutsideRte()
           
 void testImageInsertViaDialog()
           
 void testInsertFromSuggestionWhenCreatingPage()
           
 void testInsertViewFileMacroFromAutocomplete()
           
 void testInsertViewFileMacroFromAutocompleteOnDraft()
           
 void testMultimediaMacroAutoCompleteAvi()
           
 void testMultimediaMacroAutoCompleteFlash()
           
 void testMultimediaMacroAutoCompleteMp3()
           
 void testMultimediaMacroAutoCompleteMp4()
           
 void testMultimediaMacroAutoCompleteWma()
           
 void testMultimediaMacroAutoCompleteWmv()
           
 void testOnlySuggestsTenImages()
           
 void testOpenMacroBrowserToMedia()
           
 void TESTXHTMLtestCloseScroll()
           
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractEditorAutocompleteTester
autocompleteSearchAndSelect, runAutocomplete, setAndSelectText, tearDown, testInsertFromSearchResultWhenCreatingBlogPost, testInsertFromSearchResultWhenCreatingComment, testInsertFromSearchResultWhenCreatingPage, testInsertFromSearchResultWhenEditingBlogPost, testInsertFromSearchResultWhenEditingComment, testInsertFromSearchResultWhenEditingPage, testInsertFromSuggestionWhenCreatingBlogPost, testInsertFromSuggestionWhenCreatingComment, testInsertFromSuggestionWhenEditingBlogPost, testInsertFromSuggestionWhenEditingComment, testInsertFromSuggestionWhenEditingPage, triggerWithShortcut
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
captureScreenShot, createTestData, runTest, setAjsLogRendered, setAjsLogVisible
 
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase
runBare, setExceptionTransformer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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
 

Constructor Detail

EditorAutocompleteMediaShortcutTest

public EditorAutocompleteMediaShortcutTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractEditorAutocompleteTester
Throws:
java.lang.Exception

setupWhenTestTypeKnown

protected void setupWhenTestTypeKnown(long contentId,
                                      boolean isSearch)
Specified by:
setupWhenTestTypeKnown in class AbstractEditorAutocompleteTester

assertInsertedInRTE

protected void assertInsertedInRTE()
Specified by:
assertInsertedInRTE in class AbstractEditorAutocompleteTester

assertInView

protected void assertInView()
Specified by:
assertInView in class AbstractEditorAutocompleteTester

testInsertFromSuggestionWhenCreatingPage

public void testInsertFromSuggestionWhenCreatingPage()
                                              throws java.lang.Exception
Overrides:
testInsertFromSuggestionWhenCreatingPage in class AbstractEditorAutocompleteTester
Throws:
java.lang.Exception

testInsertViewFileMacroFromAutocomplete

public void testInsertViewFileMacroFromAutocomplete()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testInsertViewFileMacroFromAutocompleteOnDraft

public void testInsertViewFileMacroFromAutocompleteOnDraft()

testOnlySuggestsTenImages

public void testOnlySuggestsTenImages()

testAttachmentSearchOnBlogpost

public void testAttachmentSearchOnBlogpost()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testAttachmentSuggestionOnBlogpost

public void testAttachmentSuggestionOnBlogpost()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testImageInsertViaDialog

public void testImageInsertViaDialog()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testAnonymousUser

public void testAnonymousUser()
                       throws java.lang.Exception
Throws:
java.lang.Exception

TESTXHTMLtestCloseScroll

public void TESTXHTMLtestCloseScroll()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testCloseWithClickOutsideRte

public void testCloseWithClickOutsideRte()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testMultimediaMacroAutoCompleteAvi

public void testMultimediaMacroAutoCompleteAvi()

testMultimediaMacroAutoCompleteMp3

public void testMultimediaMacroAutoCompleteMp3()

testMultimediaMacroAutoCompleteMp4

public void testMultimediaMacroAutoCompleteMp4()

testMultimediaMacroAutoCompleteFlash

public void testMultimediaMacroAutoCompleteFlash()

testMultimediaMacroAutoCompleteWma

public void testMultimediaMacroAutoCompleteWma()

testMultimediaMacroAutoCompleteWmv

public void testMultimediaMacroAutoCompleteWmv()

testOpenMacroBrowserToMedia

public void testOpenMacroBrowserToMedia()


Copyright © 2003-2014 Atlassian. All Rights Reserved.