public interface IObjectManagerEventListener
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.| Modifier and Type | Method and Description |
|---|---|
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 |
onUnexpectedActiveWindow(ITestObjectMethodState testObjectMethodState)
Called by the object manager when an object cannot be
found and handling unexpected windows is required.
|
void |
onVpFailure(IFtVerificationPoint vp)
Called by the
IFtVerificationPoint implementation when the
specified verification point fails to compare successfully. |
void onObjectNotFound(ITestObjectMethodState testObjectMethodState)
testObjectMethodState - the state of the TestObject methodITestObjectMethodStatevoid onUnexpectedActiveWindow(ITestObjectMethodState testObjectMethodState)
testObjectMethodState - the state of the TestObject methodITestObjectMethodStatevoid 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).ITestObjectMethodStatevoid 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)ITestObjectMethodStatevoid 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.ITestObjectMethodStatevoid 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 scoreITestObjectMethodStatevoid 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