07-21-2009, 02:19 AM
Hi..
I have to call an Oracle Stored Procedure sitting in a package with parameters from QTP.
When i try to give the below code , the app is giving me error @
"cm.Parameters(0).Value = "ROUTE_ROLLOVER" " step. as item cannot be found in the collection corresponding to the requested name or ordinal.
and the parameters.count is returning "0".
How can i call a stored proc inside the package using QTP?
my code:
======
any pointers are highly appreciated.
Thanks,
Geetha
I have to call an Oracle Stored Procedure sitting in a package with parameters from QTP.
When i try to give the below code , the app is giving me error @
"cm.Parameters(0).Value = "ROUTE_ROLLOVER" " step. as item cannot be found in the collection corresponding to the requested name or ordinal.
and the parameters.count is returning "0".
How can i call a stored proc inside the package using QTP?
my code:
======
Code:
cm.CommandType = 4 ' Stored Procedures
cm.CommandText = "P_CONFIG_SETTING.GetSetting"
cm.Parameters.Refresh
msgbox( cm.parameters.count)
' Pass input value. Assuming Stored Procedure requires 2 parameters
cm.Parameters(0).Value = "ROUTE_ROLLOVER"
cm.Parameters(1).Value = "TO_ADDRESS"
' Execute the stored procedure
Set rs = cm.execute()
Thanks,
Geetha