What is the difference between lr_endtranscation("transcationname",lr_auto)lr_endtranscation("transcationname",lr_pass)lr_endtranscation("transcationname",lr_fail)

Showing Answers 1 - 1 of 1 Answers

Hi,


You can manually set the status of the transaction or you can allow LoadRunner to detect it automatically. To manually set the status, you perform a manual check within the code of your script evaluating the return code of a function. For the "succeed" return code, set the status to LR_PASS. For a "fail" return code, set the status to LR_FAIL.

If status is LR_AUTO, then the value of status is automatically assigned by LoadRunner.

For example: Just calling a function to a variable

sstatus = CheckString() //return 0 if passed


if(sstatus==0)

lr_end_transaction("parent handle",LR_PASS)

else

lr_end_transaction("parent_handle",LR_FAIL)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions