raccoon.api.eai.uitest
Interface IUnitTester

All Known Implementing Classes:
UiTester

public interface IUnitTester

The interface of a unit tester module.

Since:
Raccoon v0.7
Version:
$Id: IUnitTester.java,v 1.1 2004/08/08 20:25:56 crouvrais Exp $
Author:
Cedric ROUVRAIS

Method Summary
 int getNbUnitCase()
          The number of test contained in this instance.
 IUnitCaseResult run()
          Executes the test case that was defined during the invocation of setUp(int).
 void setUnitFile(java.lang.String pFileName)
          Defines the XML File that is to be used to configure this instance.
 void setUp(int pUnitCaseId)
          Prepares the system to execute the specified test case.
 void tearDown()
          Deactivates the current unit test.
 

Method Detail

setUnitFile

void setUnitFile(java.lang.String pFileName)
                 throws RaccoonException,
                        java.lang.IllegalArgumentException
Defines the XML File that is to be used to configure this instance.

Parameters:
pFileName - the name of the XML file to use.
Throws:
RaccoonException - if this component is already running: the component can't be changed. Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException - if the parameter is null, the message is obtained via MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)

getNbUnitCase

int getNbUnitCase()
The number of test contained in this instance.

Returns:
the number of unit cases in this instance.

setUp

void setUp(int pUnitCaseId)
           throws RaccoonException
Prepares the system to execute the specified test case.

Parameters:
pUnitCaseId - the id of the test case to execute
Throws:
RaccoonException - if this component isn't loaded.

run

IUnitCaseResult run()
                    throws RaccoonException
Executes the test case that was defined during the invocation of setUp(int).

Returns:
a HashMap where the key is the name of the UiTest and the value is the result of the execution of the test.
Throws:
RaccoonException - if setUp(int) wasn't invoked or if something went wrong.

tearDown

void tearDown()
              throws RaccoonException
Deactivates the current unit test.

Throws:
RaccoonException - if the tear down process fails.


Copyright null null. All Rights Reserved.