Loadrunner print web information

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();
}

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。