AIRunSettings Object

Description

An object containing the settings for the current test run. These settings enable you to modify test settings during the test run, overriding the global settings defined in Tools > Options > GUI Testing > AI.

IMPORTANT

AI objects are supported in UFT One only when:

  • The UFT One Web Add-in or Mobile Add-in are installed and loaded.
  • The UFT One AI Features are installed and AI is enabled in the UFT One options. For details, see the UFT One Help Center.

To retrieve an AIRunSettings object, use the AIUtil.RunSettings property.

The settings in an AIRunSettings object are arranged in child objects, each for a different type of settings. Use the relevant object property to retrieve the child settings objects.

Properties

The following table lists the built-in properties that you can use to access the settings child objects.

Property AutoScroll

Returns the AIRunSettingsAutoScroll object to use for the current test run.

Syntax

AIUtil.RunSettings.AutoScroll

Property OCR

Returns the AIRunSettingsOCR object to use for the current test run.

Syntax

AIUtil.RunSettings.OCR

Property VerifyIdentification

Returns the AIRunSettingsVerifyIdentification object to use for the current test run.

Syntax

AlUtil.RunSettings.VerifyIdentification

Property TextMatch

A String value. Specifies whether to look for the specified text exactly when identifying AI test objects, or use AI algorithms to find similar text as well.

Back to top

AIRunSettingsAutoScroll Object

Description

Controls automatic scrolling for AI identification in the current test run.

By default, the automatic scrolling is on, and set to scroll down, up to 2 times.

Important

To retrieve an AIRunSettingsAutoScroll object, use the AIUtil.RunSettings.AutoScroll property.

Methods

The following table lists the methods you can call to control the run time AutoScroll settings:

Method Enable

Enables and configures automatic scrolling for AI identification in the current test run.

Syntax

AIUtil.RunSettings.AutoScroll.Enable scrolldirection, [maxNumberOfScrolls]

Arguments

  • scrolldirection. The direction in which to scroll.

    Possible values: up, down, right, left.

  • maxNumberOfScrolls. Optional. The maximum number of times to scroll in search of the object.

    Tip: If you do not specify a number, or you enter -1, the scroll direction is updated and the maximum number setting remains unchanged.

Method Disable

Disables automatic scrolling for AI identification in the current test run.

Syntax

AIUtil.RunSettings.AutoScroll.Disable

Back to top

AIRunSettingsOCR Object

Description

Specifies the OCR settings to use in the current test run.

By default, only English text is identified.

Important

To retrieve an AIRunSettingsOCR object, use the AIUtil.RunSettings.OCR property.

Properties

The following table lists the properties that represent the run time OCR settings:

Property Languages

A String. A comma-separated list of the OCR languages to use in the test run.

Syntax

AIUtil.RunSettings.OCR.Languages

Possible values:

en – English

af – Afrikaans

eu – Basque

ca – Catalan

hr – Croatian

cs – Czech

da – Danish

nl – Dutch

eo – Esperanto

et – Estonian

fi – Finnish

fr – French

de – German

hu – Hungarian

is – Icelandic

it – Italian

ga – Irish

la – Latin

lv – Latvian

lt – Lithuanian

mt – Maltese

no – Norwegian

pl – Polish

pt – Portuguese

ro – Romanian

sk – Slovak

sl – Slovenian

es – Spanish

sv – Swedish

tr – Turkish

cy – Welsh

ar – Arabic

zhs – Simplified Chinese

zht – Traditional Chinese

bg – Bulgarian

mk – Macedonian

ru – Russian

sr – Serbian

uk – Ukrainian

el – Greek

he – Hebrew

ja – Japanese

ko – Korean

If any other language is specified, English is used instead.

Back to top

AIRunSettingsVerifyIdentification Object

Description

Controls whether to verify the AI identification before performing the operation in the current test run.

Important

To retrieve an AIRunSettingsVerifyIdentification object, use the AlUtil.RunSettings.VerifyIdentification property.

Methods

The following table lists the methods you can call to control the identification verification settings:

Method Enable

Enables verifying AI identification in the current test run.

Syntax

AIUtil.RunSettings.VerifyIdentification.Enable

Method Disable

Disables verifying AI identification in the current test run.

Syntax

AIUtil.RunSettings.VerifyIdentification.Disable

Back to top

TextMatch Property

Description

Specifies whether to look for the specified text exactly when identifying AI test objects, or use AI algorithms to find similar text as well.

Snytax

AIUtil.RunSettings.TextMatch

Possible values: micExactMatch, micAIMatch

Remarks

  • By default, AI algorithms are used for text matching. If you set this property to micExactMatch in a test run, we recommend limiting it to specific steps and then setting back to micAIMatch.
  • Exact match is case-insensitive.

Back to top