Академический Документы
Профессиональный Документы
Культура Документы
0% DimDistAccountSnapshot 3
0% DimDistWarehouse 10
0% DimItem 11
0% DimDate 1
0% DimPremise 4
0% DimCOT 6
0% DimPackage 5
0% DimFlavor 6
0% DimReleaseType 6
0% DimPackageType 5
0% DimDistributor 7
0% DimNBBGeo 6
0% DimCleansedAccount 39
0% DimDataStatus 4
0% DimNBBRole 9
0% DimState 11
0% DimNBBSalesOrg 10
0% DimNBBPersonnelMap 10
0% DimSyndicatedData 8
0% DimCoreFlavor 11
0% DimDistPersonnel 11
0% DimDistWarehouseSalesRepMap 11
0% FactMonthlySales 8
0% FactNonBuyPOD 5
0% FactPODGoal 11
0% FactDistInventory 12
0% FactNBBShipments 8
0% FactAvailability 11
0% FactOrders 10
0% FactNBBInventory 6
0% FactForecast 8
0% FactFeaturesAdsDisplay 9
0% FactSaleDay 8
% Pass Fact Table Assigned To # Tests
0% Cube_DW Test Cases 53
k
# Tests by
Priority Comments
High 12
Medium 1
Low 2
Not Required 0
High 3
Medium 0
Low 0
Not Required 0
High 7
Medium 3
Low 0
Not Required 0
High 8
Medium 1
Low 2
Not Required 0
High 1
Medium 0
Low 0
Not Required 0
High 1
Medium 1
Low 2
Not Required 0
High 3
Medium 1
Low 2
Not Required 0
High 2
Medium 1
Low 0
Not Required 0
High 3
Medium 1
Low 2
Not Required 0
High 3
Medium 1
Low 2
Not Required 0
High 2
Medium 1
Low 2
Not Required 0
High 4
Medium 1
Low 2
Not Required 0
High 3
Medium 1
Low 2
Not Required 0
High 12
Medium 9
Low 18
Not Required 0
High 3
Medium 1
Low 2
Not Required 0
High 6
Medium 1
Low 2
Not Required 0
High 6
Medium 3
Low 2
Not Required 0
High 4
Medium 2
Low 4
Not Required 0
High 5
Medium 3
Low 2
Not Required 0
High 3
Medium 3
Low 2
Not Required 0
High 6
Medium 3
Low 2
Not Required 0
High 6
Medium 3
Low 2
Not Required 0
High 6
Medium 3
Low 2
Not Required 0
# Tests by
Priority Comments
High 9
Medium 0
Low 0
Not Required 0
High 7
Medium 1
Low 0
Not Required 0
High 4
Medium 1
Low 0
Not Required 0
High 7
Medium 2
Low 2
Not Required 0
High 8
Medium 2
Low 2
Not Required 0
High 4
Medium 2
Low 2
Not Required 0
High 7
Medium 2
Low 2
Not Required 0
High 5
Medium 3
Low 2
Not Required 0
High 5
Medium 1
Low 0
Not Required 0
High 4
Medium 2
Low 2
Not Required 0
High 5
Medium 2
Low 2
Not Required 0
High 4
Medium 2
Low 2
Not Required 0
# Tests by
Priority Comments
High 53
Medium 0
Low 0
Not Required 0
Testing Instructions
Step Direction
1 View the Summary tab to determine which Dimension Tables and/or Facts are assigned to your name
2 Select the tab with the label that matches your assigned Dimension Table and/or Fact
3 Fill out the Name and Date fields on top of your assigned Dimension Table and or Fact
4 Starting with Step 1, read the Scenario and Expected Result
5 Perform the Testing Steps and determine whether or not the Expected Result occurs
6 If the Expected Result DOES occur, leave the Actual Result column blank and enter "P" or "Pass" in the Pass / Fail column
7 If the Expected Result DOES NOT occur, leave the Actual Result column blank and enter "F" or "Fail" in the Pass / Fail
column
8 Repeat Steps 4-7 for each step in the Unit Test
9 When you are finished with the all of the steps, review the Pass / Fail column
10 After completion of all test scripts for the package, return to the Summary tab and appropriately fill in the "% Pass" column
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDistAccount
Tester's Name:
Test Date: DD/MM/YYYY
Description: Distributor supplied accounts and attributes
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
3 L New Change the Type 1 fields for row 10 back to the original values: Row should be updated with the original values
State and Country. new row inserted
4 L New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
5 H New Change the Type 1 fields for row 10 to an invalid value not found in Row should be updated with the "Invalid" flag v
the Decode table: State and Country . Invalid values could be:
State = PQ
Country = BeerWorld
**Make sure to complete Test 7 to bring the values back to the
original**
6 H New Verify the Decode table inserted 2 new rows to flag the new "Invalid 2 new rows will be added to the bottom of the li
Values" new values containing the "Invalid" flag.
7 H New Change the Type 1 fields for 1 row back to the original values: Row should be updated with the original values
State and Country new row inserted
8 H New Negative value testing: Change the Type 1 field for row 20: Channel Should receive appropriate error message that
to Null instead of its current value. **Make sure to complete Test be a null value
9 to bring the values back to the original**
9 H New Change the Type 1 field for row 20: Channel back to its original Row should be updated with the original values
value new row inserted
10 H New Duplicate ID Check for VIPID - VIP Account Number. This is a These values should be unique and no duplicat
unique number assigned by VIP to each account independent of
distributor.
11 H New Constraints: During constraint testing, the objective is to validate All contraints should be populated and unique.
unique constraints, primary keys, foreign keys, indexes, and
relationships. Contraints for this dimension are:
DisAccountKey, BKDistSupplierID, BKRetailOutletCustomerID.
12 H New Initialization During the ETL process: If the code does not re- All fields from original data where a Null value i
initialize the cursor (or working storage) after each record, there is a should be null. Compare to AJWinterAle spread
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: VIPID, Key Account Flag, Record Type, Premise
Name, Licensee Name, Address2, Zip, Country, Phone, Chaine
Code, Chain Code 2, Fine Wine Store, Chain Status, Display
Account, Patron Ethnicity, Industry Volume, Patron Lifecycle,
Occupation, Patron Age, Type, Outlet Type, Primarey Sales Route,
Secondary Sales Route, StoreNumber RetailOutletStores, and
Territory Flag 1 - Territory Flag 30.
13 M New New Record Validation: Add a new test record with test data. 1 new row should be added. InsertAuditKey sho
populated with DimAudit.InsertAuditKey value f
record.
14 H New Invalid Business Key Change: Check to ensure that invalid changes Should receive appropriate error message that
to business keys cannot be made. Business Keys to check: key.
BKDistSupplierID and BKRetailOutletCustomerID.
15 H New Check Type 2 fields as these are derived in the ETL. These are These fields should be changing as data is load
standard Slowly Changing Dimension (SCD)-2 columns where changed. Ensure that values are being updated
historical changes need to be tracked. Type 2 fields to check are: date/time and reasons.
RowIsCurrent, RowStartDate, RowEndDate, and
RowChangeReason.
16
17
18
19
20
21
22
23
24
25
26
27
28
ses
Test Summary
Total Pass 0
Total Fail 0
Total N/A 15
Total Tests on Worksheet 15
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Rows updated should be 1 and Rows inserted should be 1 Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Row should be updated with the "Invalid" flag value inserted. Run the following SQL statement against NBB DW: To be added
2 new rows will be added to the bottom of the list showing the Run the following SQL statement against the NBB DW: Select * From
new values containing the "Invalid" flag. dbo.Decode
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Should receive appropriate error message that this field cannot Run the following SQL statement against NBB DW: To be added
be a null value
DistAccountKey = 20
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
These values should be unique and no duplicates. Run the following SQL statement against NBB DW: To be added
All contraints should be populated and unique. Run the following SQL statement against NBB DW: To be added
All fields from original data where a Null value is expected Run the following SQL statement against NBB DW: To be added
should be null. Compare to AJWinterAle spreadsheet.
1 new row should be added. InsertAuditKey should be Run the following SQL statement against NBB DW: To be added
populated with DimAudit.InsertAuditKey value for this new
record.
Should receive appropriate error message that this is an invalid Run the following SQL statement against NBB DW: To be added
key.
These fields should be changing as data is loaded and Run the following SQL statement against NBB DW: To be added
changed. Ensure that values are being updated with appropriate
date/time and reasons.
Pass
Fail
Pass / Fail Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDistAccountSnapshot
Tester's Name:
Test Date: DD/MM/YYYY
Description: Snapshot of accounts to be able to track account changes over time
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
2 H New After completing DimDistAccount unit test 3 verify new record with 1 new row should be added with State and Cou
modified State and Country values (back to original values) is back to original values
added to this dimension table.
3 H New After completing DimDistAccount unit test 17 verify brand new 1 new row should be added as a copy of the ne
record has been added to this table. DimDistAccount. Verify that DistAccountSnapsh
current date as the test is run.
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ses
s over time
Test Summary
Total Pass 0
Total Fail 0
Total N/A 3
Total Tests on Worksheet 3
1 new row should be added with State and Country changes Run the following SQL statement against the NBB DW: Select * From
back to original values dbo.DimDistAccountSnapshot
1 new row should be added as a copy of the new record from Run the following SQL statement against the NBB DW: Select * From
DimDistAccount. Verify that DistAccountSnapshotDate field has dbo.DimDistAccountSnapshot
current date as the test is run.
Pass
Fail
Pass / Fail Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDistWarehouse
Tester's Name:
Test Date: DD/MM/YYYY
Description: Lists all of the distributor and warehouse combinations
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
2 H New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
UpdateAuditKey value from DimAudit table sho
DimDistWarehouse.Update Audit Key field for r
3 M New Change the Type 1 fields for 1 row back to the original values: Row should be updated with the original values
Address, City, State, Zip, and Country. new row inserted
4 M New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
5 H New Negative value testing: Change the Type 1 field for row 20: Change Should receive appropriate error message that
to Null instead of its current value. Perform negative value testing cannot be a null value.
for: Distributor Warehouse ID, DistIributor ID, State, Warehouse
Name, Distributor Name, and Birthday (Year warehouse joined
NBB).
**Make sure to complete Test 8 to bring the values back to the
original**
6 H New Change the Type 1 field for row 20: Distributor Warehouse ID, Row should be updated with the original values
DistIributor ID, State, Warehouse Name, Distributor Name, and new row inserted.
Birthday back to their original value.
7 H New Constraints: During constraint testing, the objective is to validate All contraints should be populated and unique.
unique constraints, primary keys, foreign keys, indexes, and
relationships. Contraints for this dimension are:
DistWarehouseKey, BKDistWhseID, and DistID.
8 H New Initialization During the ETL process: If the code does not re- All fields from original data where a Null value i
initialize the cursor (or working storage) after each record, there is a should be null. Compare to Loft1\Instance1 spr
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Address1, Address2, City, Zip, and Phone.
9 M New New Record Validation: Add a new test record with test data. 1 new row should be added. InsertAuditKey sho
populated with DimAudit.InsertAuditKey value f
record.
10 H New Invalid Business Key Change: Check to ensure that invalid changes Should receive appropriate error message that
to business keys cannot be made. Business Keys to check: key.
DistWarehouseKey, BKDistWhseID, and DistID.
11
12
13
14
15
16
17
18
19
ses
Test Summary
Total Pass 0
Total Fail 0
Total N/A 10
Total Tests on Worksheet 10
Expected Result
Row should be updated with the different values inserted, no
new row inserted
DistWarehouseKey = 10
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName, DestinationDatabase,
DestinationTableName, InsertStdRowCnt, UpdateRowCnt, PkgName From
AuditTableProcessing, AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKey
DistWarehousetKey = 10
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName, DestinationDatabase,
DestinationTableName, InsertStdRowCnt, UpdateRowCnt, PkgName From
AuditTableProcessing, AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKey
DistWarehousetKey = 20
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimItem
Tester's Name:
Test Date: DD/MM/YYYY
Description: Contains combinations of flavor and package types
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
2 H New Check that the updated rows are in the audit tables Rows updated should be 1 and Rows inserted
UpdateAuditKey value from DimAudit table sho
DimDistWarehouse.Update Audit Key field for r
3 L New Change the Type 1 fields for 1 row back to the original values: Item Row should be updated with the original values
Status (A/I) new row inserted
4 H New Change the Type 1 fields for row 25: Flavor Abbreviation, Package Row should be updated with the different value
Abbreviation, Package Name, Package Type, and Item Long Name. new row inserted
**Make sure to complete Test 6 to bring the values back to the
original**
5 M New Check that the updated rows are in the audit tables Rows updated should be 1 and Rows inserted
UpdateAuditKey value from DimAudit table sho
DimItem.Update Audit Key field for row 25.
6 L New Change the Type 1 fields for 1 row back to the original values: Row should be updated with the original values
Flavor Abbreviation, Package Abbreviation, Package Name, new row inserted
Package Type, and Item Long Name.
7 H New Source-to-Target field to field validation. Check that data from Data from GP should match data in DimItem fo
spreadsheet has been uploaded correctly into warehouse. Fields to
check: UnitsPerCase, Case Weight, Pallet Weight, and Ounces Per
Case.
8 H New Negative value testing: Change the Type 1 field for row 20: Change Should receive appropriate error message that
to Null instead of its current value. Perform negative value testing cannot be a null value.
for: BKVIPSRSID, Units Per Case, and Ounces Per Case.
**Make sure to complete Test 11 to bring the values back to
the original**
9 H New Change the Type 1 field for row 20: BKVIPSRSID, Units Per Case, Row should be updated with the original values
and Ounces Per Case. back to their original value. new row inserted.
10 H New Initialization During the ETL process: If the code does not re- All fields from original data where a Null value i
initialize the cursor (or working storage) after each record, there is a should be null. Compare to SKU and GP sourc
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: ItemID, FlavorShortName, PackageShortName,
FlavorName, PackageName, PackageType, ReleaseType,
CurrentStatus, CostofGoodsSold, LongName, CaseWeight, Pallet
Weight, and ItemIsActive.
11 H New Check Type 2 fields as these are derived in the ETL. These are These fields should be changing as data is load
standard Slowly Changing Dimension (SCD)-2 columns where changed. Ensure that values are being updated
historical changes need to be tracked. Type 2 fields to check are: date/time and reasons.
RowIsCurrent, RowStartDate, RowEndDate, and
RowChangeReason.
12
13
ses
Test Summary
Total Pass 0
Total Fail 0
Total N/A 11
Total Tests on Worksheet 11
Rows updated should be 1 and Rows inserted should be 1. Run the following SQL statement against the RevereAWDW: Select
UpdateAuditKey value from DimAudit table should be in PrimarySourceDatabase, PrimarySourceTableName,
DimDistWarehouse.Update Audit Key field for row 20. DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Row should be updated with the different values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Rows updated should be 1 and Rows inserted should be 1. Run the following SQL statement against the RevereAWDW: Select
UpdateAuditKey value from DimAudit table should be in PrimarySourceDatabase, PrimarySourceTableName,
DimItem.Update Audit Key field for row 25. DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Data from GP should match data in DimItem for each record. Run the following SQL statement against NBB DW: To be added
Should receive appropriate error message that these fields Run the following SQL statement against NBB DW: To be added
cannot be a null value.
ItemKey = 20
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted.
All fields from original data where a Null value is expected Run the following SQL statement against NBB DW: To be added
should be null. Compare to SKU and GP source data.
These fields should be changing as data is loaded and Run the following SQL statement against NBB DW: To be added
changed. Ensure that values are being updated with appropriate
date/time and reasons.
Pass
Fail
Pass / Fail Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDate
Tester's Name:
Test Date: DD/MM/YYYY
Description: Date dimension contains one row for every Calender Day, beginning at 1
system. Need to test initial data load. The Fiscal Date dimension uses the excel sprea
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
5
6
8
9
10
11
12
13
14
15
Framework Test Cases
w for every Calender Day, beginning at 1/1/1985 through 12/31/2035. The Date dimension is de
al Date dimension uses the excel spreadsheet 'Date Dimension Calendar Only'.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 1
Testing on Hold till later [Date] Total Tests on Worksheet 1
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimPremise
Tester's Name:
Test Date: DD/MM/YYYY
Description: Indicates if on/off premise (bars with draft)
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
3 L New Change the Type 1 fields for 1 row back to the original values: Row should be updated with the original values
Premise On/Off. new row inserted
4 L New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
5
6
7
8
9
10
11
12
13
14
15
16
17
ses
Test Summary
Total Pass 0
Total Fail 0
Total N/A 4
Total Tests on Worksheet 4
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimCOT
Tester's Name:
Test Date: DD/MM/YYYY
Description: An attribute of Accounts that classifies them in different channels
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
2 M New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
UpdateAuditKey value from DimAudit table sho
DimCOT.Update Audit Key field.
3 L New Change the Type 1 fields for 1 row back to the original values: Row should be updated with the original values
COT Name. new row inserted
4 L New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
5 H New Check derived value for PremiseName field for data accuracy. If COT Number < 21 then PremiseName = Off,
6 H New Need to test initial data load of this dimension for Type 1 data fields. Data Validation: Perform source-to-target field-
Data fields to check are: COTNumber and COTName. accuracy.
7
8
9
10
11
12
13
ses
channels
Test Summary
Total Pass 0
Total Fail 0
Total N/A 6
Total Tests on Worksheet 6
Rows updated should be 1 and Rows inserted should be 1. Run the following SQL statement against the NBB DW: Select
UpdateAuditKey value from DimAudit table should be in PrimarySourceDatabase, PrimarySourceTableName,
DimCOT.Update Audit Key field. DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Rows updated should be 1 and Rows inserted should be 1 Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
If COT Number < 21 then PremiseName = Off, else On. Run the following SQL statement against NBB DW: To be added
Data Validation: Perform source-to-target field-to-field data Run the following SQL statement against NBB DW: To be added
accuracy.
Pass
Fail
Pass / Fail Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimPackage
Tester's Name:
Test Date: DD/MM/YYYY
Description: Package size of the beers
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
2 New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
3 H New Change the Type 1 fields for 1 row back to the original values: Row should be updated with the original values
PackageShortName, PackageName, Flavor/Package Abbrev new row inserted
(BKVIPSRSID).
4 M New Check that the updated row is in the audit tables Rows updated should be 1 and Rows inserted
5 H New Initialization During the ETL process: If the code does not re- All fields from original data where a Null value i
initialize the cursor (or working storage) after each record, there is a should be null. Compare to SKU source data.
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Package Abbreviation and Package Name.
6
7
8
9
10
11
12
13
14
15
16
17
ses
Test Summary
Total Pass 0
Total Fail 0
Total N/A 5
Total Tests on Worksheet 5
Rows updated should be 1 and Rows inserted should be 1 Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Row should be updated with the original values inserted, no Run the following SQL statement against NBB DW: To be added
new row inserted
Rows updated should be 1 and Rows inserted should be 1 Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
All fields from original data where a Null value is expected Run the following SQL statement against NBB DW: To be added
should be null. Compare to SKU source data.
Pass
Fail
Pass / Fail Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimFlavor
Tester's Name:
Test Date: DD/MM/YYYY
Description: Flavors of the Beers
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
FlavorShortName, FlavorName, Flavor/Package Abbrev
(BKVIPSRSID).
5 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Flavor Abbreviation and Flavor Name.
6 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. Type 2 fields to check are:
RowIsCurrent, RowStartDate, RowEndDate, and
RowChangeReason.
7
8
9
10
11
12
13
14
15
16
17
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 6
Testing on Hold till later [Date] Total Tests on Worksheet 6
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Name, Flavor/Package Abbrev new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to SKU source data.
values may contain data from a previous
ontain a Null value and should be
viation and Flavor Name.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. Type 2 fields to check are: date/time and reasons.
ate, RowEndDate, and
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
PackageKey = 75
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against NBB DW: To be added
Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimReleaseType
Tester's Name:
Test Date: DD/MM/YYYY
Description: Contains a class of flavors like seasonal or lips of death
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
ReleaseType and Flavor/Package Abbrev (BKVIPSRSID).
5 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Release Type.
6 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. Type 2 fields to check are:
RowIsCurrent, RowStartDate, RowEndDate, and
RowChangeReason.
7
8
9
10
11
12
13
14
15
16
17
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 6
Testing on Hold till later [Date] Total Tests on Worksheet 6
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Package Abbrev (BKVIPSRSID). new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to SKU source data.
values may contain data from a previous
ontain a Null value and should be
e.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. Type 2 fields to check are: date/time and reasons.
ate, RowEndDate, and
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
ReleaseTypeKey = 92
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against NBB DW: To be added
Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimPackageType
Tester's Name:
Test Date: DD/MM/YYYY
Description: Contains draft or package column
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
PackageType and Flavor/Package Abbrev (BKVIPSRSID).
5 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Package Type.
6
7
8
9
10
11
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 5
Testing on Hold till later [Date] Total Tests on Worksheet 5
for 1 row back to the original values: Row should be updated with the original values inserted, no
Package Abbrev (BKVIPSRSID). new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to GP source data.
values may contain data from a previous
ontain a Null value and should be
e.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
PackageTypeKey = 92
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDistributor
Tester's Name:
Test Date: DD/MM/YYYY
Description: A table to contain the name of the distributor
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
Distributor Name.
5 H New Change the Type 1 field for row 5: Distributor Name to Null instead
of their current value. **Make sure to complete Test 6 to bring
the values back to the original**
6 H New Change the Type 1 field for row 5: Distributor Name back to its
original value
7 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Distributor Name.
8
9
10
11
12
13
Framework Test Cases
e distributor
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 7
Testing on Hold till later [Date] Total Tests on Worksheet 7
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
r row 5: Distributor Name to Null instead Should receive appropriate error message that this field cannot
ake sure to complete Test 6 to bring be a null value
iginal**
r row 5: Distributor Name back to its Row should be updated with the original values inserted, no
new row inserted
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to GP source data.
values may contain data from a previous
ontain a Null value and should be
ame.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
DistributorKey = 5
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimNBBGeo
Tester's Name:
Test Date: DD/MM/YYYY
Description: Shows the geography of warehouse groupings called areas
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
MarketName, Area Name, Region Name, and Division Name.
5 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Market Name, Area Name, Region Name, and
Division Name.
6 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. Type 2 fields to check are:
RowIsCurrent, RowStartDate, RowEndDate, and
RowChangeReason.
7
8
9
10
11
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 6
Testing on Hold till later [Date] Total Tests on Worksheet 6
for 1 row back to the original values: Row should be updated with the original values inserted, no
Region Name, and Division Name. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
e, Area Name, Region Name, and
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. Type 2 fields to check are: date/time and reasons.
ate, RowEndDate, and
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
NBBGeoKey = 12
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimCleansedAccount
Tester's Name:
Test Date: DD/MM/YYYY
Description: Cleansed store attributes to each outlet across US which is authorized t
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
StoreBannerName, LicenseName, Street Address, City, State, Zip,
Country Name, and Phone Number.
5 H New Change the Type 1 fields for row 500: Chain Store Number,
Franchise Indicator, Chain Status, and Chain Hierarchy Level.
**Make sure to complete Test 7 to bring the values back to the
original**
6 M New Check that the updated row is in the audit tables
7 L New Change the Type 1 fields for 1 row back to the original values:
Chain Store Number, Franchise Indicator, Chain Status, and Chain
Hierarchy Level.
9 H New Change the Type 1 fields for row 500: Class of Trade, Sub-Class of
Trade, Cuisine Type, Premise Type, and Store Status. **Make sure
to complete Test 11 to bring the values back to the original**
11 L New Change the Type 1 fields for 1 row back to the original values:
Class of Trade, Sub-Class of Trade, Cuisine Type, Premise Type,
and Store Status.
13 H New Change the Type 1 fields for row 500: Malt Beverage Indicator,
Wine Beverage Indicator, Spirits Indicator, Distribution Center
Code, Latitude, and Longitude. **Make sure to complete Test 15
to bring the values back to the original**
14 M New Check that the updated row is in the audit tables
15 L New Change the Type 1 fields for 1 row back to the original values:
Malt Beverage Indicator, Wine Beverage Indicator, Spirits Indicator,
Distribution Center Code, Latitude, and Longitude
17 H New Change the Type 1 fields for row 500: FIPS Code, MSA Code,
Account Cluster, Open Date, and Closed Date. **Make sure to
complete Test 19 to bring the values back to the original**
New
19 L Change the Type 1 fields for 1 row back to the original values:
FIPS Code, MSA Code, Account Cluster, Open Date, and Closed
Date.
New
20 L Check that the updated row is in the audit tables
New
21 H Change the Type 1 fields for row 500: Immediate Owner (IO), IO
Address, IO City, IO State, IO Zip, and IO Phone. **Make sure to
complete Test 23 to bring the values back to the original**
New
22 M Check that the updated row is in the audit tables
New
23 L Change the Type 1 fields for 1 row back to the original values:
Immediate Owner (IO), IO Address, IO City, IO State, IO Zip, and IO
Phone.
New
24 L Check that the updated row is in the audit tables
New
25 H Change the Type 1 fields for row 500: Divisional Break (DB), DB
Address, DB City, DB State, DB Zip, and DB Phone. **Make sure
to complete Test 27 to bring the values back to the original**
New
26 M Check that the updated row is in the audit tables
New
27 L Change the Type 1 fields for 1 row back to the original values:
Divisional Break (DB), DB Address, DB City, DB State, DB Zip, and
DB Phone.
New
28 L Check that the updated row is in the audit tables
New
29 H Change the Type 1 fields for row 500: Buying Office (BO), BO
Address, BO City, BO State, BO Zip, and BO Phone. **Make sure
to complete Test 31 to bring the values back to the original**
New
30 M Check that the updated row is in the audit tables
New
31 L Change the Type 1 fields for 1 row back to the original values:
Buying Office (BO), BO Address, BO City, BO State, BO Zip, and
BO Phone.
New
32 L Check that the updated row is in the audit tables
New
33 H Change the Type 1 fields for row 500: Corporate HQ (HQ), HQ
Address, HQ City, HQ State, HQ Zip, and HQ Phone. **Make sure
to complete Test 35 to bring the values back to the original**
New
34 M Check that the updated row is in the audit tables
New
35 L Change the Type 1 fields for 1 row back to the original values:
Corporate HQ (HQ), HQ Address, HQ City, HQ State, HQ Zip, and
HQ Phone.
New
36 L Check that the updated row is in the audit tables
New
37 H Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: StoreBannerName, LicenseName, Street Address,
Address 2, City, State, Zip, County Name, Country Name, Phone
Number, Chain Code, Chain Store Number, Chain Hierarchy Level
1, Class of Trade, Sub-Class of Trade, Cuisine Type, Premise
Type, Store Status, Malt Beverage Indicator, Wine Beverage
Indicator, Spirits Indicator, Distribution Center Code, Latitude, and
Longitude, FIPS Code, MSA Code, Account Cluster, Open Date,
and Closed Date, Immediate Owner (IO), IO Address, IO City, IO
State, IO Zip, IO Phone, Divisional Break (DB), DB Address, DB
City, DB State, DB Zip, DB Phone, Buying Office (BO), BO
Address, BO City, BO State, BO Zip, BO Phone, Corporate HQ
(HQ), HQ Address, HQ City, HQ State, HQ Zip, HQ Phone.
New
38 H Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. Type 2 fields to check are:
Chain Code, Chain Store Number, Chain Hierarchy Level 1, Store
Status, Distribution Center Code, Account Cluster, Open Date, and
Closed Date, Immediate Owner, Divisional Break, Buying Office,
Corporate HQ, RowIsCurrent, RowStartDate, RowEndDate, and
RowChangeReason.
New
39 H Duplicate ID Check for VIPID - VIP Number. This is a unique
number assigned by VIP to uniquely identify each outlet.
New
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 39
Testing on Hold till later [Date] Total Tests on Worksheet 39
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
eName, Street Address, City, State, Zip, new row inserted
Number.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Chain Store Number, Row should be updated with the different values inserted, no
Status, and Chain Hierarchy Level. new row inserted
Test 7 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
chise Indicator, Chain Status, and Chain new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Class of Trade, Sub-Class of Row should be updated with the different values inserted, no
mise Type, and Store Status. **Make sure new row inserted
ing the values back to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
of Trade, Cuisine Type, Premise Type, new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Malt Beverage Indicator, Row should be updated with the different values inserted, no
Spirits Indicator, Distribution Center new row inserted
ude. **Make sure to complete Test 15
to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Wine Beverage Indicator, Spirits Indicator, new row inserted
Latitude, and Longitude
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: FIPS Code, MSA Code, Row should be updated with the different values inserted, no
te, and Closed Date. **Make sure to new row inserted
g the values back to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
ccount Cluster, Open Date, and Closed new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Immediate Owner (IO), IO Row should be updated with the different values inserted, no
IO Zip, and IO Phone. **Make sure to new row inserted
g the values back to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Address, IO City, IO State, IO Zip, and IO new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Divisional Break (DB), DB Row should be updated with the different values inserted, no
e, DB Zip, and DB Phone. **Make sure new row inserted
ing the values back to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Address, DB City, DB State, DB Zip, and new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Buying Office (BO), BO Row should be updated with the different values inserted, no
e, BO Zip, and BO Phone. **Make sure new row inserted
ing the values back to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
dress, BO City, BO State, BO Zip, and new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row 500: Corporate HQ (HQ), HQ Row should be updated with the different values inserted, no
e, HQ Zip, and HQ Phone. **Make sure new row inserted
ing the values back to the original**
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
ddress, HQ City, HQ State, HQ Zip, and new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
Name, LicenseName, Street Address,
, County Name, Country Name, Phone
in Store Number, Chain Hierarchy Level
ss of Trade, Cuisine Type, Premise
everage Indicator, Wine Beverage
Distribution Center Code, Latitude, and
SA Code, Account Cluster, Open Date,
te Owner (IO), IO Address, IO City, IO
ivisional Break (DB), DB Address, DB
B Phone, Buying Office (BO), BO
e, BO Zip, BO Phone, Corporate HQ
y, HQ State, HQ Zip, HQ Phone.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. Type 2 fields to check are: date/time and reasons.
Number, Chain Hierarchy Level 1, Store
Code, Account Cluster, Open Date, and
wner, Divisional Break, Buying Office,
ent, RowStartDate, RowEndDate, and
PID - VIP Number. This is a unique These values should be unique and no duplicates.
o uniquely identify each outlet.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
CleansedAccountKey = 500
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDataStatus
Tester's Name:
Test Date: DD/MM/YYYY
Description: Is the data approved or not at the warehouse level
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
DateApprovedFor, DateApprovedOn, and Approved By.
7
8
9
10
11
12
13
Framework Test Cases
warehouse level
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 6
Testing on Hold till later [Date] Total Tests on Worksheet 6
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
provedOn, and Approved By. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.
y keys, foreign keys, indexes, and
r this dimension are:
he Date), Date, and DistWarehouseKey .
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
dOn and Approved By.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
DataStatusKey = 12
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimNBBRole
Tester's Name:
Test Date: DD/MM/YYYY
Description: Various roles at NBB.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
Role Name.
9 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: NBBRole (i.e. Role Name).
10
11
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 9
Testing on Hold till later [Date] Total Tests on Worksheet 9
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
Rows updated should be 1 and Rows deleted should be 1
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
. Role Name).
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
NBBRoleKey = 6
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimState
Tester's Name:
Test Date: DD/MM/YYYY
Description: State Codes and descriptions
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
State ID and State Description.
9 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are:State Description.
10 H New Negative value check. Change the Type 1 field for row 5: State ID
to Null instead of their current value. **Make sure to complete
Test 11 to bring the values back to the original**
11 H New Change the Type 1 field for row 5: State ID back to its original value
instead of the null value.
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 11
Testing on Hold till later [Date] Total Tests on Worksheet 11
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
tion. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
tate Description. Rows updated should be 1 and Rows deleted should be 1
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
tion.
ange the Type 1 field for row 5: State ID Should receive appropriate error message that this field cannot
ent value. **Make sure to complete be a null value
es back to the original**
r row 5: State ID back to its original value Row should be updated with the original values inserted, no
new row inserted.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
StateKey = 48
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimNBBSalesOrg
Tester's Name:
Test Date: DD/MM/YYYY
Description: NBB organizational people and hierarchy
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
Employee Title, Name of Employee, Reports To, Job Function,
DataWarehouseID, Manager Flag.
7 L New Delete new employee added in Test 5 to bring data back to original
state and test delete functionality.
9 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Employee Title, Reports To, Job Function,
DistWarehouseID, and ManagerFlag.
10 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. RowIsCurrent,
RowStartDate, RowEndDate, and RowChangeReason.
11
12
13
Framework Test Cases
ierarchy
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 10
Testing on Hold till later [Date] Total Tests on Worksheet 10
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Employee, Reports To, Job Function, new row inserted
er Flag.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
ed in Test 5 to bring data back to original Rows updated should be 1 and Rows deleted should be 1
onality.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
le, Reports To, Job Function,
nagerFlag.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. RowIsCurrent, date/time and reasons.
te, and RowChangeReason.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
NBBSalesOrganizationKey = 65
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimNBBPersonnelMap
Tester's Name:
Test Date: DD/MM/YYYY
Description: Maps the hierarchy of the NBB personnel.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
NBB Role and Distributor Warehouse.
7 H New Delete new NBB Role added in Test 5 to bring data back to original
state and test delete functionality.
9 H New Change the Type 1 field for row 65: NBB Role and Distributor
Warehouse to Null instead of their current value. **Make sure to
complete Test 10 to bring the values back to the original**
10 H New Change the Type 1 field for row 65: NBB Role and Distributor
Warehouseback to its original value
11
12
13
Framework Test Cases
ersonnel.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 10
Testing on Hold till later [Date] Total Tests on Worksheet 10
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Warehouse. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
ed in Test 5 to bring data back to original Rows updated should be 1 and Rows deleted should be 1
onality.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
r row 65: NBB Role and Distributor Should receive appropriate error message that this field cannot
of their current value. **Make sure to be a null value
g the values back to the original**
r row 65: NBB Role and Distributor Row should be updated with the original values inserted, no
nal value new row inserted
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
NBBPersonnelKey = 65
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimSyndicatedData
Tester's Name:
Test Date: DD/MM/YYYY
Description:
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values: Dist
Warehouse Key, Syndicated Data Type, and Syn Region Name.
7 H New Delete new Syndicate Data Type. added in Test 5 to bring data
back to original state and test delete functionality.
9
10
11
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 8
Testing on Hold till later [Date] Total Tests on Worksheet 8
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Dist Row should be updated with the original values inserted, no
ed Data Type, and Syn Region Name. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
a Type. added in Test 5 to bring data Rows updated should be 1 and Rows deleted should be 1
est delete functionality.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
SyndicateDataKey = 5
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimCoreFlavor
Tester's Name:
Test Date: DD/MM/YYYY
Description: List of the current core flavors to be watched by warehouse.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
Distributor Warehouse , Item, Core Flag, and Grouping Name.
7 H New Delete new Core Flavor. added in Test 5 to bring data back to
original state and test delete functionality.
10 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Core Flag, Grouping Name, and Agreggation Level.
11 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. RowIsCurrent,
RowStartDate, RowEndDate, and RowChangeReason.
12
13
Framework Test Cases
be watched by warehouse.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 11
Testing on Hold till later [Date] Total Tests on Worksheet 11
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
em, Core Flag, and Grouping Name. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
dded in Test 5 to bring data back to Rows updated should be 1 and Rows deleted should be 1
te functionality.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.
y keys, foreign keys, indexes, and
r this dimension are:
houseKey, and ItemKey .
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
rouping Name, and Agreggation Level.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. RowIsCurrent, date/time and reasons.
te, and RowChangeReason.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
CoreFlavorKey = 16
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDistPersonnel
Tester's Name:
Test Date: DD/MM/YYYY
Description: Brief description of the TableName table
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values: VIP
ID, Employee ID, District Sales Manager, District Sales Rep,
Employee Role.
5 H New Add new record with VIP ID, Employee ID, District Sales Manager,
District Sales Rep, Employee Role.
6 M New Check that the updated row is in the audit tables
7 H New Delete new record added in Test 5 to bring data back to original
state and test delete functionality.
10 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: ParentKey, VIPID, Employee ID, District Sales
Manager, District Sales Rep, and Employee Role.
11 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. RowIsCurrent,
RowStartDate, RowEndDate, and RowChangeReason.
12
13
Framework Test Cases
me table
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 11
Testing on Hold till later [Date] Total Tests on Worksheet 11
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: VIP Row should be updated with the original values inserted, no
ales Manager, District Sales Rep, new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
D, Employee ID, District Sales Manager, Rows updated should be 1 and Rows inserted should be 1
ee Role.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
n Test 5 to bring data back to original Rows updated should be 1 and Rows deleted should be 1
onality.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
PID - VIP Number. This is a unique These values should be unique and no duplicates.
o uniquely identify each outlet.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
VIPID, Employee ID, District Sales
ep, and Employee Role.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. RowIsCurrent, date/time and reasons.
te, and RowChangeReason.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
DistPersonnelKey = 20
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Dimension Table: DimDistWarehouseSalesRepMap
Tester's Name:
Test Date: DD/MM/YYYY
Description: Distributor Sales Rep mapping.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 L New Change the Type 1 fields for 1 row back to the original values:
DistributorAccountKey, NBB Personnel, NBB Role, Sales Manager,
and Sales Rep.
5 H New Add new record with NBB Personnel, NBB Role, Sales Manager,
and Sales Rep.
6 M New Check that the updated row is in the audit tables
7 H New Delete new record added in Test 5 to bring data back to original
state and test delete functionality.
10 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: SalesMgrKey and SalesRepKey.
11 H New Check Type 2 fields as these are derived in the ETL. These are
standard Slowly Changing Dimension (SCD)-2 columns where
historical changes need to be tracked. RowIsCurrent,
RowStartDate, RowEndDate, and RowChangeReason.
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 11
Testing on Hold till later [Date] Total Tests on Worksheet 11
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
B Personnel, NBB Role, Sales Manager, new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
Personnel, NBB Role, Sales Manager, Rows updated should be 1 and Rows inserted should be 1
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
n Test 5 to bring data back to original Rows updated should be 1 and Rows deleted should be 1
onality.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.
y keys, foreign keys, indexes, and
r this dimension are:
WarehouseAccountKey,
nd NBBRoleKey.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to source data.
values may contain data from a previous
ontain a Null value and should be
y and SalesRepKey.
se are derived in the ETL. These are These fields should be changing as data is loaded and
Dimension (SCD)-2 columns where changed. Ensure that values are being updated with appropriate
be tracked. RowIsCurrent, date/time and reasons.
te, and RowChangeReason.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
DistSalesRepMapKey = 56
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactDailySales
Tester's Name:
Test Date: DD/MM/YYYY
Description: Actual daily sales from distributors to accounts (and chain accounts) at account by day by sku lev
Priority Status
High - H New Yet to be Tested
Medium - M Open Currently Being Tested
Low - L Closed Testing Complete
Not Required - NR On Hold Testing on Hold till later [Date]
3 H New For newly added record in Test 1 verify calculated value for case Value should be Units * conversion_ce
equivalent (ce)
4 H New For newly added record in Test 1 verify calculated value for barrel Value should be Units * conversion_bbl
equivalent (bbl)
5 H New For newly added record in Test 1 verify calculated value for Value should be Units * conversion_hl
hectoliter equivalent (hl)
6 H New Verify YTD calculations. Year to Date = Days this year since last reporte
7 H New Constraints: During constraint testing, the objective is to validate All contraints should be populated and unique.T
unique constraints, primary keys, foreign keys, indexes, and all created during the ETL Process.
relationships. Contraints for this dimension are:
Sales Key, Item Key, Distributor Warehouse Key, Cleansed
Account Key, DistAccount Key, DateKey, NBBPersonnelKey,
FlavorKey, PackageKey, PackageTypeKey, ReleaseTypeKey,
CoreFlavorKey, PremiseKey, and COTKey.
8 H New Initialization During the ETL process: If the code does not re- All fields from original data where a Null value i
initialize the cursor (or working storage) after each record, there is a should be null. Compare to VIP source data.
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Net Unit Price and Frontline Price.
9 H New Source to Target field-to-field data initialization load. Fields to check All values should be populated as they are not
are: Units, ce, bbl, hl, and original units. Null. Compare to VIP data source.
10
11
12
13
14
15
ses
Test Summary
Total Pass 0
Total Fail 0
Total N/A 9
Total Tests on Worksheet 9
Value should be Units * conversion_ce Run the following SQL statement against NBB DW: To be added
Value should be Units * conversion_bbl Run the following SQL statement against NBB DW: To be added
Value should be Units * conversion_hl Run the following SQL statement against NBB DW: To be added
Year to Date = Days this year since last reported full month. Run the following SQL statement against NBB DW: To be added
All contraints should be populated and unique.These Keys are Run the following SQL statement against NBB DW: To be added
all created during the ETL Process.
All fields from original data where a Null value is expected Run the following SQL statement against NBB DW: To be added
should be null. Compare to VIP source data.
All values should be populated as they are not allowed to be Run the following SQL statement against NBB DW: To be added
Null. Compare to VIP data source.
Pass
Fail
Pass / Fail Actual Results
Created By: Frank Quatraro
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactMonthlySales
Tester's Name:
Test Date: DD/MM/YYYY
Description: Shows 100% of NBB network but only at the distwarehouse level by mo
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New For newly added record in Test 1 verify calculated value for case
equivalent (ce)
4 H New For newly added record in Test 1 verify calculated value for barrel
equivalent (bbl)
5 H New For newly added record in Test 1 verify calculated value for
hectoliter equivalent (hl)
7 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Manual Bad Data Flag.
9
10
11
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 8
Testing on Hold till later [Date] Total Tests on Worksheet 8
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
n Test 1 verify calculated value for case Value should be Units * conversion_ce
n Test 1 verify calculated value for barrel Value should be Units * conversion_bbl
n Test 1 verify calculated value for Value should be Units * conversion_hl
raint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
or this dimension are:
ributor Warehouse Key, Date Key, NBB
s Key.
TL process: If the code does not re- All fields from original data where a Null value is expected
rking storage) after each record, there is a should be null. Compare to VIP source data.
l values may contain data from a previous
ontain a Null value and should be
Data Flag.
ield data initialization load. Fields to check All values should be populated as they are not allowed to be
Null. Compare to VIP data source.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactNonBuyPOD
Tester's Name:
Test Date: DD/MM/YYYY
Description: Non-Buy actual sales used for Points of Distribution (POD)
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
4 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Units, Manual Bad Data Flag, and Aggregation Level.
5 H New Need to verify that Non Buys have no volume.
6
7
8
9
10
11
12
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 5
Testing on Hold till later [Date] Total Tests on Worksheet 5
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are:
unt Key, Distributor Account Key, Item
Key, Package Type Key, Release Type
Core, Premise Key, and COT Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to VIP source data.
values may contain data from a previous
ontain a Null value and should be
al Bad Data Flag, and Aggregation Level.
ys have no volume. For non buys Units field will be null.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactPODGoal
Tester's Name:
Test Date: DD/MM/YYYY
Description: This stores the goals for Points of Distribution.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 fields for row added in Test 1: Goal. **Make
sure to complete Test 5 to bring the values back to the
original**
5 L New Change the Type 1 fields for 1 row back to the original values:
Goal
6 L New Check that the updated row is in the audit tables
7 H New Change the Type 1 field for row 20: Goal to Null instead of its
current value. **Make sure to complete Test 8 to bring the
values back to the original**
8 H New Change the Type 1 field for row 20: Goal back to its original value
10 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Item ID and Aggregation Level.
12
13
Framework Test Cases
f Distribution.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 11
Testing on Hold till later [Date] Total Tests on Worksheet 11
onnelMapKey, FlavorKey,
eTypeKey, PackageKey, PremiseKey,
FlavorKey, DateKey, Item ID, and Goal.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 1: Goal. **Make Row should be updated with the different values inserted, no
o bring the values back to the new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
r row 20: Goal to Null instead of its Should receive appropriate error message that this field cannot
e to complete Test 8 to bring the be a null value
al**
r row 20: Goal back to its original value Row should be updated with the original values inserted, no
new row inserted
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are: POD Goals Key,
, Package Key, Package Type Key,
e Key,Premise Key, Distributor
ey, and Date Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to VIP source data.
values may contain data from a previous
ontain a Null value and should be
Aggregation Level.
eld data initialization load. Fields to check All values should be populated as they are not allowed to be
Null. Compare to VIP data source.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
PODGoalsKey = 20
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactDistInventory
Tester's Name:
Test Date: DD/MM/YYYY
Description: Distributor Inventory
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 fields for row added in Test 1: Unit Tallied,
Inventory Transaction Code, Units Delta from Last Talley, Quantity,
Quantity Units of Measure, and Units.
**Make sure to complete Test 5 to bring the values back to the
original**
7 H New For newly added record in Test 1 verify calculated value for case
equivalent (ce)
8 H New For newly added record in Test 1 verify calculated value for barrel
equivalent (bbl)
9 H New For newly added record in Test 1 verify calculated value for
hectoliter equivalent (hl)
11 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Inventory Transaction Code, Transfer Distributor
Name, Aggregation Level, From Date, and To Date.
13
Framework Test Cases
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 12
Testing on Hold till later [Date] Total Tests on Worksheet 12
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 1: Unit Tallied, Row should be updated with the different values inserted, no
e, Units Delta from Last Talley, Quantity, new row inserted
and Units.
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Unit Row should be updated with the original values inserted, no
ion Code, Units Delta from Last Talley, new row inserted
f Measure, and Units.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
Test 1 verify calculated value for case Value should be Units * conversion_ce
Test 1 verify calculated value for barrel Value should be Units * conversion_bbl
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are: Distributor Key,
house Key, and Date Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to VIP source data.
values may contain data from a previous
ontain a Null value and should be
ansaction Code, Transfer Distributor
From Date, and To Date.
eld data initialization load. Fields to check All values should be populated as they are not allowed to be
Original Units. Null. Compare to VIP data source.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactNBBShipments
Tester's Name:
Test Date: DD/MM/YYYY
Description: Tracks what is sold to the Distributor.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 fields for row added in Test 1: SOPNumber, Net
Units, and Price
**Make sure to complete Test 5 to bring the values back to the
original**
5 L New Change the Type 1 fields for 1 row back to the original values:
SOPNumber, Net Units, and Price.
6 L New Check that the updated row is in the audit tables
8 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: SOP Number, Net Units, and Price.
9
10
11
12
13
Framework Test Cases
utor.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 8
Testing on Hold till later [Date] Total Tests on Worksheet 8
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 1: SOPNumber, Net Row should be updated with the different values inserted, no
new row inserted
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
nd Price. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are: Shipments Key,
istributor Warehouse Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to VIP source data.
values may contain data from a previous
ontain a Null value and should be
r, Net Units, and Price.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactAvailability
Tester's Name:
Test Date: DD/MM/YYYY
Description: Contains Availability by date of the flavors in a given geography. This da
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
5 L New Change the Type 1 fields for 1 row back to the original values:
ReplacementItemKey, Start Date, End Date.
6 L New Check that the updated row is in the audit tables
8 H New Verify for a seasonal item that is not available for one month period
of availability.
9 H New Verify for a discounted item that is not available for one month
period of availability.
11 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: ReplacementItemKey, Start Date and End Date.
12
13
Framework Test Cases
he flavors in a given geography. This data is used strictly to validate the seasonals coming in
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 11
Testing on Hold till later [Date] Total Tests on Worksheet 11
DistWarehouseKey,
rt Date, End Date.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 1: Row should be updated with the different values inserted, no
rt Date, End Date. new row inserted
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
rt Date, End Date. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
. For ItemKey = X where EndDate is not null check that the item
is visible for one month after the period of availability.
hat is not available for one month period Current month should be displayed.
m that is not available for one month Volume should not be displayed.
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are: Availability Key,
Warehouse Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to VIP source data.
values may contain data from a previous
ontain a Null value and should be
tItemKey, Start Date and End Date.
e seasonals coming in from the distributors.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactOrders
Tester's Name:
Test Date: DD/MM/YYYY
Description: FactOrders captures order transactions at the order line item level. Thes
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 fields for row added in Test 1: Units, Distributor
PO, and Price.
**Make sure to complete Test 5 to bring the values back to the
original**
5 L New Change the Type 1 fields for 1 row back to the original values:
Units, Distributor PO, and Price.
6 L New Check that the updated row is in the audit tables
11
12
13
Framework Test Cases
actions at the order line item level. These are orders made by distributors but not yet shipped
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 10
Testing on Hold till later [Date] Total Tests on Worksheet 10
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 1: Units, Distributor Row should be updated with the different values inserted, no
new row inserted
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
Price. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are: Orders Key,
y, Item Key, and Date Key.
eld data initialization load. Fields to check All values should be populated as they are not allowed to be
d Price for Order. Null. Compare to GP data source.
ors but not yet shipped.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactNBBInventory
Tester's Name:
Test Date: DD/MM/YYYY
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 field for row 20: Units to Null instead of its
current value. **Make sure to complete Test 4 to bring the
values back to the original**
4 H New Change the Type 1 field for row 20: Units back to its original value
7
8
9
10
11
Framework Test Cases
y. Calculate inventory basead on incoming and outgoing counts. At any point in time, invento
deltas across time. Additionally, inventory is counted on a regular basis to account for error
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 6
Testing on Hold till later [Date] Total Tests on Worksheet 6
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
r row 20: Units to Null instead of its Should receive appropriate error message that this field cannot
e to complete Test 4 to bring the be a null value
al**
r row 20: Units back to its original value Row should be updated with the original values inserted, no
new row inserted
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and all created during the ETL Process.
r this dimension are: NBB Inventory Key,
eld data initialization load. Fields to check All values should be populated as they are not allowed to be
Null. Compare to GP data source.
y point in time, inventory is not simply summed from the data because
sis to account for errors in deltas, shrinkage, or other discrepancies.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
PODGoalsKey = 20
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactForecast
Tester's Name:
Test Date: DD/MM/YYYY
Description: For Business Plans and Forecasts.
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 fields for row added in Test 1: Business Plan
(BP) Shipments Preliminary, BP Depletions Preliminary, BP
Shipments Final, BP Depletions Final, Market Plan Goal, Monthly
Rolling Depletions, and Monthly Rolling Shipments.
**Make sure to complete Test 5 to bring the values back to the
original**
8 H New Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Business Plan Shipment Prelim, Business Plan
Depletions Prelim, Business Plan Shipment Final, Business Plan
Depletions Final, Market Plan Goal, Monthly Rolling Depletions,
and Monthly Rolling Shipments.
9
10
11
12
13
14
Framework Test Cases
s.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 8
Testing on Hold till later [Date] Total Tests on Worksheet 8
vorKey, PackageKey,
seTypeKey, StateKey,
FlavorKey, and DateKey.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 1: Business Plan Row should be updated with the different values inserted, no
y, BP Depletions Preliminary, BP new row inserted
etions Final, Market Plan Goal, Monthly
onthly Rolling Shipments.
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
ents Preliminary, BP Depletions new row inserted
s Final, BP Depletions Final, Market Plan
etions, and Monthly Rolling Shipments.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and from the PROMO data source.
r this dimension are: Forecast Key, Item
Key, Package Type Key, Release Type
ouseKey, CoreFlavorKey, and Date Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to PROMO source data.
values may contain data from a previous
ontain a Null value and should be
n Shipment Prelim, Business Plan
ss Plan Shipment Final, Business Plan
lan Goal, Monthly Rolling Depletions,
ments.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactFeaturesAdsDisplay
Tester's Name:
Test Date: DD/MM/YYYY
Description: Contains actuals and goals for Features, Ads, and Displays. Features an
Priority Status
High - H New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
2 H new Verify FeatureAdsDisplays add new record is added to table and all
required fields are populated from the appropriate dimensions:
FeatureAdsDisplayKey, ItemKey, FlavorKey, PackageKey,
PacckageTypeKey, PremiseKey, ReleaseTypeKey,
DistWarehouseKey, CoreFlavorKey, and DateKey.
4 H new Change the Type 1 fields for row added in Test 2: Type of
Execution Event and Execution Goal.
**Make sure to complete Test 5 to bring the values back to the
original**
5 M new Check that the updated row is in the audit tables
6 L new Change the Type 1 fields for 1 row back to the original values:
Execution Event and Execution Goal.
9 H new Initialization During the ETL process: If the code does not re-
initialize the cursor (or working storage) after each record, there is a
chance that fields with null values may contain data from a previous
record. Fields that could contain a Null value and should be
checked are: Type of Execution Event, Execution Goal, Execution
Actual, and Unit of Measure.
10
11
12
13
14
Framework Test Cases
eatures, Ads, and Displays. Features and Ads to not map to an item - just like Forecast.
Test Summary
Yet to be Tested Total Pass 0
Currently Being Tested Total Fail 0
Testing Complete Total N/A 9
Testing on Hold till later [Date] Total Tests on Worksheet 9
add new record is added to table and all Rows added should be 1 and Rows inserted should be 1
ed from the appropriate dimensions:
mKey, FlavorKey, PackageKey,
seKey, ReleaseTypeKey,
FlavorKey, and DateKey.
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
or row added in Test 2: Type of Row should be updated with the different values inserted, no
ution Goal. new row inserted
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
ution Goal. new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and from the AJWinterale data source.
r this dimension are: FeatureAdsDisplay
Package Key, Package Type Key,
e Key, DistWarehouseKey,
Key.
L process: If the code does not re- All fields from original data where a Null value is expected
king storage) after each record, there is a should be null. Compare to AJWinterale source data.
values may contain data from a previous
ontain a Null value and should be
ution Event, Execution Goal, Execution
e.
ust like Forecast.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 ETL Framework Test Cases
Fact Table: FactSaleDay
Tester's Name:
Test Date: DD/MM/YYYY
Description: Determines Sales Day per Warehouse.
Priority Status
High - H
New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
3 H New Change the Type 1 fields for row added in Test 1: IsSaleDay from
1/0 for y/n.
**Make sure to complete Test 5 to bring the values back to the
original**
5 L New Change the Type 1 fields for 1 row back to the original values:
IsSaleDay.
6 L New Check that the updated row is in the audit tables
9
10
11
12
13
Framework Test Cases
ouse.
Test Summary
Total Pass 0
Yet to be Tested
Currently Being Tested Total Fail 0
Testing Complete Total N/A 8
Testing on Hold till later [Date] Total Tests on Worksheet 8
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1.
or row added in Test 1: IsSaleDay from Row should be updated with the different values inserted, no
new row inserted
Test 5 to bring the values back to the
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
for 1 row back to the original values: Row should be updated with the original values inserted, no
new row inserted
w is in the audit tables Rows updated should be 1 and Rows inserted should be 1
aint testing, the objective is to validate All contraints should be populated and unique.These Keys are
y keys, foreign keys, indexes, and generated during ETL Process.
r this dimension are: SaleDayKey and
eld data initialization load. Fields to check All values should be populated as they are not allowed to be
Null. Compare to GP data source.
Pass
Fail
Testing Steps Pass / Fail
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Run the following SQL statement against the NBB DW: Select
PrimarySourceDatabase, PrimarySourceTableName,
DestinationDatabase, DestinationTableName, InsertStdRowCnt,
UpdateRowCnt, PkgName From AuditTableProcessing,
AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Run the following SQL statement against NBB DW: To be added
Comments
NewBelgiumBeerDW MS 2008 Cube & Data Warehouse Test Cases
Fact Table:
Tester's Name:
Test Date: DD/MM/YYYY
Description:
Priority Status
High - H
New
Medium - M Open
Low - L Closed
Not Required - NR On Hold
New
New
13 H Flavor/Package Lifecycle:
• New Flavor/Package: Flavor or Package that has been in
geography for less than 24 months.
• Emerging Flavor/Package: Flavor or Package that has been in a
geography for 24 months or greater and less than 48 months.
New • Established Flavor/Package: Flavor or Package that has been in
geography for 48 months or greater.
New
16 H Availability Validation- Need to verify seasonal and discontinued
items changes occur properly.
New
New
New
54
55
56
57
58
59
60
& Data Warehouse Test Cases
Test Summary
Total Pass 0
Yet to be Tested
Currently Being Tested Total Fail 0
Testing Complete Total N/A 53
Testing on Hold till later [Date] Total Tests on Worksheet 53
ion and Content Validation. - DW: Should contain data for up to 5 years from current month.
History for years 3 to 5 should not reflect distributor
consolidations and moves. If this is not true then this test case
should fail.
stributor Restatements Validation. Original data is being retained for audit trail reports. Revised
ll Reporting Month. reporting data should be available for display in the cube.
stributor Restatements Validation. Within Revised reporting data should be available for display in the
cube.
al Distributor Brand Acquisition: - For specific brand verify loss of historical sales for Dist B
tor B’s territory for a given brand family is equals new sales for Dist A
. Both distributors remain in business. - Verify that accounts move from Dist B to Dist A
w distributor ID to distributor data vendor,
for the part of distributor B be converted
nd provide an outlet file for the transferred
codes.
- Lifecycle Segement: New Belgium has - Need to check that Distributor segments show as new,
gments related to lifecycle: emerging, or established as appropriate:
distribution of NBB product less than 24 a. Verify new markets convert to emerging
porting month b. Verify emerging marktets convert to established
ere distribution of NBB product began c. Verify established markets remain as established
8 months ago. - Need to test and ensure that changes to different lifecycle is
here distribution of NBB product began only made when rolling over year from Dec 31.
- State Lifecycle Segement: Data State Distributor lifecycle segment will be the only market
lifecycle segment made available to the sales team.
- Distributor Lifecycle Segement: Data Distributor lifecycle segment will not be visible to sales team
users without permissions.
n on Date a. Sales user without appropriate permissions should not be
use is added into the NBB cube, as a able to see this date.
l out or distributor change, a “Born On b. Need to add new warehouse and ensure that 'Born on Date'
he warehouse. This born on date will is populated.
or warehouses with similar months of c. Need to check that when Dist A and Dist B merge where Dist
existing territories. This field will not be A Warehouse is now Dist B Warehouse that Dist B retains its
am users without permissions. original Born on Date.
o Package Conversions & Volumetric to If changes are made the Conversion utility table then the Audit
validate auidt table properly records table should properly record (i.e track) what was changed.
d to verify seasonal and discontinued Seasonals:
erly. • If a seasonal item has been discontinued, replace the item
with the current seasonal item.
• If seasonal item’s ending availability date is greater than 3
months ago - flag the item.
• If seasonal item’s ending availability date is greater than 4
months ago - change flavor to reflect current month’s seasonal.
Discontinued Items:
• If discontinued item’s (not seasonal) ending availability is
greater than 3 months ago - flag the item.
ations: 60 day last full month. Data displayed should be 60 days since last reported full month.
ations: 90 day last full month. Data displayed should be 90 days since last reported full month.
ations: 180 day last full month. Data displayed should be 180 days since last reported full
month.
ations: 13 week Data displayed should be 13 weeks rolling since last reported
full month
ations: 26 week Data displayed should be 26 weeks rolling since last reported
full month
ations: 52 week Data displayed should be 52 weeks rolling since last reported
full month
week trend calculations. Data displayed should be 13 weeks rolling since last reported
full month
week trend calculations. Data displayed should be 26 weeks rolling since last reported
full month
week trend calculations. Data displayed should be 52 weeks rolling since last reported
full month
ceding Period calculations. Need business rule/calculation
% Change Relative to Period Last Year Need business rule/calculation
3 week trend calculations. Data displayed should be 13 weeks rolling since last reported
full month
6 week trend calculations. Data displayed should be 26 weeks rolling since last reported
full month
2 week trend calculations. Data displayed should be 52 weeks rolling since last reported
full month
erly. For purposes of this testing look at the number of records in the
Fix File and compare to the number of records updated in the
ETL and verify they are the same.
Run ETL and then using appropriate query ensure that only market
lifecycle segment data is displayed for a sales user.
Run ETL and then using appropriate query ensure that only market
lifecycle segment data is displayed for a sales user. Need to run two
queries. One with appropriate user permissions and one without the
appropriate user permsissions.
a. Run ETL and then using the appropriate query ensure Born on Date is
ony visible to appropriate sales users. Need to run two queries. One with
appropriate user permissions and one without the appropriate user
permsissions.
b. Run query to add new warehouse. Obtain DIstWarehouseKey and
check to ensure 'Born on Date' is populated correctly.
c. Run query to merge data for two warehouses. Then run different query
to verify Dist B retains is original Born on Date. Be sure to record the
original value of the Born on Date prior to merging the two Distributor
Warehouses.
Make a change to the Conversion utility table using a query and then
check the audit table for a new record. Run the following SQL statement
against the NBB DW: Select PrimarySourceDatabase,
PrimarySourceTableName, DestinationDatabase,
DestinationTableName, InsertStdRowCnt, UpdateRowCnt, PkgName
From AuditTableProcessing, AuditPkgExecution Where
AuditTableProcessing.PkgExecKey=AuditPkgExecution.PkgExecKe
y
Makes changes according to business process as listed in expected
results and then run appropriate query against FactAvailability table to
verify changes.
Comments