com.atlassian.confluence.selenium
Class SeleniumSetupTest

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

public class SeleniumSetupTest
extends junit.framework.TestCase

Setups up Confluence for Selenium tests.

A standard install is done through the setup wizard with a commercial license and the Functest Rpc plugin is installed.

This test also visits some pages after setup to cater for initial javascript load time and stop tests from intermittent failures.


Constructor Summary
SeleniumSetupTest()
           
 
Method Summary
static void installAllScriptsRunPlugin(ConfluenceRpc rpc)
          If necessary, installs a simple plugin which has a Javascript that will be the final one requested.
protected  void setUp()
           
 void testSeleniumSetup()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

SeleniumSetupTest

public SeleniumSetupTest()
Method Detail

installAllScriptsRunPlugin

public static void installAllScriptsRunPlugin(ConfluenceRpc rpc)
                                       throws java.lang.Exception
If necessary, installs a simple plugin which has a Javascript that will be the final one requested. If this script has run then you know all the other scripts on the page have also completed.

Throws:
java.lang.Exception

setUp

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

testSeleniumSetup

public void testSeleniumSetup()
                       throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.