Forum Discussion
nmrao
9 years agoCommunity Hero
Please show the input to groovy script and what you need to assert. Otherwise, it is difficult to offer any kind of help.
- soapuici9 years agoOccasional Contributor
As I mentioned it is JDBC request. It is not groovy script.
In sql query I wrote: (request is
DECLARE P_ID_INPARAM VARCHAR2(32767); P_OUTPARAM1 NUMBER; P_OUTPARAM2 NUMBER; BEGIN P_ID_INPARAM := '${Properties#id}'; P_OUTPARAM1 := NULL; --out P_OUTPARAM2 := NULL; --out SCHEMA1.PACKAGE1.PROCEDURE2 ( P_ID_INPARAM, P_OUTPARAM1, P_OUTPARAM2); ENDThis works fine. But I need to read the out parameters.
And assert them.
- nmrao9 years agoCommunity HeroDoes it show any response for the same jdbc request is called? If so, can you post that along with what needs to be asserted?
- soapuici9 years agoOccasional Contributor
yes.
the response is:
<Results> <UpdateCount>1</UpdateCount> </Results>
Need to assert
P_OUTPARAM1
- nmrao9 years agoCommunity HeroSee if the below thread is helpful:
https://objectpartners.com/2014/01/24/simpler-stored-procedures-with-groovy/