Find
This pre-built action, found under @Generic Element, instructs Avo Assure to check whether a specific string exists within a larger string and identify its position and the result is stored in a dynamic variable.
Syntax
Input Value: <actual string>;<string to find>;<wildcard>(optional)
<actual string> (Required)
The input syntax contains the actual string and the expected string to be found, separated by a semicolon, both of which are written in the input column.
<string to find> (Required)
Which required string to find
<wildcard> (optional)
wildcard: this is declaration where user will declare which wildcard character is using for current execution In Avo Assure ‘?’ And ‘*’ are supported as wildcard character
Note:
This Action supports Wildcard characters for performing findoperations. Wildcard characters allowed: ? – For single character, * - For zero/multiple character.
If search has to be done using wildcard characters then the third input has to be “wildcard” (case insensitive).
If the wildcard option is specified, then the characters '?' or '*' should be present in the second input.
If the wildcard option is not specified, then it will perform normal find operation and will not search the find string using for wildcard characters.
Output Value:
<Dynamic Variable >
(Required)
First Dynamic Variable tells the position at which the string to be found is present within the actual string
<Dynamic Variable >
(Required)
Second Dynamic Variable saves the result is True/False status which tells whether the string to be found is present within the actual string or not.
Example:
Find text using a wildcard in a comment (I like this post! ️ #amazing) The Find action takes the value from the Input Value column (I like this post! ️ #amazing) and searches for the string (like*) using a wildcard, where * represents any characters after like. It finds a match and stores the position in the {Found Position} variable. whereas the operation status is stored in the {Status} variable, with the following possible values:
True - if the string found or
False - if the string not found

Last updated
Was this helpful?