How to create and validate a pdf download script in LoadRunner

How to create and validate a pdf download script in LoadRunner

Saving a file to the local machine during recording of a pdf download script in loadrunner VUgen, by clicking on”save as” button, is a client side activity and does not get recorded. But the action on web page which results the file download box gets recorded in VUgen and actually downloads the file (pdf file/Zip file).

The downloaded file can be found in the data folder of recorded script by checking the size/type of contents.

To verify if the script is downloading file during run-time, check the iteration# folders (inside result1 folder) for the file.

If you know the size of file (in Kbs) which you are downloading, you can also use below code to check if the file has got downloaded successfully or not.