Skip to main content

What is Database Testing and how to perform Database Testing?


Hello Everyone! Welcome back to another Fresh article of MODTECHSTUFF where you Learn Automation testing.
In this article, we will talk about What is Database Testing and how to perform Database Testing? 
Database testing

DATABASE TESTING is a kind of testing that checks the outline, tables, triggers, and so forth of the database under test. It additionally checks information respectability and consistency. It might include making complex queries to stress test the database and check its responsiveness. 

The Database is one of the inescapable pieces of Software Application. 
It doesn't make a difference whether it is a web application or mobile, customer server, distributed, venture, or individual business; the Database is required wherever at the backend. 
So also, regardless of whether it is Healthcare, Finance, Leasing, Retail, Mailing application, or controlling an aircraft; a Database is consistently in real life behind the scene. For Example, Banking or Finance application the need for a completely included DB Tool is coupled. These days, we have huge information that is enormous and complex that the customary databases can't deal with them. 
There are a few Database devices are accessible in the market, MS-Access, MS SQL Server, SQL Server, Oracle, Oracle Financial, MySQL, PostgreSQL, DB2, Toad, Admirer, and so forth. These devices change in cost, heartiness, highlights, and security. Each of these has its own advantages and disadvantages.

Hello! Do you get our blog letter? Subscribe — it's free!!!!!

Why DB Testing is Important?

The GUI is generally given the most importance by the test and development associates since the Graphical User Interface happens to be the most obvious piece of the application. Notwithstanding, what is additionally significant is to approve the data that is the core of the application otherwise known as DATABASE. 

Let us consider a Banking Domain application wherein a client makes exchanges. Presently from database Testing perspective after things are significant: 
The application stores the exchange data in the application database and showcases them effectively to the client. 
No data is lost all the while. 
No mostly performed or prematurely ended activity data is spared by the application. 
No unapproved individual is permitted to get to the client's data.

Some properties of Database

1. Data Mapping

In an application, data regularly go to and fro from the (UI) to the backend DB and the other way around. So these are a few viewpoints to look for: 
Check whether the fields in the UI/frontend structures are mapped reliably with the relating fields in the DB table. Normally this mapping data is characterized in the prerequisites records. 
At whatever point a specific activity is performed at the front finish of an application, a relating CRUD (Create, Retrieve, Update and Delete) activity gets conjured at the back end. An analyzer should check if the correct activity is summoned and whether the conjured activity in itself is fruitful or not. 


2. ACID Property

Atomicity implies that exchange either fails or passes. This implies regardless of whether a single piece of the exchange falls flat it implies that the whole exchange has gone waste. 
Consistency: An exchange will consistently bring about a legitimate condition of the DB 
Isolation: If there are numerous exchanges and they are executed at the same time, the outcome/condition of the DB ought to be equivalent to in the event that they were executed in a steady progression. 
Durability: Once an exchange is done and submitted, no outer variables like loss or crash ought to have the option to transform it

3.Data Integrity

At the point when the application is under execution, the end-client for the most part uses the 'CRUD' tasks encouraged by the DB Tool. 
C: Create – When the client 'Spare' any new exchange, 'Make' activity is performed. 
R: Retrieve – When the client 'Search' or 'View' any spared exchange, 'Recover' activity is performed. 
U: Update – When the client 'Alter' or 'Change' a current record, the 'Update' activity of DB is performed. 
D: Delete – When a client 'eliminate' any record from the framework, 'Erase' activity of DB is performed. 
Any database activity performed by the end-client is consistently one of the over four. 
So devise your DB experiments in a manner to incorporate checking the information in all the spots it seems to check whether it is reliably the equivalent.

Type of DB Testing

1. Structural Testing
2. Functional Testing
3. Non-Functional Testing



1. Structural Testing

The structural data testing includes the approval of each one of those components inside the information archive that are utilized fundamentally for the capacity of information and which are not permitted to be straightforwardly controlled by the end clients. The approval of the database servers is likewise a significant thought in these kinds of testing. The effective finishing of this stage by the analyzers includes authority in SQL questions. 

2. Functional Testing

The Functional database testing as indicated by the necessity determination needs to guarantee the greater part of those exchanges and tasks as performed by the end clients are predictable with the prerequisite details. 
This specific procedure is the approval of the field mappings from the end client perspective. In this specific situation the analyzer would play out an activity at the information base level and afterward would explore to the significant UI thing to watch and approve whether the best possible field approvals have been completed or not. 

3. Non-Functional Testing

Nonfunctional testing with regards to database testing can be ordered into different classes as required by the necessities. These can be load Testing, Stress Testing, Security Testing, Usability Testing, and Compatibility Testing, etc. The heap testing just as stress testing which can be assembled under the range of Performance Testing fills two explicit needs with regards to the job of nonfunctional testing. 

How to perform DB Testing

Some basic rules are given below:

Rule:1-  Prepare the environment 

Rule:2- Run a test 

Rule:3- Check test result 

Rule:4- Validate as indicated by the normal outcomes 

Rule:5- Report the discoveries to the separate partners 

Typically, SQL inquiries are utilized to build up the tests. The most generally utilized order is "Select". 
Select * from <tablename> where <condition> 
Aside from Select, SQL has 3 significant kinds of orders: 
DDL: Data definition language 
DML: Data control language 
DCL: Data control language 
Let us see the structure for the most normally utilized database statement. 
Data Definition language Uses CREATE, ALTER, RENAME, DROP, and TRUNCATE to deal with tables (and lists). 
Data Manipulation language Includes commands to add, update, and erase records. 
Data control language: Deals with offering approval to clients for control and access to the information. Grant and Revoke are the two commands utilized. 

Wrap-Up

With every one of these highlights, factors, and procedures to test on a database, there is an expanding interest for the testers to be actually capable of the key Database ideas. Regardless of a portion of the negative convictions that testing a database makes new bottlenecks and is a great deal of extra consumption – this is a domain of testing that is drawing in huge consideration and request. 
I hope this article has helped to focus on why DB Testing is important and with the basic details of what goes into testing a Database.
Please let us know your feedback and also share your experiences if you are working on  DB testing and for any query send me a message here. I will ready to help(In FREE).






Author:: HAROON

For more details please visit  MODTECHSTUFF

FOLLOW ME @

      










Comments

  1. This is really a worthy and wonderful blog about Software Testing Companies in Chennai to read and further more tips on the Software Testing Companies in Bangalore have been learnt. thanks for sharing your views among us and its great time spending on this. I am waiting for new post here about Software Testing Services in Chennai and Please keep it up in future..

    ReplyDelete

Post a Comment

Donate Us to Keep this site Alive! With PayPal

Popular posts from this blog

Top 5 Automation Testing Tools[2020]

Hello Everyone! Welcome back to another Fresh article of MODTECHST UFF where you Learn Automation testing. In this article, we will talk about Updated Top 5 Automation Testing Tools[2020] that will surely help you out. Quality at speed is the need of great importance in the product development industry. This is the reason associations are hoping to embrace Agile, Continuous Integration (CD), and DevOps techniques to discover arrangements. Test automation is a basic part of these techniques that can empower associations to give quality at speed.  In straightforward terms, automation testing is a procedure of automated test case execution and the creation of test results with no human intercession. It extensively brings down the expense and exertion that is in any case required in manual testing. It limits the possibility of mistakes by limiting excess manual work.  To execute automation testing, associations require the help of a decent automation testing organization...

How to Automate OTP using Appium and Selenium Framework ?

Hello Everyone! Welcome back to another Fresh article of MODTECHST UFF where you Learn Automation testing. In this article, we will talk about Integrating the OTP SMS reading capability with your Selenium - Appium Framework that will surely help you out. There can be three solutions to this problem. Solution 1: Ask your development team to fix the OTP check process to any static value. Solution 2: Ask your development team to provide you an API in which you can pass some parameter in response he can return you the OTP sent against that number.  Solution 3: Design two Appium scripts one is two handle Websites and one is to handle the Android message box, so after sending OTP from the web execute the second script to read a message from the message box. OTP is a 2-factor authentication mechanism that was build to avoid ROBOT / Automation SO you never find the solution direct solution for that. What is Appium? Appium is an open-source structure that permits you to lead automating test...

Write data from Excel file and Capture ScreenShot Using Selenium WebDriver

File Read and Write is a basic piece of any product or software process. We as often as possible make a document, open it, and update something or erase it in our Computers. The same is the situation with Selenium Automation. We need a procedure to control records with Selenium.  Java gives us various classes to File Manipulation with Selenium. In this article, we will figure out how might we Read Data on Excel documents with the assistance of the Java and Apache POI library. Do check my Latest video on Open Source Behavior-Driven Development (BDD) Tools and Subscribe my Channel for Latest Updates!!! Here is the link:::  https://youtu.be/t7EwU8LWfr0 Installing JAVA in your System. TestNG requires Java which means you should download and install Java on your system. In my previous blog, I have shown how to install JAVA on your computer in detail. Here is the link   https://modtechstuff.blogspot.com/2020/05/how-to-start-automation-using-selenium.html Eclipse Insta...

Ad

Enter your email address:

Delivered by FeedBurner