ETL Validator gives quick and easy way to create test cases for checking conformance with list of values. Here, we will create a test case that will identify records from Customers table that 'Marital Status' <> 'Married' or 'Single' or 'Divorced'
4. Usecase :
LoV Conformance Check
Create a test case:
Identify records from
Customers table which
have ‘Marital Status’
values other than
‘Married’ or ‘Single’ or
‘Divorced’
Start with creating a
new Data Rules Test
Plan
5. Usecase:
Name the test plan.
Select the Database
Connection.
Navigate to the next
screen.
LoV Conformance Check
6. Usecase:
Expand the schema; in
this example, ‘public’.
Click on ‘Add Custom
Rule’.
Rule Builder window
opens. Click on ‘Add
New Attribute Rule’
LoV Conformance Check
8. Usecase:
Enter value ‘Married’.
So a rule is created where
cust_marital_status <>
‘Married
Create 2 more rules -
cust_marital_status <>
‘Single’
cust_marital_status <>
‘Divorced’
LoV Conformance Check
9. Usecase:
Click on ‘Build Query’
Data grid below shows
records which didn’t satisfy
the rules we set up in ‘Query
Conditions’.
The ‘SQL’ pane shows the sql
that was generated as per the
rules we specified.
Name the query.
Click on ‘Save Query’.
LoV Conformance Check
10. Usecase:
The new rule ‘Lov_Check’ is
displayed in Data Rules
window.
Navigate to Next Screen
where these test cases are
run.
Before clicking on ‘Run’, click
on settings and unselect all
the tables except
‘Customers’.
‘Save’ the selection.
LoV Conformance Check
11. Usecase:
Click on ‘Run’.
All the Rules set up for
‘Customers’ table will be
executed.
‘FAILED’ indicates that there are
records that didn’t satisfy the
rule.
The grid shows results from first
test case in the list above.
Click on subsequent rows to see
those results.
Click on ‘View Report in Browser’
to see same results in web
layout.
LoV Conformance Check
12. Usecase:
Same info is
displayed in web
layout.
The link can be
shared with others.
Click on the upward
arrow to see the
records
LoV Conformance Check
13. More with ETL Validator….
• Validating Field and Data Format
• Data counts validation with allowed variance
• Check Data Quality using Data Rules Test Plan
• Advanced ETL Testing using a Component Test Case
• Avoiding inline views on your queries in ETL Validator
• Checking for Mandatory Fields
www.datagaps.com