|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraccoon.core.uitest.data.UiTestResult
public class UiTestResult
Contains the result of a single test run.
| Field Summary |
|---|
| Fields inherited from interface raccoon.api.eai.uitest.report.IUnitTestResult |
|---|
ERROR, FAILED, SUCCESSFUL, WARNING |
| Constructor Summary | |
|---|---|
UiTestResult(int pResult,
long pExecutionTime)
Convenience constructor. |
|
| Method Summary | |
|---|---|
void |
addReceived(ReceivedMessage pReceived)
|
void |
addRecorded(java.lang.String pRecorded)
|
void |
addStillWaiting(java.lang.String pStillWaiting,
java.util.ArrayList pResultOfComparator)
Adds a still waiting for event |
long |
getExecutionTime()
The time (in milliseconds) it took for this test to run. |
java.lang.String |
getName()
Retrieves the name of the test this result corresponds to. |
java.util.ArrayList |
getReceived()
The list of received events |
IReceivedMessage |
getReceivedMessageAt(int pIndex)
Gets the expected message that was received at the specified index. |
java.util.List |
getReceivedMessages()
Retrieves the list of received expected messages. |
java.util.ArrayList |
getRecorded()
|
java.util.HashMap |
getStillWaiting()
The list of events that haven't been received. |
int |
getTestResult()
The result of the execution of the test. |
java.lang.String |
getUserMessage()
A message that is user friendly. |
int |
receivedMsgSize()
The number of expected messages that were received. |
void |
setExecutionTime(long pExecutionTime)
Defines the execution time |
void |
setMessage(java.lang.String pMessage)
Defines the result message of this test. |
void |
setName(java.lang.String pName)
Defines the name of the test associated to this result. |
void |
setReceived(java.util.ArrayList pReceived)
Defines the list of received events. |
void |
setRecorded(java.util.ArrayList pRecorded)
|
void |
setResult(int pResult)
Defines the result of this test |
void |
setStillWaiting(java.util.HashMap pStillWaiting)
Defines the list of still pending events. |
java.lang.String |
toString()
Generates a short string with the main elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UiTestResult(int pResult,
long pExecutionTime)
pResult - the result of the executionpExecutionTime - the time it took to execute the test.| Method Detail |
|---|
public void setName(java.lang.String pName)
pName - the name of the test.public java.lang.String getName()
getName in interface IUnitTestResultpublic java.lang.String getUserMessage()
getUserMessage in interface IUnitTestResultpublic int getTestResult()
getTestResult in interface IUnitTestResultIUnitTestResult.SUCCESSFUL, IUnitTestResult.FAILED, IUnitTestResult.WARNING or IUnitTestResult.ERROR.public int receivedMsgSize()
receivedMsgSize in interface IUnitTestResultpublic IReceivedMessage getReceivedMessageAt(int pIndex)
getReceivedMessageAt in interface IUnitTestResultpIndex - the index of the expected message that was received.
receivedMsgSize()public java.util.List getReceivedMessages()
getReceivedMessages in interface IUnitTestResultgetReceivedMessageAt(int),
receivedMsgSize()public long getExecutionTime()
getExecutionTime in interface IUnitTestResultpublic void setResult(int pResult)
pResult - the result of the execution of this testpublic void setExecutionTime(long pExecutionTime)
pExecutionTime - the time it took to execute this test.public void setMessage(java.lang.String pMessage)
pMessage - the message for the human operator.public java.util.HashMap getStillWaiting()
getStillWaiting in interface IUnitTestResultpublic void setStillWaiting(java.util.HashMap pStillWaiting)
pStillWaiting - the non-received inbound events.
public void addStillWaiting(java.lang.String pStillWaiting,
java.util.ArrayList pResultOfComparator)
pStillWaiting - the name of the event (defined in the configuration file)public java.util.ArrayList getReceived()
public void setReceived(java.util.ArrayList pReceived)
pReceived - the list of received events.public void addReceived(ReceivedMessage pReceived)
public java.util.ArrayList getRecorded()
public void setRecorded(java.util.ArrayList pRecorded)
public void addRecorded(java.lang.String pRecorded)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||