Getting Started with UFT Testing Extensibility > Developing the Testing Agent for the QuickID Application > Stage 2: Introducing the Environment to UFT > Defining the Environment

Defining the Environment

Before implementing the Testing Agent, the environment that the Testing Agent needs to support must be clearly defined. This includes defining the test objects relevant for the environment, icons to represent these test objects in UFT, the test object identification properties, the operations that can be performed on each test object, and so on. For information on defining a testing environment, see Planning Your UFT Testing Agent.

UFT requires that the environment definition be provided in XML format according to the Testing Environment Schema. It is convenient to create an XML file that contains the environment definition in the correct format and to design GetTestingEnvironment to load this file and return it to UFT as an XML string.

The XML environment definition that was created for the QuickID is stored in the TEASampleEnvironment.xml file, located in the <UFT Testing Extensibility installation folder>\samples\QuickID\<Visual Studio version>\dat folder. Open the file and examine its contents:

Each classInfo element defines a test object class. The following test object classes are defined for the QuickID:

Each test object class definition includes test object methods and identification properties. For example: