TestFolder object

A TestFolder object represents a test folder.

Public 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

Property R/W Type Description

Attachments

R Object

The AttachmentFactory for the test folder. 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.

Field

R/W Any

The value of the specified field.

Syntax: TestFoler.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: TestFoler.FieldMultiValue[fieldName]

Parameters:

  • fieldName. A string that represents the name of the field in the project database. Use all upper case.

ID

R Number

The test folder ID.

IsLocked

R Boolean

Checks if the test is locked for editing.

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.

TestFactory

R Object

The TestFactory object for direct child tests. See TestFactory object.

TestFolderFactory

R Object

The TestFolderFactory for direct child test folders. See TestFolderFactory object.

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