Using Text Recognition Technology - Tips for Applications That Use Direct2D

Applies to TestComplete 15.62, last modified on March 19, 2024
Information in this topic applies to desktop applications only.

If your tested application uses the Direct2D library to render text, to allow TestComplete to recognize objects in your application by their text more efficiently, you can follow the recommendations below:

  • If your application uses glyph caching when rendering text with the DrawGlyphRun method, TestComplete may fail to recognize the rendered text. If you face any issues with recognizing the text that the method renders, we recommend that you avoid caching glyphs.

  • TestComplete can recognize text that your application renders better if the application renders the text directly to a window, rather than to a Direct2D device context.

    To learn more about device contexts, see the How to render by using a Direct2D device context article in the MSDN Library.

  • If your application renders cached text, you may need to use the extended text recognition support that TestComplete provides for Direct2D to recognize the rendered text properly.

  • TestComplete accumulates data on text it recognizes in an application. This may cause memory issues in applications with a large amount of text to be recognized during long test sessions. If you face any memory issues when testing your application, we recommend that you split your large testing session into several smaller ones.

See Also

Using Text Recognition Technology

Highlight search results