Boolean constraints
Tricentis Vera supports the following boolean constraint types:
All
Evaluates a list of specified sub-constraints to determine if all of them are true.
Note: This constraint is most useful when nested under an Any constraint, as All is the default behavior of constraint lists in Tricentis Vera.
Required properties
-
Type: Value must be All.
-
Constraints: A listing of sub-constraints. All sub-constraints in this list must evaluate to be true for the overall constraint to be true. Any Vera constraint may be included in this list.
Evaluation
-
True: All specified sub-constraints evaluate to True.
-
False: Any specified sub-constraint evaluates to False.
Example
Determine whether both of these conditions are true:
-
Current record has a Category field value of System.
-
Current user is a Manager of the current record type.
Constraints": [
{
"Type": "All",
"Constraints": [
{
"Type": "Field Is Equal",
"Name": "Type",
"Value": "Configuration"
},
{
"Type": "Field Is One Of",
"Name": "Regulation",
"Values": ["GxP"]
}
]
}
]
Any
Evaluates a list of specified sub-constraints to determine if at least one of them is true.
Required properties
-
Type: Value must be Any.
-
Constraints: A listing of sub-constraints. Only one sub-constraint in this list must evaluate to be true for the overall constraint to be true. Any Vera constraint type may be included in this list.
Evaluation
-
True: At least one specified sub-constraint evaluates to True.
-
False: All of the specified sub-constraints evaluate to False.
Example
Determine if either of these conditions are true:
-
Current record has a Category value of System.
-
Current record has a GxP value of Y.
{
"Type": "Any",
"Constraints": [
{
"Type": "Field Is Equal",
"Name": "Category",
"Value": "System",
"Ignore Case": "Yes"
},
{
"Type": "Field Is Equal",
"Name": "GxP",
"Value": "Y",
"Ignore Case": "Yes"
}
]
}
Not
Evaluates a list of specified sub-constraints to determine if all of them are false.
Required properties
-
Type: Value must be Not.
-
Constraints: A listing of sub-constraints. All sub-constraints in this list must evaluate to be false for the overall constraint to be true. Any Vera constraint type may be included in this list.
Evaluation
-
True: All specified sub-constraints evaluate to False.
-
False: At least one of the specified sub-constraints evaluates to True.
Example
Determine if both of these conditions are false:
-
Current record has a Category value of System.
-
Current record has a GxP value of Y.
{
"Type": "Not",
"Constraints": [
{
"Type": "Field Is Equal",
"Name": "Category",
"Value": "System",
"Ignore Case": "Yes"
},
{
"Type": "Field Is Equal",
"Name": "GxP",
"Value": "Y",
"Ignore Case": "Yes"
}
]
}