OTX Reference  
OpenTestSystem.Otx.Extensions.Util.Terms.Compare Class Reference

Checks the content and not the reference of ByteField, List and Map. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Util.Terms.Compare:
Inheritance graph

Public Attributes

Term[] term
 Cardinality [2..*]
List of one or more expressions that are used in the operation. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

Checks the content and not the reference of ByteField, List and Map.

The Compare activity checks the content and not the reference of ByteField, List and Map. List and Map are checked recursively. For all other data type comparisons, the same behavior as used by the IsEqual term is used, unless specified otherwise at the definition of the data type.In case of structure the util:Compare term checks all values deeply.

Important: Since OTX terms do not have side-effects, the evaluation of Compare operand terms shall complete when the first unequal to others operand has been identified; Compare returns false then without evaluating the remaining operand terms.

Note that one consequence of this is that exceptions which might have occurred in the remaining operands are by passed.

Checker rules
Core.CheckerRule.Core_Chk049 - uniform relation operand type
Syntax
BooleanTerm = Util.Compare({Term[ ] term});
Examples
// Local Declarations
Boolean Boolean1 = false;
// Flow
Boolean1 = Util.Compare({{&11, &22, &33}, {&10, &22, &33}});

Member Data Documentation

◆ term

Term [] OpenTestSystem.Otx.Extensions.Util.Terms.Compare.term

Cardinality [2..*]
List of one or more expressions that are used in the operation.

OpenTestSystem.Otx.Extensions.Util.Terms.Compare.term
Term[] term
Cardinality [2..*] List of one or more expressions that are used in the operation.
Definition: Util.cs:858