What is Database testing

Posted By : Nitin Kumar | 05-Dec-2017

Database testing

 

The database is one of the most important part of software development process whether we talk about the web application, desktop application, and mobile application.As the time passes, technologies are changes at very high speed and people are now more skilled to adapt new technologies.

“Database testing” is very clear from its name”Testing of database”.

There are so many questions arises about database and its testing :

1.What is database testing

2.Need for database testing

3.How to perform database testing

4.Benefits of database testing

As we know, in any application data is actually flow back and forth from frontend to backend and vice versa.This flow is very important to be tested.Database testing is the process of checking the schema, tables, and triggers of the database under test.It involves very complex queries.

 

1.What is database testing?

Database testing is the process of checking the schema, tables, and triggers of the database under test.It involves very complex queries.

 

2.Need for database testing

A database is the collection of organized data and this data is very important to be tested.

These are the following reason:

1.Ensuring Data mapping.

2.To maintain the ACID property

 

1.Ensuring data mapping:

Database testing is needed because we need to ensure data mapping.In data mapping, we actually map the front end field with the backend field.

a) Table mapping, column mapping and data type mapping

b) The crude operation invoked for the particular user should be correct.

c) The crude operation should be successful.

 

2.To maintain the ACID property.

1.Atomicity

2.Consistency

3.Isolation

4.Durability


 

1.Atomicity: It means “All or nothing” Either the transaction should be done completely or should not start.

2.Consistency: Data should be valid and should be according to all defined rules.

3 Isolation: The transaction should not affect each other.The Transactions which is executed should not harm other transactions.

4.Durability: The committed data should not be lost even after power failure.

 

3.How to perform database testing:

These are the following steps to perform database testing:

1.Prepare the environment

2.Run the test cases

3.Check the result

4.Validate the result according to expected result

5.Report it

 

While performing database testing, we perform CRUD  operations which are create, read, update and delete operations and that crud operation should be done properly.

When we create some data it gets stored in database these are the things which are to test:

1. whether the data gets stored or not in the database.

2.Is the same data which is entered through UI  is getting stored in database or not

3.To check when we read or fetch the data from database, is intended data is received or not

4.When data is updated we have to test ,is that data is actually get updated in database or not.

5.When data is deleted we have to test whether data is get actually get deleted from DB or not other

 

Other than this the quality of the database is also tested, As the size of the database increases it becomes more complex but the developers should keep in their mind that structure of the database should be simple so that can easy to understand.

 

Benefits of DB testing:

1.Quality assurance

2.Feasibility

3.Identify the problem

Related Tags

About Author

Author Image
Nitin Kumar

Nitin is a QA Engineer. He is adaptive and passionate to learn new technical skills.

Request for Proposal

Name is required

Comment is required

Sending message..