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 213<br />

<strong>Test</strong>ing the Security Application Block<br />

The tests for the Security Application Block tested the application block’s authorization<br />

methods. Table 23 lists the scenarios for the Security Application Block. Here is<br />

an explanation of each of the columns.<br />

●<br />

●<br />

●<br />

●<br />

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

Scenario. This column lists the Security Application Block scenario being tested.<br />

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

Configuration setting. This column lists the cache that stores the security information<br />

or the authorization provider.<br />

Table 23: Security Application Block Scenarios<br />

ID Scenario Users Configuration setting<br />

1 Save or read the Identity property. 1, 10, 50, 150 Property is cached in<br />

SQL Server.<br />

2 Save or read the Principal property. 1, 10, 50, 150 Property is cached in<br />

SQL Server.<br />

3 Save or read the Profile property. 1, 10, 50, 150 Property is cached in<br />

SQL Server.<br />

4 Authorize the user. 1, 10, 50, 150 Use AzMan to authorize<br />

the user.<br />

5 Authorize the user. 1, 10, 50, 150 Use the Authorization<br />

Rule Provider to authorize<br />

the user.<br />

Creating a <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 the security provider objects. For an example of how to<br />

create a domain object for each iteration of the test, see Using the <strong>Test</strong> Script. Create a<br />

Web page to run the test harness.<br />

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

Because of time constraints, the Security Application Block was not measured against<br />

a baseline. Table 24 lists the Security Application Block test code.

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

Saved successfully!

Ooh no, something went wrong!