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 Logging Application<br />

Block<br />

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

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

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

to test your own work.<br />

Requirements for the Logging Application Block<br />

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

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

The application block should be extensible.<br />

The application block should support common logging operations.<br />

The application block should be able to distribute logging information to multiple<br />

sources.<br />

The application block should support tracing to mark the start and end of an<br />

activity.<br />

The trace listeners, filters, and formatters should be configurable.<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 support configurable instrumentation, including<br />

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

logs.<br />

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

applications.<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 support<br />

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

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

satisfy.

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

Saved successfully!

Ooh no, something went wrong!