Validate downloaded files with Low Code Automation
Learn how to validate metadata of file downloads effectively with Low Code Automation.
Low Code Automation simplifies the process of validating file downloads by automating the verification of key metadata such as file name, size, extension, and content accuracy using MD5 checks. You can easily add checks if the downloaded file matches the expected details, reducing manual effort and ensuring accuracy.
Steps to validate downloaded files
- In Low Code Automation, while recording a test, click on the element in your web application that downloads a file. A prompt appears on the recorder indicating that the file is downloading. Once the download is complete, the validation step is automatically captured on the recorder panel.
- Select the Validate (file) downloaded step in the recorder panel to open the validation page.
- Click Download to view to access the file.
- Enable the toggle and add the following validation checks:
-
File name: Enter the expected name of the file. For example, Report_2025. You can filter the file name by checking if it
equals
,contains
,starts with
,not equals
,not contains
ornot starts with
the captured value. -
File type: Specify the expected file type. For example, pdf, csv, xlsx. You can filter a file type to check if it is
equals
ornot equals to
the captured value. -
File size: Enter the expected file size in KB, MB and GB. You can filter a file’s size to check if it is
greater than
,greater than or equal to
,less than
, orless than or equal to
the captured value.
-
File name: Enter the expected name of the file. For example, Report_2025. You can filter the file name by checking if it
- Enable the Content validation toggle to add validation to the file content using MD5 checks. An MD5 checksum is a 32-character hexadecimal number that is computed on a file. If two files have the same MD5 checksum value, then the contents of the two files are the same. In Low Code Automation, an MD5 hash of the file content is automatically generated during recording which is compared with the one generated during replay to ensure the content matches. This check is preferable for static content only.
- Click Save recording.
Edit the file download checks
- Go to All tests and select the required test.
- Click the Tests steps tab and click the Validate file downloaded step.
- In the step page, you can modify the validations for file name, file type, file size and content validation.
- Click Save recording.
Below is a sample test run showing successful file download validations.
To view the details of the passed validations, including file name, size, extension, and content, click See details.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!