Silk test Exception handling

What is the use of Exception handling? Explain with sample code

Showing Answers 1 - 2 of 2 Answers

If unexpected events ,errors,application crash occur during the execution then the execution ill get distrupted.....we can overcome those problems using exception handling....

  Was this answer useful?  Yes

VPS

  • Oct 12th, 2011
 

Exception Handling is a way to handle expected and UN expected exceptions.
typical example is TestcaseExit(), which is called once testcase completes execution, this method is present in defaults.inc file

Code
  1. span style="font-style: italic;">//Print the exception

  2.     ExceptLog()

  3.   }

  4.  

  5. SetAppSate()

  6. }

  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