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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Test</strong>ing the Caching Application<br />

Block<br />

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

Application Block. If you have modified or extended the Caching 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 Caching Application Block<br />

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

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

The application block should support common caching operations such us adding<br />

items to the cache, removing items from the cache, retrieving items from the cache,<br />

and flushing the cache.<br />

The application block should provide the ability to configure expiration policies.<br />

The application block should provide the ability to cache data in persistent stores,<br />

such as a database and isolated storage.<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 support configurable instrumentation, including<br />

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

logs.<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 verify that the design and the code support<br />

the 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 Caching Application Block’s<br />

design must satisfy.

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

Saved successfully!

Ooh no, something went wrong!