com.atlassian.confluence.selenium
Class AbstractSeleniumTest

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractEditorAutocompleteTester, AbstractEditorPropertyPanelTest, AbstractGadgetSeleniumTest, AbstractLinkBrowserTest, AbstractMoveDialogTester, AbstractMultimediaMacroTest, AbstractNotificationTest, ActivityStreamGadgetTest, AjaxNotificationErrorTest, AnonymousUserTest, AuthorFilteringOnSearchTest, BackupAdminTest, BlogEditorTest, CopyPasteFromViewToEditorTest, DocThemeSearchTest, DraftChangesTest, EasyUserInviteMailTest, EasyUserInviteTest, EditorAutocompleteMacroNotIExploreTest, EditorAutocompleteMacroTest, EditorAutocompleteTriggerNotIExploreTest, EditorCommentsTest, EditorDoubleClickToEditTest, EditorDraftsTest, EditorExternalLinkPropertyPanelTest, EditorInsertImageDialogNotIExploreTest, EditorInsertImageDialogTest, EditorLinkPropertyPanelNotIExploreTest, EditorLinkStyleTest, EditorPreviewTest, EditorRichTextTest, EditorSettingsTest, EditorTableToolbarTest, EditorTest, EditorThemeTest, EmbeddedImageTest, ExpandMacroTest, FavouritePagesMacroTest, FindSpaceAttachmentsJSPTest, FollowDisabledUserTest, FooterTest, GeneralConfigurationTest, GroupPickerTest, HeartbeatTest, KeyboardShortcutTest, LinkToImageTest, LinkToThisPageTest, MacroBrowserSmartFieldsTest, MacroBrowserTest, MarkupMacroBrowserTest, MoveNewPageTestDarkFeature, MovePageTest, OfficeConnectorMacroBrowserSmartFieldsTest, PageChildrenTest, PageNotFoundTest, PageOrderingTest, PagePermissionsDialogTest, PagePermissionsTest, PopularStreamTest, QuickNavigationTest, ScheduledJobAdminTest, SearchTest, SiteExportTest, SpacePermissionsTest, ThumbnailTest, TinyMceColorPickerTest, TinyMceConfluenceFormatTest, TinyMceEditingNotIExploreTest, TinyMceEmoticonTest, TinyMceInsertMenuTest, TinyMceMacroBrowserNotIExploreTest, TinyMceMacroBrowserTest, TinyMceNotIExploreTest, TinyMcePasteTest, TinyMceShortcutsTest, TinyMceTableTest, TinyMceToolbarNotIExploreTest, TinyMceToolbarTest, ToolsMenuFavouriteItemTest, UPMTest, UserFollowTest, UserHoverTest, UserPickerTest, UserStatusNotIExploreTest, WebSudoTest

public abstract class AbstractSeleniumTest
extends com.atlassian.confluence.junit3.JUnit3TimingTestCase


Field Summary
protected  User adminUser
           
protected  ConfluenceSeleniumAssertions assertThat
           
protected  ConfluenceSeleniumClient client
           
protected  ConfluenceRpc rpc
           
protected  int screenShotIndex
           
protected  Suite suite
           
protected  BlogPost testBlogPost
           
protected  Comment testComment
           
protected  TestData testData
           
protected  Group testGroup
           
protected  Attachment testImage
           
protected  Attachment testImage2
           
protected  Page testPage
           
protected  Space testSpace
           
protected  User testUser
           
protected  User testUserWithApostrophe
           
protected  UserManagementHelper userHelper
           
protected  Group users
           
 
Constructor Summary
AbstractSeleniumTest()
           
AbstractSeleniumTest(java.lang.String name)
           
 
Method Summary
protected  void captureScreenShot()
           
protected  void createTestData(ConfluenceRpc adminRpc)
          Subclasses can override this method to make changes to the server state with admin privileges.
protected  void runTest()
           
protected  void setAjsLogRendered(boolean rendered)
           
protected  void setAjsLogVisible(boolean visible)
           
protected  void setUp()
           
protected  void tearDown()
           
 
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
 

Field Detail

testData

protected final TestData testData

adminUser

protected final User adminUser

testUser

protected final User testUser

testUserWithApostrophe

protected final User testUserWithApostrophe

testGroup

protected final Group testGroup

testSpace

protected final Space testSpace

testPage

protected final Page testPage

testBlogPost

protected final BlogPost testBlogPost

testComment

protected final Comment testComment

testImage

protected final Attachment testImage

testImage2

protected final Attachment testImage2

users

protected final Group users

rpc

protected final ConfluenceRpc rpc

userHelper

protected UserManagementHelper userHelper

client

protected ConfluenceSeleniumClient client

assertThat

protected ConfluenceSeleniumAssertions assertThat

suite

protected Suite suite

screenShotIndex

protected int screenShotIndex
Constructor Detail

AbstractSeleniumTest

public AbstractSeleniumTest()

AbstractSeleniumTest

public AbstractSeleniumTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

createTestData

protected void createTestData(ConfluenceRpc adminRpc)
Subclasses can override this method to make changes to the server state with admin privileges.

Parameters:
adminRpc - rpc client with Admin user currently logged in

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

runTest

protected void runTest()
                throws java.lang.Throwable
Overrides:
runTest in class junit.framework.TestCase
Throws:
java.lang.Throwable

setAjsLogRendered

protected void setAjsLogRendered(boolean rendered)

setAjsLogVisible

protected void setAjsLogVisible(boolean visible)

captureScreenShot

protected void captureScreenShot()


Copyright © 2003-2014 Atlassian. All Rights Reserved.