|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IObjectManagerEventListener
Used by RationalTestScript
for notification of events by the object manager. The object manager is responsible for finding objects in the software under test and then for invoking methods on the found object.
Method Summary | |
---|---|
void |
onAmbiguousRecognition(ITestObjectMethodState testObjectMethodState, TestObject[] choices, int[] scores)
Called by the object manager when more than one object matching the specified pattern is found. |
void |
onObjectNotFound(ITestObjectMethodState testObjectMethodState)
Called by the object manager when an object cannot be found. |
void |
onRecognitionWarning(ITestObjectMethodState testObjectMethodState, TestObject foundObject, int score)
Called by the object manager when an object is found but the recognition score is above the warning threshold (rt.recognition_threshold_warning) . |
void |
onSubitemNotFound(ITestObjectMethodState testObjectMethodState, TestObject foundObject, java.lang.String subitemDescription)
Called by the object manager when a subitem cannot be found. |
void |
onTestObjectMethodException(ITestObjectMethodState testObjectMethodState, TestObject foundObject)
Called by the object manager when a script command throws an exception. |
void |
onVpFailure(IFtVerificationPoint vp)
Called by the IFtVerificationPoint implementation when the specified verification point fails to compare successfully. |
Method Detail |
---|
void onObjectNotFound(ITestObjectMethodState testObjectMethodState)
testObjectMethodState
- the state of the TestObject
methodITestObjectMethodState
void onAmbiguousRecognition(ITestObjectMethodState testObjectMethodState, TestObject[] choices, int[] scores)
testObjectMethodState
- the state of the TestObject
methodchoices
- an array of the ambiguous objects. These are always found objects, and they are therefore suitable for use with ITestObjectMethodState.setFoundTestObject
.scores
- an array of the recognition scores. A score of zero is a good score, and higher numbers are bad scores. (Negative values are not used).ITestObjectMethodState
void onSubitemNotFound(ITestObjectMethodState testObjectMethodState, TestObject foundObject, java.lang.String subitemDescription)
testObjectMethodState
- the state of the TestObject
methodfoundObject
- the object used in the method invocation when the exception occurredsubitemDescription
- the description of the subitem (from the SubitemNotFoundException
)ITestObjectMethodState
void onTestObjectMethodException(ITestObjectMethodState testObjectMethodState, TestObject foundObject)
testObjectMethodState
- the state of the TestObject
methodfoundObject
- The object used in the method invocation when the exception occurred foundObject
is null
.ITestObjectMethodState
void onRecognitionWarning(ITestObjectMethodState testObjectMethodState, TestObject foundObject, int score)
(rt.recognition_threshold_warning)
.
testObjectMethodState
- the state of the TestObject
methodfoundObject
- the object to be used if an exception occursscore
- the numeric scoreITestObjectMethodState
void onVpFailure(IFtVerificationPoint vp)
IFtVerificationPoint
implementation when the specified verification point fails to compare successfully. The default implementation of this event handler performs no actions. A user may choose to override the default implementation and throw an exception to terminate script execution on verification-point failure.
vp
- the verification-point object that failed to compare successfully
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |