Saturday, August 27, 2022

Write transaction responses to a text file in Vugen Load runner | Capture transaction response times load runner | Capture and display the response times from replay log vugen LoadRunner

If you want to write the transaction response time to a file in Vugen, you must use the function lr_get_transaction_duration(). The lr_get_transaction_duration function returns the duration in seconds of the specified transaction to this point. You use this function to determine the total transaction time before the transaction has ended. lr_get_transaction_duration returns values greater than zero only for open transactions. Here is the code to copy the transaction response time and display it to the replay log.

SAMPLECODE:
Action()
{

        double trans_time;
        int status;
    
        web_cleanup_cookies();       
        web_set_sockets_option("SSL_VERSION""TLS1.2");
        web_set_max_html_param_len("999999");
                             
        
        lr_start_transaction("Digital_HondaCity_01_HomePage");
            
     web_url("AirVistas"
        "URL=https://Airvistas/service/access/findseat/"
        "TargetFrame="
        "Resource=0"
        "RecContentType=text/html"
        "Referer="
        "Snapshot=t10096.inf"
        "Mode=HTML"
        LAST);  
     
          trans_time = lr_get_transaction_duration("Digital_HondaCity_01_HomePage");
          
          lr_end_transaction("Digital_HondaCity_01_HomePage",LR_AUTO);
        
                     
         if (trans_time)
         lr_output_message("The duration of DHC Home Page : %f seconds", trans_time);
         else
         lr_output_message("The duration cannot be determined.");
          return 0;
}

Here is the output:


If you want to copy this duration to a file ,Please follow the below link.

Friday, August 26, 2022

NL-NETWORK-01 error in NeoLoad

Error detected by NeoLoad

Error Code: NL-NETWORK-01
Message: Network error: An IO error occurred sending the request.
Details: java.net.SocketException: Network is unreachable: no further information     

This is an Miscellaneous I/O error when connecting to the server . When you see this error, immediately check the https URL that you are using for your request. It may be wrong URL or having some typos in it or may the server end the app is down. Once you correct it and replay it should work.