org.testatoo.config.testatoo
Class Testatoo

java.lang.Object
  extended by org.testatoo.config.testatoo.Testatoo

public final class Testatoo
extends java.lang.Object

Main entry point which creates a Testatoo handler given configuration modules.


Method Summary
static Testatoo configure(java.lang.Iterable<TestatooModule> testatooModules)
          Configure Testatoo by using given list of modules
static Testatoo configure(TestatooModule... testatooModules)
          Configure Testatoo by using given list of modules
static Testatoo configure(TestatooModules testatooModules)
          Configure Testatoo by using modules provided in this annotation
 void execute(org.aopalliance.intercept.MethodInvocation testInvocation)
          This method is called for each test invocation.
 void on(java.lang.Object o, java.lang.reflect.Method m)
           
 void start()
          Starts Testatoo.
 void stop()
          Stops Testatoo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configure

public static Testatoo configure(TestatooModules testatooModules)
Configure Testatoo by using modules provided in this annotation

Parameters:
testatooModules - Annotation containing the module class list
Returns:
The created Testatoo instance

configure

public static Testatoo configure(TestatooModule... testatooModules)
Configure Testatoo by using given list of modules

Parameters:
testatooModules - module list
Returns:
The created Testatoo instance

configure

public static Testatoo configure(java.lang.Iterable<TestatooModule> testatooModules)
Configure Testatoo by using given list of modules

Parameters:
testatooModules - module list
Returns:
The created Testatoo instance

start

public void start()
Starts Testatoo. This call will fire a start event to all listeners to start all containers, Selenium servers, Selenium sessions, WebDrivers, ...

usually, this method woul be called before all test of a class


stop

public void stop()
Stops Testatoo. This call will fire a stop event to all listeners to stop all containers, Selenium servers, Selenium sessions, WebDrivers, ...

usually, this method woul be called after all test of a class


on

public void on(java.lang.Object o,
               java.lang.reflect.Method m)

execute

public void execute(org.aopalliance.intercept.MethodInvocation testInvocation)
             throws java.lang.Throwable
This method is called for each test invocation. This will let Testatoo decide, with the given configuration, wheter the method is executed or not. By default, all methods are executed.

You can register an interceptor (in AOP, and Around Advice) when you configure Testatoo which will enabled you to execute some things before a test, after a test and decide wheter you want or not to execute the test.

Parameters:
testInvocation - The test invocation
Throws:
java.lang.Throwable - Any exception thrown by the tes execution
See Also:
LifeCycleConfig


Copyright © 2008-2010 Ovea. All Rights Reserved.