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.

Introduction<br />

<br />

Setting Up the Cryptography Application Block Automated <strong>Test</strong>s<br />

To set up the Cryptography Application Block automated tests, you must run the test<br />

script. To do this, run the Crypto<strong>Test</strong>Script.bat script that is located in the <strong>Test</strong>Script<br />

folder. This folder is in the Cryptography Functional <strong>Test</strong>s folder. The automated<br />

tests are also in this folder.<br />

Setting Up the Data Access Application Block Automated <strong>Test</strong>s<br />

To set up the Data Access Application Block automated tests, you must run the<br />

appropriate test script. If you are running test cases that use a SQL database as the<br />

backing store, run the Setup<strong>Test</strong>DB.bat script that is located in the <strong>Test</strong>Script folder.<br />

This folder is in the DAAB Functional <strong>Test</strong>s folder.<br />

If you are running test cases that use an Oracle database, you must first create a database<br />

named “entlib,” a user named “testuser,” and a password that is “testuser.” Next,<br />

perform the following procedure to create the database tables and stored procedures.<br />

<br />

<br />

To run the scripts do the following<br />

1. Grant permissions to create session to testuser;<br />

2. Grant permissions to create table to testuser;<br />

3. Grant permissions to create procedure to testuser;<br />

To create the Oracle tables and stored procedures<br />

1. Run the scripts in the Table folder to create the tables.<br />

2. Run the scripts in the Data folder to create the data for the tables.<br />

3. Run the SP scripts in the SP folder to create the stored procedures.<br />

The automated tests, which you can use for both the SQL database and the Oracle<br />

database, are in the DAAB Functional <strong>Test</strong>s folder.<br />

Setting Up the Logging Application Block Automated <strong>Test</strong>s<br />

To set up the Logging Application Block automated tests, first create a private message<br />

queue named “EntLib<strong>Test</strong>” and a public message queue named “EntLib<strong>Test</strong><br />

Public.” Next, run the script that creates a logging database. To do this, click Start,<br />

point to All Programs, point to Microsoft patterns & practices, point to <strong>Enterprise</strong><br />

<strong>Library</strong>–January 2006, point to Application Blocks for .NET, point to Logging Application<br />

Block, and then click Create Logging Database. The automated tests are in<br />

the Logging Functional <strong>Test</strong>s folder.

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

Saved successfully!

Ooh no, something went wrong!