BackgroundAn If-Then Decision Step is a type of Decision Step that returns either true or false. This spec verifies the logic that determines which type value is returned. As ensuing Decision Steps rely on If-Then steps in order to execute appropriately (or not), this specification is essential to verifying that business logic will be executed properly. This spec also verifies that If-Then Decision Steps can be attached to Decisions without errors. SpecificationTest Cases: - Mathematical Operators:
- returns true when right and left operand are equal across =
- returns true when right and left operand are equal across =
- returns false when left operand is greater than right operand across =
- returns false when left operand is less than right operand across =
- returns true when left operand is greater than right operand across !=
- returns true when left operand is less than right operand across !=
- returns false when left operand and right operand are equal across !=
- returns true when left operand is greater than right operand across >
- returns false when left operand is less than right operand across >
- returns false when left operand is equal to right operand across >
- returns true when left operand is less than right operand across <
- returns false when left operand is greater than right operand across <
- returns false when left operand is equal to right operand across <
- returns true when left operand is less than right operand across <=
- returns false when left operand is greater than right operand across <=
- returns true when left operand is equal to right operand across <=
- returns false when left operand is less than right operand across >=
- returns true when left operand is greater than right operand across >=
- returns true when left and right operands are equal across >=
- Boolean Operators
- returns false when left condition = false and right condition = true across AND'
- returns false when left condition = true and right condition = false across AND'
- returns false when left and right conditions are false across AND'
- returns true when right and left conditions are true across AND
- returns true when left and right conditions are true across OR
- returns true when left condition = true and right condition = false across OR
- returns true when left condition = false and right condition = true across OR
- returns false when left and right conditions are false across OR
- Additional Operations
- returns false when left operand does not contain right operand across CONTAINS
|