[KShare] How to Download & Verify if a File Exists using TestCloud?

Hi all, :wave:

Today, we are back with another article on Katalon TestCloud!

Have you ever thought about how to handle file downloads and verification during your WebUI tests with TestCloud?

In some scenarios, this capability is crucial to ensure that the files downloaded from your application meet the expected criteria. In this article, we will guide you through the steps to set up your testing environment, download files during your tests, and verify them effectively using Katalon Studio and TestCloud.

:information_source: The following is a ready-to-use FileExecutor class that contains custom keywords for downloading and verify files. The keyword file should be placed under the com.katalon.testcloud package.

In the sample project, you can use the additional keyword, as seen below

1. To get the latest downloaded file:

2. To verify if the downloaded file contains the expected text:


:information_source: For more information, please refer to our documentation at: Download and verify files | Katalon Docs

Please also find the sample project below: :point_down:


If you find this article helpful, then donโ€™t forget to leave a like :+1: or a heart :heart: and share it with your colleagues and team members. Your support to the KShare series is greatly appreciated! :raised_hands:

2 Likes

Thank you very much for the Product Support team (@support.squad) and Khang Dang (Oliver - @khang.dang) for another informative article on Katalon TestCloud!

Dang Khang (Oliver)
Khang Dang (Oliver) - @khang.dang
Khang Dang (Oliver) is a seasoned Senior Product Support Specialist with a wealth of experience and expertise in the area of Customer Support and Product Troubleshooting. Khangโ€™s dedication to excellence is evident in his meticulous approach to problem-solving, always striving to find innovative solutions tailored to each unique situation. His strong communication skills and ability to empathize with customers ensure that their concerns are not only addressed but also resolved with care and efficiency.
2 Likes