You are on page 1of 2

TOSCA DI SPECIALIST

WIZARD – CREATE CUSTOM TEMPLATES

28
WIZARD – CREATE CUSTOM TEMPLATES

Exercise 10: Create Custom Templates for Field Tests

Objective:
➢ By the end of this exercise, you will be able to create a custom Field Test Template that will be used by
all users for multiple fields in the Wizard to create Field Tests on a large scale.

Why is this important?


➢ Tosca provides the standard Templates based on some valuable but generic business logic SQL
Statements. We can create new Templates for business logic if the existing ones do not cover our
needs. Templates may also need to be adjusted for other database syntax.

Note: The standard Templates that you will see in the “Field Tests: Database to Database” are written in SQL
Server syntax. For the Field Tests Templates provided in the Training Folder, we have adjusted the
Templates’ syntax for our SQLite databases.

Instructions:

1. Navigate to the Folder location Data Integrity Testing>>_DI Templates>>TestCase



Templates>>Field Tests>>Database to Database>>Training.

2. Copy and paste the “Min Length: SQLite” Template into the “Training” Folder and rename the

Template to My New Filed Test.

3. For the newly copied “My new Field Test” Template, add the text LIMIT 500 at the end of the

SQL query for both Source and Target TestSteps in the “SQL Statement” TestStepValue.

4. Select the “My new Field Test” Template and open Properties. Ensure that the DITemplate
Property has the Value “True”. This is the property that enables the Template to be displayed ❑
and selected in the Wizard.

Hints:
➢ This Template update is a simple example. You can add simple and advanced SQL Statements in
these Templates to be used by the Wizard for testing Fields formatting and business logic.

29

You might also like