Tuesday, July 17, 2007

what is the difference between lr_endtranscation("transcationname",lr_auto)

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)

No comments: