Getting Started with UFT Testing Extensibility > Developing the Testing Agent for the QuickID Application > Stage 2: Introducing the Environment to UFT > Implementing the GetTestingEnvironment() Method

Implementing the GetTestingEnvironment() Method

When UFT loads a Testing Agent, it calls the GetTestingEnvironment method to return the XML environment definition. UFT uses the information returned by this method to build the collection of test objects to use for this environment.

For the QuickID Testing Agent, the method CTEASampleTestableImp::GetTestingEnvironment (in the TEASampleTestableImp.cpp file) was implemented to load the TEASampleEnvironment.xml file described above and return its content.