raccoon.core.uitest.data
Class UiCaseResult

java.lang.Object
  extended by raccoon.core.uitest.data.UiCaseResult
All Implemented Interfaces:
IUnitCaseResult

public class UiCaseResult
extends java.lang.Object
implements IUnitCaseResult

Contains the results of the execution of all the tests contained within a single case.

Since:
Raccoon v0.7
Version:
$Id: UiCaseResult.java,v 1.1 2004/08/08 20:19:18 crouvrais Exp $
Author:
Cedric ROUVRAIS

Constructor Summary
UiCaseResult()
           
 
Method Summary
 void addTestResult(IUnitTestResult pTestResult)
          Adds a new test result to the current list of results.
 boolean analyzeTests()
          Analyzes the results of the tests contained by this case.
 java.lang.String getCaseName()
          Retrieves the name of the case.
 int getCaseResult()
          The global result of this case.
 IUnitTestResult getTestResult(java.lang.String pTestName)
          Retrieves the result of the given test.
 java.util.Map getTestResults()
          Retrieves the results of the tests.
 void setCaseName(java.lang.String pCaseName)
          Assigns the name of the test case that this element represents.
 void setCaseResult(int pCaseResult)
          Defines the result associated to this case.
 void setTestResults(java.util.Map pTestResults)
          Defines the results of the tests contained by this case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UiCaseResult

public UiCaseResult()
Method Detail

getCaseName

public java.lang.String getCaseName()
Retrieves the name of the case.

Specified by:
getCaseName in interface IUnitCaseResult
Returns:
the name of the case for whic the results are represented by this instance.

setCaseName

public void setCaseName(java.lang.String pCaseName)
Assigns the name of the test case that this element represents.

Parameters:
pCaseName - the name of the case for which the results are contained by this instance.

getTestResults

public java.util.Map getTestResults()
Retrieves the results of the tests.

Specified by:
getTestResults in interface IUnitCaseResult
Returns:
a map of IUnitTestResult elements.

setTestResults

public void setTestResults(java.util.Map pTestResults)
Defines the results of the tests contained by this case.

Parameters:
pTestResults - a map where the key is the name of the test and the value an instance of IUnitTestResult

addTestResult

public void addTestResult(IUnitTestResult pTestResult)
Adds a new test result to the current list of results.

Specified by:
addTestResult in interface IUnitCaseResult
Parameters:
pTestResult - the result of the execution of the given test.

getTestResult

public IUnitTestResult getTestResult(java.lang.String pTestName)
Retrieves the result of the given test.

Specified by:
getTestResult in interface IUnitCaseResult
Parameters:
pTestName - the name of the test.
Returns:
the corresponding result.

getCaseResult

public int getCaseResult()
The global result of this case.

Specified by:
getCaseResult in interface IUnitCaseResult
Returns:
the worst result obtained during the execution of all the tests.

setCaseResult

public void setCaseResult(int pCaseResult)
Defines the result associated to this case.

Parameters:
pCaseResult - the result of the execution.

analyzeTests

public boolean analyzeTests()
Analyzes the results of the tests contained by this case.

If this instance filled in by invoking addTestResult(raccoon.api.eai.uitest.report.IUnitTestResult) then it isn't necessary to invoke this method.

Specified by:
analyzeTests in interface IUnitCaseResult
Returns:
true> if the results were correctly analyzed, false if there no tests.


Copyright null null. All Rights Reserved.