Functionize Operators Overview
Functionize Operators allow a user to test dynamic data in a number of ways without complex coding or scripting. Operators in Functionize are called upon in plain English and can handle almost limitless scenarios, including testing number ranges and partial text verifications. They can even refer back to previous steps in the test to ensure the value is equal to or not equal to the current step.
Below is a list of Operators that can be used in Architect test cases. This list includes some, but not all, available operators that can be used.
Operator |
Use of Operator |
Example of Usage of Operator |
Equals |
Used when an element value has to be fully matched. |
Verify the button text equals ‘Save and Continue’ |
Strictly Equals |
Used when an element value has to be fully matched without timing the leading or trailing spaces. |
Verify an input value text equals ‘ Save and Continue ’ |
Not equals |
Used when an element value should not match. |
The calendar header should not be empty. |
Contains |
Used when part of an element value should be verified or commonly used with dynamic data. |
Verify the full name field is present and contains text characters. |
Does not contain |
Used when part of an element should not explicitly include a certain value. |
Verify the calendar drop-down does not include weekends. |
Less than |
When an element or verification should be less than a particular value. |
The benefits premium amount should be less than 3000. |
Greater than |
When an element or verification should be greater than a particular value. |
The total employee count should be greater than 5. |
Less than or equals |
When an element or verification should be less than or equal to a particular value. |
Verify the financial calculator result is less than or equal to 62.5. |
Greater than or equals |
When an element or verification should be greater than or equal to a particular value. |
Verify the total count in the image carousel is greater than or equal to 7. |
Range |
Used when elements or values should fall between an explicitly determined range. |
Click on the submit button and verify the page transition time is within the 2 and 5-second range. |
Equals step value |
The value in this step should be equal to the value in a previous step. |
Verify the handbag in the shopping cart selected equals the step value in step 2. |
Not equals step value |
The value in this step should not be equal to the value in a previous step. |
Verify the username selected does not equal the step value in step 5. |
Contains step value |
The value in this step should contain the full value of a previous step. |
Verify the button states ‘hello’ as the first word and contains step value 15. |
Regular Expressions or regex can also be used in Architect test cases. Below are some, but not all regular expressions that can be used.
Pattern | Use of Pattern | Example of Use of Pattern |
Vertical bar: | |
The value should be one option or the other, text matches the regular expression 'Yes|OK' |
Verify the text reads either 'Yes' or 'OK' |
Parentheses: ( ) |
The value should match to one of a given set of options, text matches the regular expression 'Yes (I|we|they) agree' |
Verify the text reads with either 'I', 'we', or 'they' between 'Yes' and 'agree' |
Question mark: ? |
The value should match to zero or one occurrences of the preceding element, text matches the regular expression 'colou?r' |
Verify the text reads 'color' or 'colour' |
Asterisk: * |
The value should match to zero or more occurrences of the preceding element, text matches the regular expression 'ab*c' |
Verify the text reads 'ac', 'abc', 'abbc', 'abbbc' or so on |
Plus sign: + |
The value should match one or more occurrences of the preceding element, text matches the regular expression 'ab+c' |
Verify the text reads 'abc', 'abbc', 'abbbc' or so on but not 'ac' |
Period: . |
A wildcard to match any character, text matches the regular expression of 'a.b' |
Verify the text reads a string of 'a', any other character, then 'b' |
Square brackets: [ ] |
The value should match an option from the set of characters within the brackets, text matches the regular expression '[a-z0-9]' |
Verify the text reads a string comprised of a lower-case letter and a digit such as 'b8' |
Square brackets, then asterisk: [ ]* |
The value should match to a string with zero or more characters from the set, text matches the regular expression '[A-Za-z0-9]*' |
Verify the text reads a string comprised of zero or more upper-case letters, zero or more lower-case letters, and zero or more digits such as 'User123' |
string.* |
Text followed by a period then an asterisk should match a string beginning with that text, text matches the regular expression 'Begin.*' |
Verify the text reads a sentence that starts with the word 'Begin' |
*.string |
Text preceded by an asterisk then a period should match a string ending with that text, text matches the regular expression '*.finish' |
Verify the text reads a sentence that ends with the word 'finish' |