I m downloading excel file from my application. I need to calculate how much time it is taking to download the file. There is a button called "download file" in my application.When I click on this button, windows dialog box will pop up asking either to open or save the file. During the recording of the script through load runner ,it is not recording the actions done on the windows dialog box. In this case how can I calculate the time taken to download the file. I 've tried web_get_int_property function but no luck. Please help me in this regard.
so windows and it's interaction with loadrunner is working exactly as designed once again and confusing the hell out of the untrained and unmentored
ie LR records the client-server conversation IT DOES NOT record what happens on the client or the server, dialog boxes in windows are therefore NOT recorded
however, if you are using web protocol read carefully through the script as recorded and look at the corresponding responses too - all will be revealed as to exactly what is happening, which will improve your architectural knowledge of how your application (and others) work - and massively improve you understanding of how LR scripts work
from this you will locate the exact response where the file is being downloaded
from this you will not only be able to see what the file looks like - for whatever checking you need - but you will also find the exact request in the script that this is the response to, which you can now wrap with a transaction of some kind and get the response time for the file download
You might have to use URL-Based recording to capture the appropriate file download request (I had to on a project last year). Now I know it is not considered good form to record the bulk of the script using HTML-based default recording mixed with a little URL-Based, but that is what I successfully did for my script (else the script would have been gigantic and difficult to maintain if full URL-Based recording was used). Try mixed first and if that does not work do full URL-Based.
(And then use web_get_int_property() to snag the downloaded byte count)
-Hope this helps, Terry
Last edited by Terry Horwath; 05-22-2015 at 02:43 AM.