Stage 5: Adding Support for Running Tests

At this point in the development of the Testing Agent, you can create tests with test objects and test object methods customized for your environment, but you cannot yet run these tests. To support running tests, you need to implement the FindObjectId and Run methods in the ITestable interface.

TheFindObjectId method receives an object description from UFT and returns an object ID that provides immediate access to the object that matches the description. For more information, see Teaching UFT to Recognize the Testing Environment and Implementing FindObjectId or FindObjectID2: Map a Description to an Object ID.

UFT uses the object ID that FindObjectId returns in subsequent calls to the Testing Agent methods. For example, when running a test, UFT calls FindObjectId with the description of the test object that is stored in the test, and then calls the Run method with the returned object ID to perform the test step. For more information, see Developing Support for Running Tests.

You can use the method of your choice for assigning object IDs to objects. The only requirement is that when UFT calls a Testing Agent method with an object ID, the Testing Agent should have immediate access to the relevant object in the application being tested.

This stage includes: