Share this page

# StepFactory object

Manage test steps for a Run object.

You get a StepFactory object from the StepFactory property of a Run object (Run.StepFactory).

Public methods

This object supports the following methods.

Method | Description
--- | ---
AddItem | Creates a new item object. Syntax: `StepFactory.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.
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 step ID, a reference to the Step object, or an array of run step 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: `StepFactory.Fields`
Filter | R | Object | The TDFilter object for the factory. See TDFilter object. Syntax: `StepFactory.Filter`

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: