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 for Performance and Scalability 201<br />

Operation Users TPS<br />

Data Access 1<br />

Application Block<br />

ExecuteNonQuery<br />

method<br />

Data Access 10<br />

Application Block<br />

ExecuteNonQuery<br />

method<br />

Data Access 50<br />

Application Block<br />

ExecuteNonQuery<br />

method<br />

Response<br />

time (ms)<br />

Total<br />

transactions<br />

Overhead<br />

(percent)<br />

For an explanation of these metrics, see Measuring Performance.<br />

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

The tests for the Exception Handling Block use different handlers. Table 15 lists the<br />

scenarios for the Exception Handling Application Block. Here is an explanation of<br />

each of the columns:<br />

●<br />

●<br />

●<br />

ID. This column lists the ID number for each scenario.<br />

Scenario. This column lists the Exception Handling Application Block scenario<br />

being tested.<br />

Users. This column lists the different numbers of users that the tests simulated.<br />

Table 15: Exception Handling Application Block Scenarios<br />

ID Scenario Users<br />

1 Process an exception without handlers. 1, 5, 10, 50<br />

2 Process an exception with the Wrap handler. 1, 5, 10, 50<br />

3 Process an exception with the Replace handler. 1, 5, 10, 50<br />

4 Process an exception with the Logging handler. 1, 5, 10, 50<br />

5 Process an exception with the Replace and Logging<br />

handlers.<br />

1, 5, 10, 50<br />

Creating the <strong>Test</strong> Harness<br />

For an example of how to create a test harness, see Building <strong>Test</strong> Harnesses. Iterations<br />

of the test should create an Exception object. For an example of how to create a<br />

domain object for each iteration, see Using the <strong>Test</strong> Script. In addition, the application<br />

block should handle and rethrow the exception for each iteration. Create a Web<br />

page to run the test harness.

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

Saved successfully!

Ooh no, something went wrong!