Designing the Communication Between the Testing Agent and the Application

In the QuickID project, several classes were developed, each representing an object in the QuickID application. The QuickID Testing Agent communicates with objects of these classes instead of communicating directly with the application.

This style of implementation is one way of implementing UFT Testing Extensibility; it is not mandatory.

The following classes were developed in the QuickID project, to represent the objects in the QuickID application:

A single object (referred to in this guide as a global object) was created for each of the classes described above. (See the Common.h file: g_pTEASampleApplication, g_pTEASampleNameEdit, g_pTEASampleCitySelector.) Both the application and the Testing Agent can access these objects. Each global object stores all of the information that UFT might require about the object it represents (type, name, state, and so on).

Most of the Testing Agent methods were implemented to simply delegate a request to one of these global objects.