Stored Procedure testing works pretty much in a similar way to database testing, except that a Stored Procedure may return multiple result sets. Before you extract or verify a field value, remember to set the Result Set instance number to work with.
Execute Database Stored Procedure Query
Executes a given Stored Procedure SQL on a database instance. This command returns the count of result sets created by the stored procedure. Reference name provided here can be used to extract/verify field values.
Make sure a db session is already established before executing this command.
Stored Procedure Query |
Query to be executed |
Select Result Set in Stored Procedure query result
Selects the result set from a previously executed stored procedure query. When you execute a stored procedure, multiple result sets may be created. Perform this command before extracting or verifying field values from the query.
Stored procedure ref name |
Reference name of the stored procedure from which results are retrieved |
Once you execute this command, you can use Get Database Field Value and Verify Database Field Value commands for verifying the response content.
Comments
0 comments
Please sign in to leave a comment.