AI Pane (Options Dialog Box > GUI Testing Tab)

GUI UFT Mobile and Web tests only

This topic describes the global AI-based testing abilities that you can configure in AI pane in UFT One.

Access the AI pane

Select Tools > Options > GUI Testing tab > AI node.

Back to top

Configure general AI-based testing settings

The AI > General pane provides options for you to configure general AI-based testing settings.

Enable/Disable UFT One's AI features

UFT One's AI features is enabled by default. You can clear the AI active option to disable AI features.

Changes you make in the AI active option take effect only after you restart UFT One.

Use local AI Service or Remote AI Service

  • Select Use local AI service to use the AI Service automatically installed along with UFT One.

  • Select Use remote AI service to use the AI Service you installed on a remote machine. Enter the IP address of the machine and defined port number. For details, see Use the Remote AI Service.

Runtime object identification

Fine-tune object identification settings to optimally identify objects in your application in runtime.

Object identification settings
Automatic scrolling

Select this option to enable automatic scrolling. When running a test, if an object is not displayed in the application but the web page or mobile app is scrollable, UFT One automatically scrolls further in search of the object.

UFT One scrolls similarly when running a checkpoint that requires that an object not be displayed in the application.

Default: Selected.

You can customize the direction and extent of the scrolling:

  • Scrolling direction: The direction in which to scroll. Default: Down.
  • Max number of scrolls: The maximum number of pages or screens to scroll. Default: 2.

Tip: To temporarily override these global settings in a test run, add AI run settings steps to your test. For details, see the AIRunSettings Object in the UFT One Object Model Reference for GUI Testing.

Enable caching for object identification

By default, UFT One uses a caching mechanism for AI object identification during test runs, to improve performance.

You can clear this option to disable the caching mechanism if you don’t find it useful in your case.

Enable verifying identification

Select this option to enable verifying object identification during a test run. When running a test, UFT One verifies the object identification before performing the operation.

You can enable or disable verification for mobile contexts, non-mobile contexts, or both.

Note that the added verification affects the speed of the test run.

Default: Enabled for non-mobile contexts only.

Tip: To temporarily override the global settings in a test run, add AI run settings steps to your test. For details, see the AIRunSettings Object in the UFT One Object Model Reference for GUI Testing.

AI Transformation Assistant

The Replace run results with AI object suggestions option enables you to replace existing steps with AI object steps to create a more resilient and platform-agnostic test.

When this option is selected, your test run results do not reflect the results of the test. Instead, the report suggests an AI object and operation for any step where a property-based test object can be replaced with an AI object.

This option is not selected by default.

Back to top

Configure OCR settings

In the AI > OCR pane, specify which OCR settings to use:

  • UFT OCR settings. AI features use the OCR engine, languages, and settings defined in the Text Recognition pane. For details, see Text Recognition Pane (Options Dialog Box > GUI Testing Tab).
  • Default AI OCR. AI features use the languages you select below, and a different OCR engine than the one selected in the Text Recognition pane.

OCR languages

This is relevant when the Use the default AI OCR option is selected. 

OCR languages are used when identifying text in the application, when using text to identify a specific object, and when retrieving text from the application.

  • Move languages from the Available Languages list to the Selected Languages list, to specify the languages to use for AI-based text recognition.

  • Select languages in the Selected Languages list and click Move Up or Move Down to prioritize languages.

Supported languages: Afrikaans, Arabic, Basque, Bulgarian, Catalan, Chinese, Traditional Chinese, Croatian, Czech, Danish, Deutsch, Dutch, English, Esperanto, Estonian, Finnish, French, Greek, Hebrew, Hungarian, Icelandic, Italian, Irish, Japanese, Korean, Latin, Latvian, Lithuanian, Macedonian, Maltese, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovenian, Slovak, Spanish, Swedish, Turkish, Ukrainian, Welsh

Tip: To temporarily override these global settings in a test run, add AI run settings steps to your test. For details, see the AIRunSettings Object in the UFT One Object Model Reference for GUI Testing.

Back to top

Configure Marketplace connection information for AI model update

In the AI > Model pane, connect UFT One to Marketplace.

This is a prerequisite for updating an AI model from UFT One user interface.

  1. Define Marketplace connection.

    Marketplace connection settings
    Marketplace user name

    Enter the username of your Marketplace account.

    If you do not have a Marketplace account, click create an account.

    Marketplace password Enter the password of your Marketplace account.
    Use proxy settings

    Select to connect using a proxy.

    Proxy type. Defines the type of proxy to use when connecting to the Marketplace:

    • System proxy

    • HTTP proxy

    Proxy address. The proxy IP address and port. If System proxy is selected, this field is populated automatically, and is read-only.

    Specify authentication. Enables you to connect to the Marketplace using a specific account.

    Proxy user name and password. The credentials used to connect to the Marketplace, if Specify authentication is selected.

  2. Click Test connection.

Back to top

Restore defaults

The Restore Factory Defaults button resets all Options dialog box options to their defaults.

Back to top

See also: