Geeks Talk

Prepare for your Next Interview




Database Testing

This is a discussion on Database Testing within the Testing Issues forums, part of the Software Testing category; Shall testers need to do a Database Testing on an application? 1.What is the purpose of such a testing?? 2.What all testing need to be done on DB??...


Go Back   Geeks Talk > Software Testing > Testing Issues

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-06-2007
Junior Member
 
Join Date: Nov 2005
Posts: 28
Thanks: 1
Thanked 4 Times in 3 Posts
rose is on a distinguished road
Database Testing

Shall testers need to do a Database Testing on an application?
1.What is the purpose of such a testing??
2.What all testing need to be done on DB??
Reply With Quote
The Following User Says Thank You to rose For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-08-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 865
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: Database Testing

Database testing is very important part of testing.

Database is always on target for hackers and others.
You should always well test the database for security also.

Other tests on database are for data,

There should no loss of data when we save it.
Data limit allowed to save through UI should same; limit allowed by database.
more depends on application.
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com

Last edited by jainbrijesh : 11-20-2007 at 03:19 AM.
Reply With Quote
  #3 (permalink)  
Old 02-08-2007
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 28 Times in 27 Posts
kalayama is on a distinguished road
Re: Database Testing

Good to see you back JanBrijesh I was missing your posts...

Well, the questions asked were very clear. Why do we need database testing and what kind of testing we usually do in database testing. I think Brijesh's explaination has not covered all that was needed. So, decided to post an external article on this.

What to test in DB testing?

Quote:
In DB testing we need to check for
1. The field size validation
2. Check constraints.
3. Indexes are done or not (for performance related issues)
4. Stored procedures
5. The field size defined in the application is matching with that in the db.
Why DB testing ?

Here's the link for a very good article regarding this.

http://www.agiledata.org/essays/databaseTesting.html

I hope this makes one understand the concepts in DB testing.

Cheers!
Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Reply With Quote
The Following User Says Thank You to kalayama For This Useful Post:
  #4 (permalink)  
Old 02-08-2007
Junior Member
 
Join Date: Jan 2007
Location: bangalore
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ayypss is on a distinguished road
Re: Database Testing

Hi Rose,
Testers should do the database testing in the case of using database,
90% of the application using database.

For example, for web application or any other application some data should be stored in database, the tester is the responsible person for veryfying whether the data stored or not, and also verify that the stored data will be a valied data.

so tester or developer should know the database knowledge.

regards,
ayypss
Reply With Quote
  #5 (permalink)  
Old 02-08-2007
Junior Member
 
Join Date: Nov 2005
Posts: 28
Thanks: 1
Thanked 4 Times in 3 Posts
rose is on a distinguished road
Re: Database Testing

Thanks Kalayama for that article..It was worth reading

But letme tell u frankly that Iam new to DB testing....So before Testing a DB
I should know
1.Why shall I test a DB??If we can look in to the UI and see if the data we enter through UI is getting reflecting in the UI and
When we delete something from UI...it again can be seen in the UI...So Shall we need to test it to see that the data flow is proper??
2.What all other purposes Database Testing serve for??
(Its clearly mentioned in the article...but superficial for a beginner to understand)

Will be helpful if anyone explain it clearly
Reply With Quote
  #6 (permalink)  
Old 02-12-2007
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 512
Thanks: 1
Thanked 53 Times in 45 Posts
sutnarcha is on a distinguished road
Re: Database Testing

DB testing is to test the impact of actions in the application on its database.

the list for "What to test in DB testing?" give by kalayama is correct.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
  #7 (permalink)  
Old 02-12-2007
Expert Member
 
Join Date: Apr 2006
Location: India, Hyderabad
Posts: 129
Thanks: 19
Thanked 41 Times in 17 Posts
bvani is on a distinguished road
Re: Database Testing

Hi

check this link too.

http://www.oracle.com/technology/ora...45testing.html

I found it more rational.
Reply With Quote
  #8 (permalink)  
Old 08-21-2007
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
vijay prakash is on a distinguished road
database testing

can any body explain in detail database tesing
Reply With Quote
  #9 (permalink)  
Old 09-03-2007
Contributing Member
 
Join Date: Feb 2006
Posts: 73
Thanks: 0
Thanked 3 Times in 3 Posts
kunals is on a distinguished road
Relational database management systems (RDBMSs) often persist mission-critical data which is updated by many applications and potentially thousands if not millions of end users. Furthermore, they implement important functionality in the form of database methods (stored procedures, stored functions, and/or triggers) and database objects (e.g. Java or C# instances).

The best way to ensure the continuing quality of these assets, at least from a technical point of view, you should have a full regression test performed on each build for the Database.

Noe lets see DBTesting in terms of Testing methods :

Black-Box Testing (--at the Interface)
-O/R mappings (including the meta data)
-Incoming data values
-Outgoing data values (from queries, stored functions, views ...)

White/Clear-Box Testing (--Internally Within the Database)

-Scaffolding code (e.g. triggers or updateable views) which support refactorings
-Typical unit tests for your stored procedures, functions, and triggers
-Existence tests for database schema elements (tables, procedures, ...)
-View definitions
-Referential integrity (RI) rules
-Default values for a column
-Data invariants for a single column
-Data invariants involving several columns


this was a little abt DB testing if you wanna more then can contact me with your Qs

Last edited by jainbrijesh : 11-22-2007 at 01:30 AM.
Reply With Quote
  #10 (permalink)  
Old 11-13-2007
Junior Member
 
Join Date: Nov 2007
Location: india
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
ajjugattureddy is on a distinguished road
Re: Database Testing

can anyone give me a simple example for how to do database testing ,and also one testcase related to database testing
Reply With Quote
The Following User Says Thank You to ajjugattureddy For This Useful Post:
  #11 (permalink)  
Old 11-20-2007
Junior Member
 
Join Date: Nov 2007
Location: Hyd-India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
n.sudha is on a distinguished road
Re: Database Testing

As per my knowledge the Data base testing is done when the test data is not provided from the developer to link the fileds and to do verification of the same.

For this we mainly need SQL. To get the information from the data base that is required for our application.

Regards,
Sudha
Reply With Quote
  #12 (permalink)  
Old 11-20-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 865
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: Database Testing

Quote:
Originally Posted by rose View Post
Thanks Kalayama for that article..It was worth reading

But letme tell u frankly that Iam new to DB testing....So before Testing a DB
I should know
1.Why shall I test a DB??If we can look in to the UI and see if the data we enter through UI is getting reflecting in the UI and
When we delete something from UI...it again can be seen in the UI...So Shall we need to test it to see that the data flow is proper??
2.What all other purposes Database Testing serve for??
(Its clearly mentioned in the article...but superficial for a beginner to understand)

Will be helpful if anyone explain it clearly
What so ever you are talking about in what we can test externally see the behavior of database.
But what's happening in real , how you will know that.
I give you an example.

I was testing an application where during registration, an hash key is generated for verification purpose,This key generated is of size 16 characters always, but space allocated for it in database is of 50 characters, which is again a bug (loss of memory).That's why we need it to test internally.
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com
Reply With Quote
  #13 (permalink)  
Old 11-21-2007
Junior Member
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
docrams is on a distinguished road
Re: database testing

What is scaffolding
Reply With Quote
  #14 (permalink)  
Old 11-22-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 865
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: Database Testing

Supporting test code, called scaffolding.It is sometimes necessary to support an individual test.
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Issues


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Relationship in Database RyanJames Database General 1 01-12-2008 01:51 PM
Performance of Database fred Database General 2 10-13-2007 07:08 AM
SQL Database sane_rt Oracle 3 11-14-2006 10:26 PM


All times are GMT -4. The time now is 03:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved