Robot Framework Download File

前端 未结 3 1964
借酒劲吻你
借酒劲吻你 2020-12-29 11:56

I use Robot Framework.

On my HTML page I have a simple button. When you click on it, it downloads a pdf file.

How can I check with Robot Framework if the fil

3条回答
  •  甜味超标
    2020-12-29 12:16

    You need to check the MD5 of the file - before download and after download. Both the MD5 should be same.

    Assuming file is on Linux machine - before and after download :

    1. Login to linux machine using SSH library
    2. Run the command : #md5sum PATH_TO_FILE
    3. Store the output in a variable.
    4. Compare the variable value

    Hope so this information was helpful.

提交回复
热议问题