Sponsored Ad

Monday, November 2, 2009

How to handle exception in software testing

Exception handling is a programming language for the construction or computer hardware mechanism designed to handle the occurrence of some condition that changes the normal flow of execution. For the signaling conditions that are part of the normal flow of execution to see the concepts of signal and the event handler.

Exception or error handling refers to the prediction, detection and resolution of planning, implementation and communication errors. Specialized programs, called error handlers are available for some applications. The best programs of this type of mistakes avoided, if possible, recover from them when they occur without terminating the application, or (if all else fails) gracefully terminate an affected application and save the error information to a file registration.

In programming, an error of development is one that can be prevented. This error can occur in the syntax or logic. Syntax errors that are typos or improper use of special characters are handled by strict proof. Logic errors, also called bugs, occur when the code running does not produce the expected or desired result. Logic errors are best handled by meticulous program debugging.

This can be an ongoing process that involves, besides the traditional routine of cleansing, beta testing before its official launch and customer feedback after its official launch.

Run-time fault occurs during the performance of a plan, commonly because the adverse system developer or handicap input information. An instance is the lack of insufficient memory to run a coating or a memory battle with another program. On the Internet, errors can result from electrical noise, various forms of malware, or an exceptionally strong demand in a server. The errors can be resolved, or minimize their effects through the use of error management programs, by the vigilance of network administrators and servers, and reasonable security countermeasures by Internet users. In settings of the runtime engine, such as Java o. NET tools are available those attach to the runtime engine and every time an exception of interest occurs record debugging information that existed in memory at the time the exception was thrown (call stack and the values heap). These tools are called automated exception handling or error trapping tools and provide "root cause information for exceptions.

Use-

- Determine the ability of the system applications to process transactions Lyrics

- Bugs to cover all unexpected conditions.

- In some system approx. 50% of programming effort will be devoted to handling the error condition.

Aim-

- Determine the implementation of the system recognizes all the requirements of error.

- Determine the responsibility of processing errors have been assigned and procedures give a high probability that errors will be duly corrected.

- Determine During the correction process is maintained reasonable control over the errors.

Instructions for use-

- A group of people with skills needed to anticipate what can go wrong in the application system.

- It is necessary that all persons familiar with the application together to integrate their knowledge of the user area, auditing and troubleshooting.

- Then, the error conditions test logic must be created on the basis of this information assimilated.

When to use-

- Throughout the SDLC.

- Impact of errors must be identified and should be corrected to reduce errors to acceptable levels.

- Used to assist in the process of error of development management and maintenance.

Example:

- Create a set of faulty transactions and enter the application system then see if the system is able to identify problems.

- Use iterative test between transactions and errors of the trap. Correct. Then enter transactions with errors that were not present in the previous system.

Verification Exception Handling-

The point of the exception handling routines is to ensure that the code can handle error conditions. To establish the exception handling routines that are sufficiently robust, it is necessary to submit the code with a wide range of invalid entries or unexpected, as can be created through software fault injection and mutation testing (also sometimes referred to as fuzz testing). One of the more difficult to write software for which the exception handling routines is the software protocol, since a robust protocol implementations must be prepared to receive information that does not comply with the relevant specification (s).

To ensure that the significant regression analysis can be done through a process of software development life cycle, any exception handling must be highly automated verification, and test cases must be generated in a manner scientific, repeatable. Several systems are commercially available that perform these tests.

0 comments:

Post a Comment

Sponsored Ad

Development Updates

Tech Updates