Developing Support for Screen Captures

UFT One can store a snapshot (Active Screen) of the application for each step in a test. This enables the user to see the full state of the application and all of the objects in it as it appears at the time that the step is performed. In addition, the UFT One user can use the Active Screen to add steps to the test even when the application is not available and even for objects that were not originally included in any test steps.

To capture the Active Screen, UFT One must be able to switch the focus to the application window and gather information about the objects visible in the window. To support this UFT One capability, the Testing Agent must provide information about all the visible objects of the application, including their locations and their descriptions. This information must be provided in XML format according to the ActiveScreen Schema.

To support the Active Screen capture, implement the GetHWND method in the IHWNDSupplier interface and the GetActiveScreen method in the IActiveScreenSupplier interface.

During a test run session, UFT One can also capture and save images of the application to display them in the run results. These step screen captures enable the user to see the state of the application as it was when the test step was performed. UFT One Testing Extensibility supports step screen captures using the same methods that support the Active Screen.

For more information, see: