SlideShare a Scribd company logo
Basic Database Testing Kumar S GuyFromChennai.com
Check Valid Connection Connection validation is especially important in real time applications, which must run with no or minimal downtime.   test is performed to verify the database connection is active/up. In fact, there can be various situations where a connection can be lost (e.g., because a database is down or there are some network problems). We can test this with two approaches. Using Vendor specific API Test-Fail query approach. GuyFromChennai.com Kumar S
Check Valid Connection Action Select the Connection string with the required credentials Execute the connect Factory Method  Test the returned value(s) for successful connection. If the exception corresponds to a closed connection, try to re-establish a connection and re-execute a query.  If the same exception is thrown, then try connecting to the failover database. Note: Obviously, this  business logic with database connection handling. GuyFromChennai.com Kumar S
Data Type Validation Action This test is performed to verify that the data type used  by the DBA are same as expected. Check the received values with the no of expected values If the No of values match then Check for the data type with the fields' data type  If data types match then  allow the actions like Insert, Update Else throw exception Else throw exception GuyFromChennai.com Kumar S
Input Verification Action This is the process of input data validation. Though it is not totally a part of database testing, this has to be performed essentially during database testing. The input items are tested for validation in the front end Check if the Maximum field length is correct Check for any junk/special characters in the input If any of the above fails  throw exception GuyFromChennai.com Kumar S
Data Integrity Action This test is performed when anyone of the  data undergoes any of the actions below,  Insert Update Delete After the actions mentioned above, the db should be verified for the changes performed on related entities such as  Primary Key Foreign key and any other Dependant entities If there is any error/mismatch , then rollback and throw exception GuyFromChennai.com Kumar S
Backup & Restore Action This test is performed to ensure the backed up data is valid and accurate Backup the whole database schema try creating another schema Import all the data from the backup Check the data is accurate and same as the source database schema Check the No of tables and table columns are the same Check the rows are the same as the source schema If any mismatch then throw exception GuyFromChennai.com Kumar S

More Related Content

PDF
Database testing for beginners
PPS
Database Testing
PDF
Testing database applications with QuickCheck
PDF
Tc Checklist
PPTX
Testcase definition
PPT
Validation and verification
DOCX
My Project on Rational Performance Testing
PPTX
Fundamental Test Process New
Database testing for beginners
Database Testing
Testing database applications with QuickCheck
Tc Checklist
Testcase definition
Validation and verification
My Project on Rational Performance Testing
Fundamental Test Process New

What's hot (20)

ODP
Rpt ppt
PPTX
JMeter Post-Processors
PPT
Less01 1 introduction_module
PPTX
Testcase definition
PPT
12 functional-system-testing
PPT
Less11 3 e_loadmodule_1
PPT
Testcase
PDF
Testcase Preparation Checklist
PDF
Introduction to Total Data Driven Test Automation
PDF
What is UFT? HP's unified functional testing.
PDF
3 know more_about_rational_performance_tester_8-1-snehamoy_k
 
PPTX
Integration testing
PPSX
Software testing and_quality_assurance_powerpoint_presentation
PPT
Rpt ppt for training
PDF
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
PPT
QTP&UFT Automation Framework
PDF
Integration testing
PDF
Unit Testing vs Integration Testing
DOCX
Best Practices for Writing and Organizing QA Tests
Rpt ppt
JMeter Post-Processors
Less01 1 introduction_module
Testcase definition
12 functional-system-testing
Less11 3 e_loadmodule_1
Testcase
Testcase Preparation Checklist
Introduction to Total Data Driven Test Automation
What is UFT? HP's unified functional testing.
3 know more_about_rational_performance_tester_8-1-snehamoy_k
 
Integration testing
Software testing and_quality_assurance_powerpoint_presentation
Rpt ppt for training
Reading Summary - Static Analysis to find Bugs & ROI Models for Static Analys...
QTP&UFT Automation Framework
Integration testing
Unit Testing vs Integration Testing
Best Practices for Writing and Organizing QA Tests
Ad

Similar to Basic Database Testing (20)

PDF
Database Testing: A Detailed Guide
PPTX
Database Testing
PDF
Db testing concepts swt
PDF
Database testing tutorial
PPTX
Database Testing.pptx
PDF
Top 20 Database Testing Interview Questions.pdf
PPTX
Relational Database Data validation and Testing Part 4 - SC.pptx
PPTX
Testing database content with DBUnit. My experience.
PPTX
Testing Database Changes
PPT
Automated Testing with Databases
PDF
Agile db testing_techniques
PPTX
Top 20 Database Testing Interview Questions & Answers 2023.pptx
PPT
Database continuous integration, unit test and functional test
PPTX
Database API Viewed as a Mathematical Function, Insights into Testing
KEY
Unit Test Your Database
PDF
Tractor Pulling on Data Warehouse
PDF
SELJE_Database_Unit_Testing_Slides.pdf
PDF
SELJE_Database_Unit_Testing.pdf
PPTX
Database Testing and Evaluation
DOCX
Data Base Testing Interview Questions
Database Testing: A Detailed Guide
Database Testing
Db testing concepts swt
Database testing tutorial
Database Testing.pptx
Top 20 Database Testing Interview Questions.pdf
Relational Database Data validation and Testing Part 4 - SC.pptx
Testing database content with DBUnit. My experience.
Testing Database Changes
Automated Testing with Databases
Agile db testing_techniques
Top 20 Database Testing Interview Questions & Answers 2023.pptx
Database continuous integration, unit test and functional test
Database API Viewed as a Mathematical Function, Insights into Testing
Unit Test Your Database
Tractor Pulling on Data Warehouse
SELJE_Database_Unit_Testing_Slides.pdf
SELJE_Database_Unit_Testing.pdf
Database Testing and Evaluation
Data Base Testing Interview Questions
Ad

Recently uploaded (20)

PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Complications of Minimal Access Surgery at WLH
PDF
RMMM.pdf make it easy to upload and study
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
master seminar digital applications in india
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Anesthesia in Laparoscopic Surgery in India
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
human mycosis Human fungal infections are called human mycosis..pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Complications of Minimal Access Surgery at WLH
RMMM.pdf make it easy to upload and study
TR - Agricultural Crops Production NC III.pdf
Insiders guide to clinical Medicine.pdf
01-Introduction-to-Information-Management.pdf
master seminar digital applications in india
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPH.pptx obstetrics and gynecology in nursing
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
VCE English Exam - Section C Student Revision Booklet
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

Basic Database Testing

  • 1. Basic Database Testing Kumar S GuyFromChennai.com
  • 2. Check Valid Connection Connection validation is especially important in real time applications, which must run with no or minimal downtime. test is performed to verify the database connection is active/up. In fact, there can be various situations where a connection can be lost (e.g., because a database is down or there are some network problems). We can test this with two approaches. Using Vendor specific API Test-Fail query approach. GuyFromChennai.com Kumar S
  • 3. Check Valid Connection Action Select the Connection string with the required credentials Execute the connect Factory Method Test the returned value(s) for successful connection. If the exception corresponds to a closed connection, try to re-establish a connection and re-execute a query. If the same exception is thrown, then try connecting to the failover database. Note: Obviously, this business logic with database connection handling. GuyFromChennai.com Kumar S
  • 4. Data Type Validation Action This test is performed to verify that the data type used by the DBA are same as expected. Check the received values with the no of expected values If the No of values match then Check for the data type with the fields' data type If data types match then allow the actions like Insert, Update Else throw exception Else throw exception GuyFromChennai.com Kumar S
  • 5. Input Verification Action This is the process of input data validation. Though it is not totally a part of database testing, this has to be performed essentially during database testing. The input items are tested for validation in the front end Check if the Maximum field length is correct Check for any junk/special characters in the input If any of the above fails throw exception GuyFromChennai.com Kumar S
  • 6. Data Integrity Action This test is performed when anyone of the data undergoes any of the actions below, Insert Update Delete After the actions mentioned above, the db should be verified for the changes performed on related entities such as Primary Key Foreign key and any other Dependant entities If there is any error/mismatch , then rollback and throw exception GuyFromChennai.com Kumar S
  • 7. Backup & Restore Action This test is performed to ensure the backed up data is valid and accurate Backup the whole database schema try creating another schema Import all the data from the backup Check the data is accurate and same as the source database schema Check the No of tables and table columns are the same Check the rows are the same as the source schema If any mismatch then throw exception GuyFromChennai.com Kumar S