Compare Content
Last updated
Last updated
This is pre-built Action located under the @Generic Element Name. It instructs the Avo Assure Client to Compare both files whose file paths are given in Input syntax and save the result in the given output variable as “True” or “False”.
In the Output variable, “True” will be returned if both the file contents are matching, else “False”.
Input:
For Text: <file1path>; <file2path>
This syntax is for .txt file where user need to provide two file paths of text file to compare.
For Excel: <file1path>;<Sheetname>(Optional);<file2path>;<Sheetname>;(Optional)
This syntax is for Excel File where user needs to provide two file paths of the excel sheet along with its sheetname, to compare both files.
Output:
<Dynamic Variable>(Optional) ;<Dynamic Variable>(Optional)
When you are testing a system that allows users to compare different versions of a document. It’s essential to ensure that changes between document versions are accurately identified.
Input Document Version 1: An earlier version of a policy document.
Document Version 2: A revised version of the same policy document.
Using the Action: In the automation script, the "Compare Content" Action is used to compare the two versions of the document.
Input:
“version1.pdf", "version2.pdf"
The Compare Content Action will return ‘True’ if both files are same else if any differences occurred in the content, then it will return ‘False’ as result.
Expected Result: By using the "Compare Content" Action in this testing scenario, Avo Assure ensure that the document management system effectively states changes, allowing users to review updates and maintain version control.
Output: The resulting status is stored in the {result} output variable as True, which can be utilized for display or other purposes.