DesignStep object
A DesignStep object represents a design step of a test.
You get a DesignStep object from aDesignStepFactory object.
Public methods
This object supports the following methods.
Method | Description |
---|---|
Locks the object. Returns true if the object has been changed on the server. Syntax: If an object is locked, no other user can change or delete it. LockObject returns True if the object on the server was more recently changed than the local copy when LockObject was called. In this case, the local copy of the object is refreshed before LockObject returns. If the object cannot be locked, an exception is thrown. Some cases of lock failure are if the object:
|
|
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. Syntax: |
UnLockObject |
Unlocks the object. Syntax: |
Public properties
Property | R/W | Type | Description |
---|---|---|---|
Attachments |
R | Object |
The AttachmentFactory object for the defect. See AttachmentFactory object. Syntax: |
AutoPost |
R/W | Boolean |
If true, the database is updated immediately when the field value changes. Syntax: |
AutoUnlock |
R/W | Boolean |
Indicates whether to make the item changeable to other users automatically after a Refresh or Post. Syntax: |
Field |
R/W | Any |
The value of the specified field. Syntax: Parameter:
|
FieldMultiValue |
R/W | Object |
The MultiValue object of the specified field. See MultiValue object. Syntax: Parameter:
|
HasAttachment |
R | Boolean |
Checks if the design step has one or more attachments. Syntax: |
ID |
R | Number |
The item ID. Syntax: |
IsLocked |
R | Boolean |
Checks if the design step is locked for editing. Syntax: IsLocked is set by the LockObject method and is reset by the UnlockObject method. If the object has an AutoUnlock property and the property is set to True, IsLocked is also reset by a Post or Refresh operation. |
LinkTest |
R | Object |
A test to be linked to the design step. Syntax: |
LinkTestID | R | Number |
The ID of the linked test. Syntax: |
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. Syntax: |
Order | R/W | Number |
The order of the design step in the test procedure. Syntax: |
ParentTest | R | Object |
The test object to which the design step belongs. Syntax: |
StepDescription | R/W | String |
The description of the design step. Syntax: StepDescription returns the string as entered. If the description includes parameters, StepDescription returns the parameter enclosed by |
StepExpectedResult | R/W | String |
The expected results of the step. Syntax: StepExpectedResult returns the string as entered. If the expected result includes parameters, StepExpectedResult returns the parameter enclosed by |
StepName | R/W | String |
The design step name. Syntax: |
TypeName |
R | String |
The field's type. Syntax: |
Virtual |
R | Boolean |
Checks if this is a virtual item, that is, an item that does not have a corresponding database record. Syntax: |