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(String name)
           
 
Method Summary
protected  void setUp()
           
 void testCanDisablePlugin()
          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 testOnlySomeUpmPagesVisibleForAdmin()
           
 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 testUpmLinksVisibleForSysAdmin()
           
 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, 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, 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()

testOnlySomeUpmPagesVisibleForAdmin

public void testOnlySomeUpmPagesVisibleForAdmin()

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 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()
                          throws 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:
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-2013 Atlassian. All Rights Reserved.