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. |
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...
|
|||||||
|
|||
|
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. |
| The Following User Says Thank You to deepasree For This Useful Post: | ||
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |