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)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment