Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to test the Stored Procedures?

This is a discussion on How to test the Stored Procedures? within the Testing Issues forums, part of the Software Testing category; Hi Freinds, If any body know about how to test the Stored Procedure ?plz let me know? Regards, Vasu...

Go Back   Geeks Talk > Software Testing > Testing Issues
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 3 Weeks Ago
Contributing Member
 
Join Date: Nov 2007
Posts: 53
Thanks: 16
Thanked 7 Times in 5 Posts
srinii_vasu is on a distinguished road
Thumbs up How to test the Stored Procedures?

Hi Freinds,

If any body know about how to test the Stored Procedure ?plz let me know?

Regards,
Vasu
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 3 Weeks Ago
Expert Member
 
Join Date: Apr 2008
Location: Tamilnadu
Posts: 1,464
Thanks: 15
Thanked 150 Times in 141 Posts
deepasree has a spectacular aura aboutdeepasree has a spectacular aura about
Re: How to test the Stored Procedures?

Hi,

Surfed through net and was able to get the below, check whether it helps.

“Each and every stored procedure must be tested at least once!!!”

1.1 individual procedure tests verify the following things and compare them with design specification

* whether a stored procedure is installed in a database
* stored procedure name
* parameter names, parameter types and the number of parameters outputs: * when output is zero (zero row affected)

Outputs
* when some records are extracted
* output contains many records
* what a stored procedure is supposed to do
* what a stored procedure is not supposed to do
* write simple queries to see if a stored procedure populates right data

parameters:
* check parameters if they are required.
* call stored procedures with valid data
* call procedures with boundary data
* make each parameter invalid a time and run a procedure

Return values:
* whether a stored procedure returns values
* when a failure occurs, nonzero must be returned.

Error messages:
* make stored procedure fail and cause every error message to occur at least once
* find out any exception that doesn’t have a predefined error message

Others:
* whether a stored procedure grants correct access privilege to a group/user
* see if a stored procedure hits any trigger error, index error, and rule error
* look into a procedure code and make sure major branches are test covered.

1.2 integration tests of procedures
* group related stored procedures together. Call them in particular order
* if there are many sequences to call a group of procedures, find out equivalent classes and run tests to cover every class.
* make invalid calling sequence and run a group of stored procedures.
· design several test sequences in which end users are likely to do business and do stress tests

Thanks
Deepa
__________________
Arise Awake And Stop Not Till The Goal Is Reached

Last edited by deepasree; 3 Weeks Ago at 05:24 AM.
Reply With Quote
The Following User Says Thank You to deepasree For This Useful Post:
  #3 (permalink)  
Old 1 Week Ago
Junior Member
 
Join Date: Apr 2009
Location: France,
Posts: 9
Thanks: 0
Thanked 3 Times in 2 Posts
colliewarrior is on a distinguished road
Talking Re: How to test the Stored Procedures?

We have many stored procs in our system. Each one has a specfic purpose. For instance one application awards 'reward points' to a 'client' when a 'Visit' is registered in the database.
How is this tested? Well obviously by a test case, but the test case simply calls for the tester to perform the tasks as follows, a) note the reward points. B) in the application which will record a visit register the visit for the client, then C) verify the amount of the award points has changed.

Any failure will usually show up with an error on screen, even if it doesn't, the points won't be rewarded if the proceedure has not performed.

So basically once you know what a stored proceedure does, you can easily test it.
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Issues

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
JPA Stored Procedures hsavinash2001 Java 1 07-16-2009 05:47 AM
stored procedures ronaldrahme SQL 4 07-02-2008 08:24 AM
Stored Procedures in Reports malathim Data Warehousing 0 02-09-2008 05:41 AM
Test cases for testing databases & stored procedures rafina Test Cases 2 08-16-2007 12:37 PM
execute MS-SQL Stored procedures from QTP Geek_Guest QTP 0 06-09-2007 01:53 PM


All times are GMT -4. The time now is 03:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved