QCUtil Object

Description

The object used to access the OpenText Application Quality Management Open Test Architecture (OTA) API interface. You can use the properties associated with the QCUtil object to return OTA objects. You can use the returned object to perform any OTA property or method supported for that object.

For details on the objects, properties, and methods supported for the returned objects exposed by the QCUtil object, see the ALM Open Test Architecture API Reference.

Note: This object replaces the TDUtil object used in earlier versions of QuickTest. The TDUtil object is supported for backwards compatibility only. We recommend updating your tests to use the QCUtil object.

Properties

Method RunReturns the OTA Run object, which represents the current run.
Method CurrentTestReturns the OTA Test object, which represents a planning test.
CurrentTestSetReturns the OTA TestSet object, which represents a group of tests.
CurrentTestSetTestReturns the OTA TSTest object, which represents an execution instance.
IsConnectedIndicates whether OpenText Functional Testing is currently connected to an ALM project.
QCConnectionReturns the OTA QCConnection object, which represents the current ALMsession and provides access to the ALMobject model.

Back to top

Run Property

Description

Returns the OTA Run object, which represents the current run. For more details, see the ALM Open Test Architecture API Reference.

Syntax

QCUtil.CurrentRun

Return Value

An OTA Run object.

Back to top

CurrentTest Property

Description

Returns the OTA Test object, which represents a planning test. For more details, see the ALM Open Test Architecture API Reference.

Note: This property is supported only when OpenText Functional Testing is connected to OpenText Application Quality Management and the test is saved in an ALM project

Syntax

QCUtil.CurrentTest

Return Value

An OTA Test object.

Back to top

CurrentTestSet Property

Description

Returns the OTA TestSet object, which represents a group of tests. For more details, see the ALM Open Test Architecture API Reference.

Note: This property is supported only when OpenText Functional Testing is connected to OpenText Application Quality Management and the run results location is an ALMlocation.

Syntax

QCUtil.CurrentTestSet

Return Value

An OTA TestSet object.

Back to top

CurrentTestSetTest Property

Description

Returns the OTA TSTest object, which represents an execution instance. For more details, see the ALM Open Test Architecture API Reference.

Note: This property is supported only when OpenText Functional Testing is connected to OpenText Application Quality Management.

Syntax

QCUtil.CurrentTestSetTest

Return Value

An OTA TSTest object.

Back to top

IsConnected Property

Description

Indicates whether OpenText Functional Testing is currently connected to an ALM project.

Note: Returns False if OpenText Functional Testing is connected to an ALM server, but not connected to any project.

Tip: We recommend inserting a IsConnected step before other ALMoperations.

Syntax

QCUtil.IsConnected

Return Value

Boolean

Back to top

QCConnection Property

Description

Returns the OTA QCConnection object, which represents the current ALMsession and provides access to the ALMobject model.

For more details, see the Open Test Architecture (OTA) API Reference, in the OpenText Application Quality Management Help Center.

Note: This property is supported only when OpenText Functional Testing is connected to OpenText Application Quality Management.

Syntax

QCUtil.QCConnection

Return Value

An OTA QCConnection object.

Back to top

See also: