Google Cloud OCR Properties
Supported in UFT One versions 15.0.1 and later.
This topic describes the properties to use if you set the TextRecognitionOcrMechanism to Google.
GoogleOcrKey Property
Description
An encoded string representing the key to use when connecting to the Google OCR engine.
Use the Password Encoder utility installed with UFT One to encode the key that you use to access your Google OCR account.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrKey As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrProxyAddress Property
Description
The address of the proxy server to use when connecting to the Google OCR engine.
Syntax
Visual Basic |
---|
Public Property GoogleOcrProxyAddress As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrProxyPort Property
Description
The proxy port to use when connecting to the Google OCR engine.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrProxyPort As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrProxyPassword Property
Description
The proxy password to use when connecting to the Google OCR engine.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrProxyPassword As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrProxyType Property
Description
The proxy type to use when connecting to the Google OCR engine.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrProxyType As String |
Return Type
Possible values:
System Proxy. Uses the system-defined proxy, you do not need to enter any other proxy details.
HTTP Proxy. Use this type to provide the proxy server address, port, and authentication details.
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrUseAuthentication Property
Description
Indicates whether to use proxy authentication when connecting to the Google OCR engine.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrUseAuthentication As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrUseProxy Property
Description
Indicates whether to use proxy when connecting to the Google OCR engine.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrUseProxy As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
GoogleOcrProxyUserName Property
Description
The proxy username to use when connecting to the Google OCR engine.
Property type
Read-write property.
Syntax
Visual Basic |
---|
Public Property GoogleOcrProxyUserName As String |
Remarks
For more details on the UFT One text recognition mechanism and the available configuration options, see the topics on text recognition in the UFT One User Guide.
Google Cloud OCR connection example
Connect to Google OCR Cloud
The following code shows an example of the Application object, when connecting to Google OCR cloud:
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Options.TextRecognitionOcrMechanism = "Google"
App.Options.GoogleOcrKey = "<encrypted>"
App.Options.GoogleOcrUseProxy = True
App.Options.GoogleOcrProxyType = "HTTP"
App.Options.GoogleOcrProxyAddress = "14.52.345.1"
App.Options.GoogleOcrProxyPort = 8080
App.Options.GoogleOcrUseAuthentication = True
App.Options.GoogleOcrProxyUserName = "MyName"
App.Options.GoogleOcrProxyPassword = "MyPass"
See also: