Share this page

# TSTestFactory object

Manages test instances (TSTest objects) in a test set.

You get a TSTestFactory object from the TSTestFactory property of a TestSet object (TestSet.TSTestFactory).

Public methods

This object supports the following methods.

Method | Description
--- | ---
AddItem | Adds one or more tests to the test set. Syntax: `TSTestFactory.AddItem(itemDate)` Parameters: itemDate. There are three options: Null. Initially creating a virtual object with Null ensures that you cannot then Post until all required fields are initialized. A test ID. An array of test IDs
GetSubType | Subtype corresponding to the given subtype ID. Syntax:`TSTestFactory.GetSubType(subtypeId)` Parameters: subtypeId. A number that represents the subtype ID.
Mail | Mails a list of items. For details, see Mail.
NewList | Creates a list of objects according to the specified filter. Syntax: `NewList(filter)` Parameters: filter. A TDFilter.Text string that defines the criteria for filtering items in the factory. If an empty string is passed, the returned list contains all the child items of the current factory object.
RemoveItem | Removes an object from the database. Removal takes place immediately, without a Post. Syntax: `RemoveItem(itemKey)` Parameters: itemKey. A number that represents the test instance ID, a reference to theTSTest object, or an array of test instance IDs.
Item | Gets an object managed by the factory by its key. Syntax: `Item(itemKey)` Parameters: itemKey. A number that represents the object ID.

Public properties

This object supports the following properties.

Property | R/W | Type | Description
--- | --- | --- | ---
Fields | R | Array | The list of all available fields for the entity managed by the factory. Syntax: `TSTestFactory.Fields`
Filter | R | Object | The TDFilter object for the factory. See TDFilter object. Syntax: `TSTestFactory.Filter`
Subtypes | R | Array | List of subtypes supported by this entity.

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: