Fields objects

You can use the Fields objects in workflow scripts to access the fields of modules. For example, you can use the Req_Fields object to access the fields of the Requirements module.

Object

Description

Bug_Fields

Provides access to the fields of the defects in the Defects module and the Manual Runner dialog box.

Req_Fields

Provides access to the fields of the Requirements module.

Test_Fields

Provides access to the fields of tests in the Test Plan module.

TestFolder_Fields Provides access to the fields of test folders in the Test Plan module.

TestSet_Fields

Provides access to the fields of the test sets in the Test Lab module.

TestSetFolder_Fields Provides access to the test set folders in the Test Lab module.

TestSetTest_Fields

Provides access to the fields of the test instances in the Test Lab module.

These objects have the following properties.

Property

R/W

Type

Description

Count

R

Number

Returns the number of fields in the current object.

Limitation: You may encounter differences in the behavior of TestSetTest_Fields.Count based on where it is called. If you call it in Web Client project scripts, it returns a bigger number than when you call it in Desktop Client workflows. That's because Web Client returns more fields for entities such as test, test set, and test configuration.

Field(FieldName)

R

Function

Accesses the fields by field name or field label.

FieldById(FieldID)

R

Function

Accesses the fields by the field ID number.

Not available for: Advanced project scripts

Back to top