What is Boolean Logic

Boolean Logic in the context of testRigor is a way to combine boolean conditions like "Status" contains "Success".
You can use three main operators to join these conditions:

Here are some examples:


copy url

AND operator

AND operator helps to join conditions which both must be true for the result to be true. For example, "Status" contains "Success" and "City" is equal to "Paris" will only be true when the selected row contains “Success” in column “Status” and has string “Paris” in column “City” at the same time.


copy url

OR operator

OR operator helps to find a row containing one or both conditions. For example, "Status" contains "Success" or "City" is equal to "Paris" will only be true when the selected row either contains “Success” in column “Status” or has string “Paris” in column “City” or both.


copy url

NOT operator

NOT operator helps calculate the negative of the condition. For example, not "Status" contains "Success" will only be true when the selected row does not contain “Success” in column “Status”.


copy url

Brackets ()

Brackets () help to group conditions together. For example, ("Status" contains "Success" or "Status" contains "In progress") and "City" is equal to "Paris" will only be true when the selected row contains “Success” or “In progress” in column “Status” and has string “Paris” in column “City” at the same time. In this example “Status” column must contain either “Success” or “In progress”, and column “City” must contains “Paris”.