RunFactory object

Manage test runs.

You get a RunFactory reference from the RunFactory property of a TSTestFactory object (TSTest.RunFactory).

Public methods

This object supports the following methods.

Method Description

AddItem

Creates a new item object.

Syntax: RunFactory.AddItem(null)

Passing null as the argument creates a virtual object, one that does not appear in the project database. After creating the item, use the relevant object properties to fill the object, then use the Post method to save the object in the database.

GetSubtype

Subtype corresponding to the given subtype ID.

Syntax: GetSubtype(subtypeId)

Parameters:

  • subtypeId. A string 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 run ID, a reference to theRun object, or an array of run 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: RunFactory.Fields

Filter

R Object

The TDFilter object for the factory. See TDFilter object.

Syntax: RunFactory.Filter

Subtypes R Array List of subtypes supported by this entity.
UniqueRunName R String Gets the run name. The name is unique in the current test and test set.

Back to top