Share this page

# TSTest object

A TSTest object represents a test instance, or execution test, in a test set. A test instance represents a single use of a planning Test in a TestSet. It can be associated with one or more runs.

You get a TSTest object from a TSTestFactory object.

Public methods

This object supports the following methods.

Method | Description
--- | ---
LockObject | Locks the object. Returns True if the object has been changed on the server. For details, see LockObject.
Mail | Mails a list of items. For details, see Mail.
Post | Posts all changed values into database. For details, see Post.
Refresh | Reads saved values, overwriting values in memory. For details, see Refresh.
Undo | Undoes changes to field values that have not been posted. For details, see Undo.
UnLockObject | Unlocks the object. For details, see UnLockObject.

Public properties

This object supports the following properties.

Property | R/W | Type | Description
--- | --- | --- | ---
Attachments | R | Object | The AttachmentFactory for the test. See AttachmentFactory object.
AutoPost | R/W | Boolean | If true, the database is updated immediately when the field value changes.
AutoUnlock | R/W | Boolean | Indicates whether to make the item changeable to other users automatically after a Refresh or Post.
BugLinkFactory | R | Object | The bug link factory that manages the links of the current test instance to its associated defects.
DesignStepFactory | R/W | Object | The design steps factory for the current test. See DesignStepFactory object.
EntitySubtype | R | Object | The current subtype of the entity.
Field | R/W | Any | The value of the specified field. Syntax:`TSTest.Field[fieldName]` Parameters: fieldName. A string that represents the name of the field in the project database. Use all upper case.
FieldMultiValue | R/W | Object | The MultiValue object of the specified field. See MultiValue object. Syntax:`TSTest.FieldMultiValue[fieldName]` Parameters: fieldName. A string that represents the name of the field in the project database. Use all upper case.
HasAttachment | R | Boolean | Checks if the test instance has one or more attachments.
HasLinkage | R | Boolean | Checks if the test instance has at least one associated Bug.
HasOthersLinkage | R | Boolean | Checks if the current Bug object has at least one associated object that is not another Bug object. Defined only for Bug objects.
IsLocked | R | Boolean | Checks if the test instance is locked for editing.
LinkFactory |  | Object | The link factory of the current object that enables viewing the links. Defined only for Bug objects.
Modified | R | Boolean | Checks if the item has been modified since last refresh or post operation. If true, the field properties on the server side are not up to date.
Name | R/W | String | The test name.
RunFactory | R | Object | The RunFactory object for this test instance. See RunFactory object.
Status | R/W | String | The test instance's execution status.
SubjectId | R | Number | The ID of the Subject field.
Test | R | Object | The planning test object of which this is an instance. See Test object.
TestConfiguration | R | Object | The test configuration object used by this test instance for the run. See TestConfig object.
TestId | R | Number | The ID of the planning test of which this is an instance.
TestName | R | String | The name of the planning test of which this is an instance.
TestSet | R | Object | The test set object to which the test instance belongs. See TestSet object.
Type | R/W | String | The test type.
TypeName | R | String | The field's type.
Virtual | R | Boolean | Checks if this is a virtual item, that is, an item that does not have a corresponding database record.

Back to top

https://admhelp.microfocus.com Application Quality Management 8942
Tips to improve your search results... OpenText™ Application Quality Management Help Center OpenText™ Application Quality Management Help Center OpenText™ Application Quality Management Help 26.1 All View Local Help Center View Online Help Center Version: