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 Data Access Application<br />

Block<br />

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

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

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

checklists to test your own work.<br />

Requirements for the Data Access Application Block<br />

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

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

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

The application block should be extensible.<br />

The application block should manage database connections.<br />

The application block should provide a straightforward way to handle parameters<br />

for stored procedures.<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 have good performance metrics.<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 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 Data Access Application Block’s<br />

design must satisfy.

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

Saved successfully!

Ooh no, something went wrong!