Ajax Truclient - Error Handling
How do we carryout error handling in case of ajax truclient for Loadrunner 11.04?
Verify, catch error can be used, but how can we implement those and particularly if we want to exit out of action block and move back to init part?
Can anyone please guide?
Unfortunately, I cannot speak authoritatively on 11.04 but I have used error handling on 11.52. In fact... now that I think about it, I think error handling in 11.04 is very limited so your best bet honestly may be to upgrade to 11.52 patch 1 or if you're feeling brave the newly released v12. I didn't work with TruClient much until v11.5.
In v11.52 patch 1. You can:
* Click on your "develop script" button in vugen to bring up FF or IE.
* Note the function libraries option in the drop down located in the upper-right hand corner of your script (just to the left of the browser window)
* Head to function libraries and note that you can add your own "error handler" library.
Once you add that library you can add various functions. Functions that can include error handling capability. I hope this helps, if nothing else it will hopefully help you make a case for upgrading to v11.52 or v12.
-- Dan Corey
Originally Posted by Gyami
You can use the EXIT function and set it to Exit Action with either pass or fail.
Use it within a IF block (ie If Exist or If Verify).