Verify Content
This is pre-built Action located under the @Generic Element, instructs the Avo Assure to verify that the provided content is present in the file or not and save the result in the given dynamic variable.
Syntax
Input Value:
For Text: <file path>;<content to verify>;<abs>(Optional)
<file path>
(Required)
Specify the file path of the file whose content needs to be verified. Supported file format: .txt
<content to verify> (Required)
Specify the text to be verified against the file content.
<abs>
(Optional)
If the specified content is to be verified against the entire text file’s content, then the ‘abs’ argument must be specified.
For Excel: <file path>;<sheetname>;<content to verify>;<abs>(Optional)
<file path>
(Required)
Specify the file path of the file to be searched. Supported file format: .xlsx, .xls
<sheetname> (Required)
Provide name of the worksheet within the file where the search will be performed.
<content to verify> (Required)
Specific text or value that needs to be verified
<abs>
(Optional)
If the specified content is to be verified against the entire excel sheet’s content, then the ‘abs’ argument must be specified.
Output Value:
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
This variable stores the status as true or false
Example 1
Verify specific content exists in a Text file The Verify Content action takes the value from the Input Value column (e.g., C:\sam\data.txt;Hello User) and checks whether the specified content (Hello User) exists in the given file. The action status is saved in the {Status} variable with the following possible values:
True – if the content is found successfully
False – if the content is not found
Example 2
Verify the presence of specific content in a Excel file
The Verify Content action takes the value from the Input Value column (e.g., C:\sam\Avo Bank Flow.xlsx;Sheet1;John white) and checks whether the specified content (John white) exists in the given file. The action status is saved in the {Status} variable with the following possible values:
True – if the content is found successfully
False – if the content is not found
Last updated
Was this helpful?