In IBM Rational Functional Tester, I want to know if a TestObject has been perfectly matched.
The class TestObject has a method exists()
, unfortunately it is useless, since it usually returns multiple matches when the desired object does not match.
Now, I'm trying to find the object and catching the com.rational.test.ft.AmbiguosRecognitionException, but it is ugly.
I'd like to test for the sole existence of an object, maybe just get the number of matched objects. Is there an API method that I'm overlooking?