How to write code for object exceptional handling and TSL exceptional handling and popup.can anyone write the code for me. thanks

Showing Answers 1 - 1 of 1 Answers

adisgee

  • Aug 2nd, 2007
 

Here u go :

Step (3):
exception_off_all();
exception_on("MyException");

regular code follows
....
....
....

exception_off("MyException");

Step (2):
The MyException should be stored in a compiled library as a public function.
public MyException()
{
 ...
 ...
 exception handling code
 }

Step (1):
All the exceptions should defined int the code within your test driver script.
e.g:
define_popup_exception("MyException", "Handle the window 'MyPopup' if it comes", "wndMyPopup");

Note: wndMyPopup = logical name of the window that will be searched for and handled as an exception.

Hope that answers the qs,

Thanks,
Aditya.

  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