07.11.2014 Views

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Test</strong>ing the Exception Handling<br />

Application Block<br />

This chapter explains how functional testing techniques were used to test the Exception<br />

Handling Application Block. If you have modified or extended the Exception<br />

Handling Application Block, you can use the same techniques and adapt the chapter’s<br />

templates and checklists to test your own work.<br />

Requirements for the Exception Handling Application Block<br />

The Exception Handling Application Block has the following requirements:<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

The application block should support commonly used exception handling<br />

operations, such as logging the exceptions, replacing the original exception with<br />

another exception and wrapping the original exception with another exception.<br />

The application block should be able to combine the exception handlers. For<br />

example, it should be possible to log the exception information and then replace<br />

the original exception with another.<br />

The application block should support configurable instrumentation, including<br />

WMI (Windows Management Instrumentation), performance counters, and event<br />

logs.<br />

The application block should be extensible.<br />

The application block should be able to read configuration information from any<br />

configuration source, such as an XML file or a database.<br />

The application block should work with desktop applications and with Web<br />

applications.<br />

These requirements must be incorporated into the design and implemented by the<br />

code.<br />

Selecting the <strong>Test</strong> Cases<br />

The first step in a functional review is to make sure that the design and the code<br />

support these requirements. You do this by deciding the test cases that the design<br />

and code must satisfy. Table 1 lists the test cases that the application block’s design<br />

must satisfy.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!