Database Migration/ETL Testing Flashcards
What’s a business rule?
Business Rules are used every day to define entities, attributes, relationships and constraints.
Movement of data from old database to a new database
What’s database migration
Source database or legacy database
Old database
Target database or destination database
New database
What’s ETL
Extract Transform and Load
Does the ETL tool have business rule?
yes it has business rule to increase data quality
Why do we need to DB migration testing?
To check if all entities are migrated to the correct tables
To check if all the attributes of the entities are migrated.
To check what’s the quality of data before and after migration.
What’s the DB migration testing approach
Design Validation Test: a) We design the validation tests using SQL queries for both the source and target database b) We put the queries in the right order Create Test Environment Run Database Migration Process Run Validation Tests Analyze and Report the Results
Potential problems in ETL testing
Source data might change.
Mitigation: Back up source and target
Source data has junk values.
Mitigation: ETL tool should handle the corrupt data
Source/Target Mappings might change.
Mitigation: Write tests for unchanged mapping first and rest once they are finalized
Part of the source data is rejected.
Mitigation: Run modular validation query
Time to complete.
Mitigation: Run validation query in the ETL tool so they run automatically.