Compare Content
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the @Generic Element, instructs the Avo Assure to Compare both files (Text, Excel) whose file paths are given in Input value and save the result in the given dynamic variable.
Input Value:
For Text: <file1path>;<file2path>
<file1path>
(Required)
Provide the first file path whose content will be compared with second file. Supported format: .txt
<file2path> (Required)
Provide the second file path whose content will be compared with the first file.
For Excel: <file1path>;<Sheetname>(Optional);<file2path>;<Sheetname>(Optional)
<file1path>
(Required)
Provide the first excel file path whose content will be compared with the second excel file. Supported format: .xls, .xlsx
<Sheetname> (Optional)
Provide sheet name of the excel file
<file2path> (Required)
Provide the second excel file path whose content will be compared with the first excel file. Supported format: .xls, .xlsx
<Sheetname> (Optional)
Provide sheet name of the excel file
Output Value:
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
This variable stores the status as true or false
Example
Compare the content of two texts files The Compare Content action takes the value from the Input Value column (e.g., C:\sam\New folder;C:\Files\Expected.txt) and compares the content of the two specified files. The comparison result is stored in the {Status} variable, with the following possible values:
True – if the content of two files matches
False – if the content of two files does not match.