Tutorial-2 How do we use an anchor to locate a particular object using RFT
A suggestion of great value:
Before practicing these Tutorials on “Rational Functional Tester – IBM RFT”, it is recommended that you acquire a preliminary working knowledge of using this wonderful tool –“Rational Functional Tester”. This can be easily attained by careful study of the“Frequently Asked Questions � FAQ�s” brought to you by this web site for the first time by Clicking on the following link:
Learn the Basics of RFT through FAQ’s
<<<<<<<< =========== >>>>>>>>
This short tutorial describes a method of using an anchor to locate a particular object in RFT.
Use of an anchor is useful in pin
pointing a test object, which normally RFT finds it difficult to differentiate between two similar objects during playback.This happens usually when two browsers or instances of the same application are open simultaneously. We can identify the browser and the instances of the application by using a TestObject reference.
Running more than one instance of an application simultaneously during playback will result in ambiguity about the target of commands like object() or click().
To solve this problem, we can use “ProcessTestObject” when we call the “startApp” command as described below.
ProcessTestObject pto1 = startApp(“ApplicationOne”);
ProcessTestObject pto2 = startApp(“ApplicationTwo”);
In the above example, the “ProcessTestObject” functions as an anchor to locate the desired application.
An expert on R&D, Online Training and Publishing. He is M.Tech. (Honours) and is a part of the STG team since inception.