Verify Downloaded File in Robot Framework (Selenium Library)

1,313 views
Skip to first unread message

Automation S

unread,
Mar 12, 2020, 7:34:23 AM3/12/20
to robotframework-users
Hi,

I am able to download the file but I want to verify that file is downloaded or NOT successfully at the given location.
Also I have to check that downloaded(e.g. .doc file) file having some expected content.

Is it possible using ROBOT Framework. Could you please help me for same.


Thanks,
Automation

Alexander Ignatiev

unread,
Mar 12, 2020, 7:41:48 AM3/12/20
to devayani...@gmail.com, robotframework-users
Hi,


KR,
Alexander


чт, 12 мар. 2020 г., 14:34 Automation S <devayani...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/ad8f73c4-3d73-4cbb-8d41-de684f7bea28%40googlegroups.com.

Adrien Vergnaud

unread,
Mar 12, 2020, 8:32:38 AM3/12/20
to robotframework-users
You can use following keywords:
"File Should Exist" to know if the file is in the required folder.
Then" Diff Files" if you want to compare your download file with another one.

Operatin System library should help you to do what you want.

BR,

Adrien

Automation S

unread,
Mar 12, 2020, 11:50:33 PM3/12/20
to robotframework-users
SUre...Will try this..Thank you soo much


On Thursday, March 12, 2020 at 5:11:48 PM UTC+5:30, Alexander Ignatiev wrote:
Hi,


KR,
Alexander


чт, 12 мар. 2020 г., 14:34 Automation S <devayan...@gmail.com>:
Hi,

I am able to download the file but I want to verify that file is downloaded or NOT successfully at the given location.
Also I have to check that downloaded(e.g. .doc file) file having some expected content.

Is it possible using ROBOT Framework. Could you please help me for same.


Thanks,
Automation

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Automation S

unread,
Mar 12, 2020, 11:51:05 PM3/12/20
to robotframework-users
Sure will try this..Thank you soo much

Automation S

unread,
Mar 13, 2020, 2:02:18 AM3/13/20
to robotframework-users
Is it possible to change download file default location?
For now it is getting downloaded inside the Machine=>Download folder but I want to download it at project level directory. is it possible?


On Thursday, March 12, 2020 at 5:11:48 PM UTC+5:30, Alexander Ignatiev wrote:
Hi,


KR,
Alexander


чт, 12 мар. 2020 г., 14:34 Automation S <devayan...@gmail.com>:
Hi,

I am able to download the file but I want to verify that file is downloaded or NOT successfully at the given location.
Also I have to check that downloaded(e.g. .doc file) file having some expected content.

Is it possible using ROBOT Framework. Could you please help me for same.


Thanks,
Automation

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Adrien Vergnaud

unread,
Mar 13, 2020, 6:58:42 AM3/13/20
to robotframework-users
Yes it is possible. But for this you have to set the download folder in Firefox or Chrome. And after this, when you open browser, open it with the good profile using the download folder.

Bahubali Patil

unread,
Mar 13, 2020, 7:08:33 AM3/13/20
to robotframework-users
One more check point :

You can get the md5 checksum of the file at both source and destination.

The checksum value should be same at source and destination to conclude the file download was successful.

Automation S

unread,
Mar 20, 2020, 5:44:48 AM3/20/20
to robotframework-users
Hi...I am able download file with the help of OperatingSystem Library..

Automation S

unread,
Mar 20, 2020, 5:45:33 AM3/20/20
to robotframework-users
I am able to do it with the help of Operating System Library
Reply all
Reply to author
Forward
0 new messages