com.atlassian.confluence.selenium
Class UPMTest

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

public class UPMTest
extends AbstractSeleniumTest


Field Summary
 
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
UPMTest(String name)
           
 
Method Summary
protected  void setUp()
           
 void testAllUPMTabsVisibleForSysAdmin()
           
 void testCanDisablePlugin()
          Test that you can disable and re-enable a system plugin via the UPM.
 void testManageExisting()
          Test that the UPM shows all the installed system plugins.
 void testOnlySomeUPMTabsVisibleForConfAdmin()
           
 void testUPMAvailable()
           
 void testUPMBrowsable()
          Test that each tab of the UPM is browsable and displays its tab title - simple test just to make sure it renders
 void testUserInstalledOverridesDisplayedInOnDemand()
          When running in OnDemand mode, some bundled plugins should be overridden to be displayed as "user installed" (see UpmInitialiser).
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
captureScreenShot, createTestData, createTestMailServer, runBare, runTest, setAjsLogRendered, setAjsLogVisible, stopTestMailServer, tearDown
 
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

UPMTest

public UPMTest(String name)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class AbstractSeleniumTest
Throws:
Exception

testUPMAvailable

public void testUPMAvailable()

testAllUPMTabsVisibleForSysAdmin

public void testAllUPMTabsVisibleForSysAdmin()

testOnlySomeUPMTabsVisibleForConfAdmin

public void testOnlySomeUPMTabsVisibleForConfAdmin()

testUserInstalledOverridesDisplayedInOnDemand

public void testUserInstalledOverridesDisplayedInOnDemand()
When running in OnDemand mode, some bundled plugins should be overridden to be displayed as "user installed" (see UpmInitialiser).


testUPMBrowsable

public void testUPMBrowsable()
Test that each tab of the UPM is browsable and displays its tab title - simple test just to make sure it renders


testManageExisting

public void testManageExisting()
Test that the UPM shows all the installed system plugins. Browse to the 'Manage Existing' tab and click the 'Show System Plugins' link. Verify that a select number of plugins are shown. This is a sanity test that will also exercise the UPM REST resources.


testCanDisablePlugin

public void testCanDisablePlugin()
Test that you can disable and re-enable a system plugin via the UPM. For JIRA I verified that the old plugin manager also showed the plugin as disabled. I think that it is also a good idea in this test to browse away from the UPM and then browse back to the 'Manage Existing' tab so that you can insure that none of the browsers under test are caching the REST responses and that the plugin list is being correctly generated each time you view the list.



Copyright © 2003-2012 Atlassian. All Rights Reserved.