Developing Support for Screen Captures

OpenText Functional Testing 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 OpenText Functional Testing 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, OpenText Functional Testing must be able to switch the focus to the application window and gather information about the objects visible in the window. To support this OpenText Functional Testing 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, OpenText Functional Testing 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. OpenText Functional Testing Extensibility supports step screen captures using the same methods that support the Active Screen.

For more information, see: