Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: Web HTTP/HTML Protocol - lr_get_transaction_duration throws error

$
0
0

Hi,

 

As Function Reference of Vugen - "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".

So you should place 'lr_get_transaction_duration' function inside the transaction.

 

double trans_time, wait_time;
   
    lr_start_transaction("test");
   
    lr_think_time(2);
   
    web_url("..",
        "URL=....................",
         ...............
        LAST);
   
    lr_think_time(5);


    trans_time =lr_get_transaction_duration("test");


    lr_end_transaction("test",LR_AUTO);

Regards,

Chau Nguyen


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>