Forum Discussion
Can you confirm your test step hierarchy in your test step please? Im aa bit confused ny the description.....are you trying to use the query result as a parm for a subsequent REST step?
Diagnosing this would be a lot easier if you can provide the config associated to each of your test steps.
Cheers,
Richie
- sijianand086 years agoOccasional Contributor
Hello,
In this when I run my test suite , the JDBC request is initializes when I checked Raw it shows the query with the parameter(prev reesponse).But Result is not generated thats the reason next two steps failes.But If I go to that JDBC Request step and run that Indivitual Query returns data and passes all my testcases.Hope you understand
Thanks
Siji
- richie6 years agoCommunity Hero
Hi sijianand08
So you'll have to forgive me - can you confirm the following:
Are you saying that testcase passes if you execute each step individually (Step by Step) but if you run the testcase itself the REST requests following the JDBC step fail?
Without knowing a bit more about the config on your steps - I'd suggest sticking a Delay step in there to slow things down a little
You have Datasource object before the JDBC step - whats this actually doing? Can you provide the SQL on the JDBC step? whats the JDBC step doing?
the subsequent REST requests - what are they doing? are they picking up parm values/properties from the previous JDBC step?
Cheers,
richie
- sijianand086 years agoOccasional Contributor
Hi ,
Thanks for looking into this .I hope did answer all your questions.
Are you saying that testcase passes if you execute each step individually (Step by Step) but if you run the testcase itself the REST requests following the JDBC step fail?
Yes
Without knowing a bit more about the config on your steps - I'd suggest sticking a Delay step in there to slow things down a little
I tried before putting the post .Is there any default value ?
You have Datasource object before the JDBC step - whats this actually doing? Can you provide the SQL on the JDBC step? whats the JDBC step doing?
I have
1.Rest Step which gives response has key
2.JDBC request where I pass above key and retrieve data from table(select * from table where key={key})
the subsequent REST requests - what are they doing? are they picking up parm values/properties from the previous JDBC step?
Yes
Related Content
- 11 months ago