Earlier, I explained that LoadRunner does not record client side activities!
That means, that LoadRunner records PDF file transferring ('cause it is a network activity) and does not record PDF file saving (which does not generate any network traffic).
In some case, we need to save PDF (or other) file on local disk and process it (edit, parse, or compare with 'etalon' file).
The present LoadRunner video tutorial explains how to record PDF file saving in LoadRunner.
How to record PDF file saving in LoadRunner? - LoadRunner video
This is a first LoadRunner script from the above LoadRunner video tutorial.
Note: this script is based on HP's article #11766 - How to verify download of a file in Web scripts (login to HP required to access).
As I shown in LoadRunner video, above script works incorrectly.
This is an improved LoadRunner script which captures and saves PDF file correctly:
- How to get unique file name in LoadRunner?
- LoadRunner - How to record a file saving, performed by user from browser page?
- LoadRunner VuGen scripting - How to automatically download file from server and save it to local disk?
Do you like this LoadRunner visual tutorial? Would you like to receive them in the future?
If yes, please subscribe to this blog RSS feed or by Email. (How to subscribe? VIDEO guide)