Compare Files
Last updated
Last updated
This pre-built Action is found under the @Generic Element Name. It directs the Avo Assure Client to compare the contents of files specified in the input (.txt, .xml, and .json files). The result, "The number of differences between files," is saved in the output variable.
Input: <Filepath-Original File>; <Filepath - File to Compare>; <Selective/All(Optional)>
By default, the last argument in the syntax is "all," storing the entire file's content in the Output variable. If the final argument is "Selective," the Output variable will display only selective data of file.
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
When you are User for a software product that undergoes regular updates. After each release, it’s essential to verify that the configuration files in the new version match the expected baseline configuration to ensure no critical settings were altered or removed.
Files to Compare: After a new release, you have two configuration files to analyze:
Expected Configuration File: expected_config.json
Actual Configuration File: actual_config.json
Expected Result: The actual configuration file should match the expected configuration file exactly, confirming that no unauthorized changes were made during the release process.
Output: The resulting count of difference between the two files being compared is stored in the {result} output variable as, which can be utilized for display or other purposes.