Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a SP with different set of parameters

Status
Not open for further replies.

pankajv

Programmer
Jan 30, 2002
178
IN
I have a Stored Procedure which uses dynamic query. The query is build based on the parameters passed to the SP. The Sp expects 10 parameters and based on the values the query is build. I wanted to know if there is a way by which I can automate the testing of this SP, i.e. to say that I specify a list of parameters then it will randomly pick different values and execute the Sp and reports the error in a particular scenario.
 
1. create a table with the list of parameters as rows
2. Create a storedprocedure that picks up the record randomly and pass that as parameter.
eg for random row selection :

select top 1 name from sysobjects order by newid()

3. Execute the stored procedure.
 
Mak can you give some more inputs as I am not very clear what exactly needs to be done in the approach you have suggested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top