JDBC Status assertion fails only when running at the test case/project level
Hi all,
I've just created a new test case that creates a new Oracle user, gives it a specific role and then runs a set of SELECT queries to ensure if it has access to the views that it needs.
To do this, I've added a set of JDBC Request Test Steps. Each one just has a simple select statement (i.e. select * from *view name*). Each step also has a JDBC Status assertion which acts as my pass/fail (i.e. if the user doesn't have access to a particular view, that step will fail).
When I run each test step individually by clicking the play icon on the test step level, each step passes.
However, when I run the test case as a whole (by clicking the play icon on the test case or project level), a number of my test steps fail with the error: "table or view does not exist". However, when I then click on one of the failed test steps and re-run the test step at the step level it then passes.
Any idea why this could be happening and how I can resolve the issue?
Thanks in advance for your help,
Matt
Thanks for the suggestions both.
I have split the test steps into individual test cases now, so rather than one test case having multiple JDBC test steps, each test case only has one JDBC connection.
This seems to have fixed the issue, although I still don't really understand the root cause.
Thanks again for the help.
Matt