All IT Courses 50% Off
QA Tutorials

Error handling Testing

Error handling testing is a type of software testing which is performed to test the ability of the system to handle the errors and exceptions in the software during runtime. This testing is performed with the help of both developers and testers. Error handling techniques should include handling both errors and exception scenarios.

Objective of Error handling testing:

The objectives of error handling testing:

  • To check the system ability to handle errors.
  • To check system highest soak point.
  • To do sure errors can be handles properly by the system in the future.
  • To do system capable of execution handling also.

Steps involved in the error handling testing
  1. Test Environment:

The software testing technique influences the setup of the test environment so that the testing process can run smoothly. This step includes planning for testing. A system that is going to be tested is made sure have to less significant data as there might be crashes in the system during testing.

  1. Test case Generation:

Generate the test cases create the deliberate errors and exceptions and observe for the software handles it. Suppose software operates on fractions then setting the denominator of a fraction is zero. Test case generation is associated with the developing team as without knowing the internal code, test cases will not be designed.

  1. Test Case Execution:

Once the test case generation and the real testing process begin, it is the most prominent part of the testing process. It includes running the program over the test case generated.

4. Result Analysis:

Execution of the test case, its result is analyzed. It involves testing the inconsistency of the expected output for generated test cases. There may be a chance of the program is going into an infinite loop which will lead up to software failure.

5. Re-test:

If the testing has failed, it is reported as a defect to developers. After the defect is fixed, then once more all the above steps are performed to test the system. It also includes the system under new test cases generated.

Verification in Exception handling:

The exception handling routine programs are written by the developers to handle the exceptions and display the appropriate exception message to the user. In order to declare that exception handling routines are robust enough, it is necessary to present the code with a wide array of invalid or maybe unexpected inputs such as it can be created via software fault injection and mutation testing techniques. Protocol software is the most difficult one for which we can handle the errors and exceptions. Since a protocol implementation must be prepared to receive input that does not comply with the relevant specifications.

In order to ensure that meaningful regression analysis can be conducted throughout a software development lifecycle process any exception handling verification should be automated, test cases will be generated in a scientific, repeatable fashion. Commercially available systems exist that perform such testing.


  1. Helps us to construct to an error handling powered software.
  2. It always makes the software ready for all circumstances.
  3. It develops the exception handling technique in the software.
  4. Helps  is maintenance of the software.


  • It is not budget friendly as both the developing and testing team is involved.
  • The testing effort if high.
Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Articles

Back to top button

Get Python Course
worth 499$ for FREE!

Offer valid for 1st 20 seats only, Hurry up!!

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

H2kinfosys Blog will use the information you provide on this form to be in touch with you and to provide updates and marketing.