Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

lr_get_transaction_status () not working

$
0
0

Hi Experts,

 

I am trying to use the lr_get_transaction_status () on a LR12 script but for some reason I am not able to use it as the help example describes.. This is the example:

 

 

if (lr_get_transaction_status() == LR_FAIL) {

     /* web_url has failed the transaction. No point in continuing, 
      * because future calls will probably fail too */
     lr_end_transaction("Flight", LR_FAIL);
     return;
}

 

 

 

So I am trying the same syntaxes but the VuGen says: insufficient number of arguments to "lr_get_transaction_status" however if I type the name of an open transaction it works. For example:

 

 

 

if (lr_get_transaction_status(“Transaction1”) == LR_FAIL) {

     /* web_url has failed the transaction. No point in continuing, 
      * because future calls will probably fail too */
     lr_end_transaction("Flight", LR_FAIL);
     return;
}

 

 

Does anyone know if it is possible to get the lr_get_transaction_status () working without specifying the open transaction name manually?

 

I’ll appreciate your help and comments.


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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