File download in ajax truclient in load runner
I 'm trying to download a file from the application and need to measure the time taken to download from the application. Transaction started when I click on download button and need to end the transaction once the dialog box(asks for either to open or save) opened after the file download completed. I 've tried with "step network completed" and "step synchronous network complete" in the end event for the click action. But my transaction is not stopping as soon as the dialog box opened. Couldn't able to stop the transaction. Also I ve given the object timeout to 2000 ms since downloading is taking more time. Is there anyway how can I stop the transaction as soon as the dialog box opened.
Thanks for the replies.
The File, Print, and a few other dialogs are part of the Windows Common Dialog set. They are not a part of the Web Document Object Model, which is what TruClient Operates on. The timing model you note, stopping the timing based upon when a dialog appears, is one grounded purely in a GUI test model, such as QuickTest Professional. There is no server interaction for a dialog to appear, so the timing of this even conveys nothing regarding server performance, the focus of performance testing.
I recommend the following[*] Rebuild this core virtual user as a straight HTTP virtual user. Time the download that results after you enter information in the dialog box for filename and press the [OK] button. You will not find this file on the hard drive after the test. This is by design. To do so would turn your load generator disk subsystem into a bottleneck for the entire test[*] Run a single virtual user, one user, as a graphical virtual user on QTP to measure the difference in response times between server interaction and display to the client. Run this on a dedicated, representative machine with no other virtual users (or controller or ....) running on the host. Then you can set transaction markers to time the appearance of the Windows Common Dialog box.
Replace ineffective offshore contracts, LoadRunnerByTheHour
. Starting @ $19.95/hr USD.
Put us to the test, skilled expertise is less expensive than you might imagine.
Twitter: @LoadRunnerBTH @PerfBytes