For some reason, I need to get response data size for particular web pages. From Loadrunner, there is one simple method to call: web_get_int_property()
it supports:
- HTTP_INFO_RETURN_CODE
- HTTP_INFO_DOWNLOAD_SIZE
- HTTP_INFO_DOWNLOAD_TIME
- HTTP_INFO_TOTAL_REQUEST_STAT
- HTTP_INFO_TOTAL_RESPONSE_STAT
code sample:
...................
web_browser("www.google.com",
DESCRIPTION,
ACTION,
"Navigate=http://www.google.com/",
LAST);
downloadsize=web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
lr_log_message("%s,size=%d",lr_eval_string("{username}"),downloadsize);
....................
another input from one's blog:
http://www.cptloadtest.com/2005/05/10/PageSizeMonitorInLoadRunner.aspx
it might useful for you to monitor your page size
Thursday, January 08, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment