com.atlassian.confluence.selenium
Class UPMTest

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.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(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
 void testCanDisableSystemPlugin()
          Test that you can disable and re-enable a system plugin via the UPM.
 void testLinkFromLanguagesPage()
          Test the marketplace is linked from the Languages page.
 void testLinkFromMacroBrowser()
          Test the marketplace is linked from the Macro Browser, as a user.
 void testLinkFromThemesPage()
          Test the marketplace is linked from the Themes page Ignored in CI, because it depends on the Marketplace availability.
 void testManageExisting()
          Test that the UPM shows all the installed system plugins.
 void testUPMAvailable()
           
 void testUPMAvailableForAdmin()
           
 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 testUpmLinksVisibleForSysAdmin()
           
 void testUserInstalledOverridesDisplayedInOnDemand()
          When running in OnDemand mode, some bundled plugins should be overridden to be displayed as "user installed" (see com.atlassian.studio.confluence.startup.UpmInitialiser).
 
Methods inherited from class com.atlassian.confluence.selenium.AbstractSeleniumTest
captureScreenShot, createTestData, runTest, setAjsLogRendered, setAjsLogVisible, 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
 

Constructor Detail

UPMTest

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

setUp

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

testUPMAvailable

public void testUPMAvailable()

testUPMAvailableForAdmin

public void testUPMAvailableForAdmin()

testUpmLinksVisibleForSysAdmin

public void testUpmLinksVisibleForSysAdmin()

testUserInstalledOverridesDisplayedInOnDemand

public void testUserInstalledOverridesDisplayedInOnDemand()
When running in OnDemand mode, some bundled plugins should be overridden to be displayed as "user installed" (see com.atlassian.studio.confluence.startup.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 with System filter selected. Verify that a select number of plugins are shown. This is a sanity test that will also exercise the UPM REST resources.


testCanDisableSystemPlugin

public void testCanDisableSystemPlugin()
                                throws java.lang.InterruptedException
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.

Throws:
java.lang.InterruptedException

testLinkFromMacroBrowser

public void testLinkFromMacroBrowser()
Test the marketplace is linked from the Macro Browser, as a user. Ignored in CI, because it depends on the Marketplace availability. Please test it when you upgrade UPM.


testLinkFromLanguagesPage

public void testLinkFromLanguagesPage()
Test the marketplace is linked from the Languages page. Ignored in CI, because it depends on the Marketplace availability. Please test it when you upgrade UPM.


testLinkFromThemesPage

public void testLinkFromThemesPage()
Test the marketplace is linked from the Themes page Ignored in CI, because it depends on the Marketplace availability. Please test it when you upgrade UPM.



Copyright © 2003-2014 Atlassian. All Rights Reserved.