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, AbstractNotificationTest, AjaxNotificationErrorTest, AuthorFilteringOnSearchTest, BackupAdminTest, CopyPasteFromViewToEditorTest, DraftChangesTest, EditorAutocompleteMacroNotIExploreTest, EditorAutocompleteMacroTest, EditorAutocompleteTriggerNotIExploreTest, EditorCommentsTest, EditorDraftsTest, EditorInsertImageDialogNotIExploreTest, EditorInsertImageDialogTest, EditorLinkPropertyPanelNotIExploreTest, EditorLinkStyleTest, EditorPreviewTest, EditorTableToolbarTest, EditorThemeTest, ExpandMacroTest, FavouritePagesMacroTest, FindSpaceAttachmentsJSPTest, FollowDisabledUserTest, FooterTest, GeneralConfigurationTest, GroupPickerTest, HeartbeatTest, KeyboardShortcutTest, LinkToImageTest, LinkToThisPageTest, MacroBrowserSmartFieldsTest, MacroBrowserTest, MarkupMacroBrowserTest, MoveNewPageTestDarkFeature, OfficeConnectorMacroBrowserSmartFieldsTest, PageChildrenTest, PageNotFoundTest, PageOrderingTest, PagePermissionsDialogTest, QuickNavigationTest, ScheduledJobAdminTest, SiteExportTest, SpacePermissionsTest, TinyMceConfluenceFormatTest, TinyMceEmoticonTest, TinyMceInsertMenuTest, TinyMceMacroBrowserNotIExploreTest, TinyMceMacroBrowserTest, TinyMceNotIExploreTest, TinyMcePasteTest, TinyMceShortcutsTest, TinyMceTableTest, ToolsMenuFavouriteItemTest, UPMTest, UserFollowTest, UserHoverTest, 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(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
 
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 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(String name)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
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 Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

runTest

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

setAjsLogRendered

protected void setAjsLogRendered(boolean rendered)

setAjsLogVisible

protected void setAjsLogVisible(boolean visible)

captureScreenShot

protected void captureScreenShot()


Copyright © 2003–2015 Atlassian. All rights reserved.