Silk test Exception handling

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

Showing Answers 1 - 6 of 6 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. TestcaseExit(boolean bException)

  2. {

  3.   if (bException)

  4.   {

  5.     //Print the exception

  6.     ExceptLog()

  7.   }

  8.  

  9. SetAppSate()

  10. }

  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