Configure AI test object text recognition

Customize text recognition options to reach optimal text recognition on your application. You can set most of these options globally, in Tools > Options > GUI Testing > AI Object Detection > OCR). See AI Object Detection Pane (Options Dialog Box > GUI Testing Tab).

In addition, you can add AIRunSettings steps to your test to set text recognition options. The settings are effective until you change them or until the end of the test run. For details, see the AIRunSettings Object in the Object Model Reference.

Use the OpenText Functional Testing text recognition settings

Instruct AI object identification to use the OpenText Functional Testing text recognition settings. Depending on your configuration, this enables you to use Google or Baidu OCR cloud services or other OCR engines.

If you use this option, the global text recognition settings take effect. See Configure text recognition settings.

Text recognition in multiple languages

To enable AI Object Detection to recognize text in languages other than English, select the relevant OCR languages. This setting is ignored if you selected to use the UFT One OCR settings.

Exact text matching when identifying objects using AI

AI-based object identification uses AI algorithms for text matching. AI text matching may consider spelling variations and words with similar meaning to be matches.

If necessary, you can temporarily instruct the test to look for exactly the specified text when identifying AI test objects. Add an AIRunSettings step to your test to set the text matching method.

This option is not available as a global option.

Note:  

  • The text in the application is identified using OCR. If the OCR is inaccurate, AI text matching may be more successful than exact text matching.
  • Exact text matching is case-insensitive.

Consider UI control borders

Text strings close to each other on a screen may not be related if they belong to different UI objects. For example, you may want text in different table cells identified as separate strings, even if they look like one long string on the screen.

The option Take UI control borders into account when identifying text (selected by default) indicates that such strings should be separated.

Trim noise from your strings

Sometimes, icons, check marks, or other UI elements look like letters and add "noise" to the identified text strings. The option Trim noise characters (selected by default), indicates that any characters identified in unexpected areas or controls should be removed from the identified strings.

Note: Noise characters are trimmed only if they are separated from the identified text string by a space.

Activate hybrid text recognition for web testing

Improve text recognition on AI Objects in web applications by combining AI OCR results with text retrieved directly from the web page elements.

Hybrid text recognition is particularly helpful when trying to recognize text in table cells and calendars, or when text is colored or includes special symbols.

See also