首页 > Web开发 > 详细

Loadrunner print web information

时间:2015-01-15 20:00:57      阅读:322      评论:0      收藏:0      [点我收藏+]
print_result_info(){
    int HttpRetCode, httpInfoLastSocketError, HttpInfoDownloadSize, HttpInfoDownloadTime, HttpInfoTotalRequestStat, HttpInfoTotalResponseStat;
    
    HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
    httpInfoLastSocketError = web_get_int_property(HTTP_INFO_LAST_SOCKET_ERROR);
    HttpInfoDownloadSize = web_get_int_property(HTTP_INFO_DOWNLOAD_SIZE);
    HttpInfoDownloadTime = web_get_int_property(HTTP_INFO_DOWNLOAD_TIME);
    HttpInfoTotalRequestStat = web_get_int_property(HTTP_INFO_TOTAL_REQUEST_STAT);
    HttpInfoTotalResponseStat = web_get_int_property(HTTP_INFO_TOTAL_RESPONSE_STAT);
    log_turnon();
    lr_message("****\nHTTP_INFO_RETURN_CODE: %d\nHTTP_INFO_LAST_SOCKET_ERROR: %d\nHTTP_INFO_DOWNLOAD_SIZE: %d\nHTTP_INFO_DOWNLOAD_TIME: %d\nHTTP_INFO_TOTAL_REQUEST_STAT: %d\nHTTP_INFO_TOTAL_RESPONSE_STAT: %d\n", 
               HttpRetCode, httpInfoLastSocketError, HttpInfoDownloadSize, HttpInfoDownloadTime, HttpInfoTotalRequestStat, HttpInfoTotalResponseStat);
    log_turnoff();
}

 

Loadrunner print web information

原文:http://www.cnblogs.com/keep-walking/p/4226872.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!