WinRunner uses exception handling to detect an unexpected event when it occurs and act to recover the test run. WinRunner enables you to handle the following types of exceptions: Pop-up exceptions: Instruct WinRunner to detect and handle the appearance of a specific window. TSL exceptions: Instruct WinRunner to detect and handle TSL functions that return a specific error code. Object exceptions: Instruct WinRunner to detect and handle a change in a property for a specific GUI object. Web exceptions: When the WebTest add-in is loaded, you can instruct WinRunner to handle unexpected events and errors that occur in your Web site during a test run.
RE: How do you handle unexpected events and errors?
I have 40 scripts . Each scripts will be executed and closed with the help of call_close from main script.If an unexpected error occurs in any script then the winrunner should stop executing that particular script close the window it was handling and should return the control to the main script so that it will call_close the next scripts.The winrunner pop up should be handled or winrunner pop up should not be triggered
RE: How do you handle unexpected events and errors?
Friends this is one of the most important question during the learning of functionality tools...Particular in winRunner functionality tool u can handle it by in-built defined Handler function or User defined Handler function.A user defined Function has the following structure...
class function name() { declarations; statements; } Here class of the function can be either static or public.A static function is only to test within the function where it was defined.Make this function as a compile module so that your machine can generate an executable file to handle the operation.reload ur function and after the operation unload it...