org.xwiki.test.ui
Class PersistentTestContext

java.lang.Object
  extended by org.xwiki.test.ui.PersistentTestContext

public class PersistentTestContext
extends Object

This is a container for holding all of the information which should persist throughout all of the tests.

Since:
3.2M3
Version:
$Id: 44bcc0306d072a82972a5158c61196245220c3af $

Constructor Summary
PersistentTestContext()
          Starts an XWiki instance if not already started.
PersistentTestContext(PersistentTestContext toClone)
           
PersistentTestContext(XWikiExecutor executor)
          Don't start an XWiki instance, instead use an existing started instance.
 
Method Summary
 org.openqa.selenium.WebDriver getDriver()
           
 Map<String,Object> getProperties()
           
 PersistentTestContext getUnstoppable()
          Get a clone of this context which cannot be stopped by calling shutdown.
 TestUtils getUtil()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentTestContext

public PersistentTestContext()
                      throws Exception
Starts an XWiki instance if not already started.

Throws:
Exception

PersistentTestContext

public PersistentTestContext(XWikiExecutor executor)
                      throws Exception
Don't start an XWiki instance, instead use an existing started instance.

Throws:
Exception

PersistentTestContext

public PersistentTestContext(PersistentTestContext toClone)
Method Detail

getDriver

public org.openqa.selenium.WebDriver getDriver()

getUtil

public TestUtils getUtil()
Returns:
Utility class with functions not specific to any test or element.

shutdown

public void shutdown()
              throws Exception
Throws:
Exception

getProperties

public Map<String,Object> getProperties()

getUnstoppable

public PersistentTestContext getUnstoppable()
Get a clone of this context which cannot be stopped by calling shutdown. this is needed so that individual tests don't shutdown when AllTests ware being run.



Copyright © 2004-2013 XWiki. All Rights Reserved.