CoverageFactory object

Manage CoverageEntity objects.

You get a CoverageFatory object from the CoverageFactory property of a Test object.

Public methods

This object supports the following methods.

Method Description

AddItem

Creates a new coverage.

Syntax: AddItem(itemData)

Parameter:

  • itemData. An Req object that covers the test, or 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.

Return: A CoverageEntity object.

NewList

Creates a list of coverages according to the specified filter.

For details, see NewList.

RemoveItem

Removes a coverage from the database. Removal takes place immediately, without a Post.

For details, see RemoveItem.

Item

Gets an object managed by the factory by its key.

For details, see Item.

Public properties

This object supports the following properties.

Method R/W Type Description

Fields

R Array

The list of all available fields for the entity managed by the factory.

Syntax: CoverageFactory.Fields

Filter

R Object

The TDFilter object for the factory. See TDFilter object.

Syntax: CoverageFactory.Filter

Back to top