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.

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

This chapter discusses some of the test cases that uncovered bugs and issues in <strong>Enterprise</strong><br />

<strong>Library</strong> – January 2006. The test cases cover three areas:<br />

●<br />

●<br />

●<br />

Performance<br />

Security<br />

Functionality<br />

For each of these test cases, there is:<br />

●<br />

●<br />

●<br />

A problem, which is the problem the test case uncovered.<br />

A proposed solution, which is the proposed solution to the problem.<br />

A verification, which is how the solution was tested to see whether it solved the<br />

problem.<br />

The test cases are representative of the sorts of bugs and issues you might see in your<br />

own code.<br />

Performance <strong>Test</strong>ing<br />

The goals of performance testing are:<br />

●<br />

●<br />

To verify that the application block meets the performance requirements while<br />

staying within the budgeted constraints on system resources. The performance<br />

requirements can include different measurements, such as the time it takes to<br />

complete a particular scenario (this is known as the response time) or the number<br />

of concurrent or simultaneous requests that can be satisfied for a particular operation<br />

within a specific response time. Examples of system resources are CPU time,<br />

memory, disk I/O, and network I/O.<br />

To identify the bottlenecks in the application block’s code. The bottlenecks can<br />

be caused by issues such as memory leaks, slow response times, or resource<br />

contention under load.<br />

The performance tests measure cost in terms of system resources. The unit of measurement<br />

is transactions per second. The baseline is the performance of <strong>Enterprise</strong><br />

<strong>Library</strong> version 1.1 and .NET Framework code that performs similar functions. The<br />

cost is expressed as the percentage of overhead. This is the difference, in transactions<br />

per second, between the baseline and <strong>Enterprise</strong> <strong>Library</strong> – January 2006, divided by<br />

the baseline transactions per second.

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

Saved successfully!

Ooh no, something went wrong!