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

LR Get Transaction status

$
0
0

I was under the impression that the lr_get_transaction_status would get and display the transaction status (pass/fail) but that is  not the case (unless there is something that I am doing wrong). Is there a function I could use to retrieve/save the transaction status so that I can use it for my condition in my if-statement? Basically, if the status is failed I want the vuser to not complete any other steps and log out. Thank you in advance.

 

LR Version 12.0

 

if (lr_get_transaction_status ("07_Validate") == LR_FAIL)

{

 

lr_end_transaction("07_Validate", LR_FAIL);

return;

 

}

 

I just mirrored the example giving in the LR function reference.  


Viewing all articles
Browse latest Browse all 3978

Trending Articles



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