SRF property

Supported in UFT versions 14.50 and higher.

Description

Provides values to define the WebSRFSettings object, for when SRF is selected in the Use combo-box in the Web tab on the Record and Run Settings dialog.

For more details, see Env property and the Web Tab (Record and Run Settings Dialog Box) in the UFT Help Center.

Back to top

Property type

Read-write property

Back to top

Syntax

Visual Basic
Public Property SRF As Object

Back to top

Return type

Returns a WebSRFSettings object.

Back to top

Example

Define the SRF web environment

The following example defines that the test uses the SRF browser lab, with the following environment details:

Internet Explorer version 11, Windows 10, and a resolution of 1800x600.

qtApp.Test.Settings.Launchers("Web").SRF.Browser = "Internet Explorer 11"

msgbox qtApp.Test.Settings.Launchers("Web").SRF.Browser

qtApp.Test.Settings.Launchers("Web").SRF.OS = "Windows 10"

msgbox qtApp.Test.Settings.Launchers("Web").SRF.OS

qtApp.Test.Settings.Launchers("Web").SRF.Resolution = "1800x600"

msgbox qtApp.Test.Settings.Launchers("Web").SRF.Resolution

Additionally, see SRF web testing code sample.

Back to top

See also: