Conditions are used to define dependencies between TSTests in the test set execution flow. They define when a particular test instance can be executed. The Source is a condition that must be fulfilled. The Target is a TSTest object.
If the execution condition is not based on time, the source is a TSTest which must run before the Target. The Target test instance either runs or does not run based on the result of the test: passed or failed.
Changes for the condition are saved in the project after calling the Save method of the ConditionFactory Object.
Get a Condition object from the ConditionFactory using AddItem, NewList, or Item.
Implemented Interface | Description |
---|---|
IBaseField2 | Represents a basic data field or entity, such as an attachment. |
IBaseField3 | Represents a basic data field or entity, such as an attachment. |
IBaseField4 | Represents a basic data field or entity, such as an attachment. |
Post | Writes all changed values to database. |
AutoUnlock | Indicates whether to make the item changeable to other users automatically after a Refresh or Post. |
Description | The Condition description. |
FieldMultiValue | The MultiValue object of the specified field. |
ID | The Condition ID. |
Source | For a run condition, the source condition ID. For a time condition, a date-time string. |
Target | The target test instance number of the condition. |
TypeName | The field's type. |
Value | The Condition status value. |