码迷,mamicode.com
首页 > Web开发 > 详细

Loadrunner print web information

时间:2015-01-15 20:02:54      阅读:320      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!