Verify File Exists

The Verify File Exists action in the Avo Assure is found under the @Generic Element is used to verify if the file is present in the given location or not and store the result in an output variable.

Syntax

Input: <file_path>;<File_name.extn>

Note: All types of file formats are supported like (.txt. .xlsx, .xls, .pdf, .gif, .doc, .xml,etc)

Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

Usecase/Example:

Scenario

You want to make sure that monthly financial reports are saved in the right folder. During testing, you can use the “Verify file exists” action to check if the report file, like “October_Report.pdf,” is in the specified folder. This ensures the file is saved correctly and easy to find.

Input

Provide the input values as below:

  • C:\Data Folder;October_Report.pdf

Expected Result

It should verify whether the “October_Report.pdf” file is present in the given location.

Output

The Verify File Exists Action Verifies if this file “C:\Data Folder; October_Report.pdf” existed in the given location or not and save its result in the {result} output variable as “True”. This output can be used for display or other purposes.

Last updated

Was this helpful?