Wednesday, March 11, 2009

How can i check the download size of a file during replay

If your application is having a functionality to download a file; and you want to check the size of that file during replay of your script to verify whether the download is happening fine or not.

You must me thinking whether there is any function in LR or not... well there is a function to check exactly the same. The code snippet is mentioned below:

********************
int downloadsize;

web_submit_data(".....");

downloadsize= web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE) ;

*******************

1 comment: