Forum Discussion
alibaba82
16 years agoSuper Contributor
so basically I have a test case with 2 steps.
step1: JDBC datasource has a simple query like
select itemid from tableA
For this test to pass I would like the query to return 0 records, if it fails then I would like to throw an exception displaying all the itemid from the query.
my current step 2 is like this
if(testRunner.testCase.testSteps["jdbc_datasource"].currentRow) != 0)
throw new Exceptions ("query returned some results --> Error")
I want something like this instead
if(testRunner.testCase.testSteps["jdbc_datasource"].currentRow) != 0)
throw new Exceptions (Item1, Item2,...,Itemn)
how can I do this
step1: JDBC datasource has a simple query like
select itemid from tableA
For this test to pass I would like the query to return 0 records, if it fails then I would like to throw an exception displaying all the itemid from the query.
my current step 2 is like this
if(testRunner.testCase.testSteps["jdbc_datasource"].currentRow) != 0)
throw new Exceptions ("query returned some results --> Error")
I want something like this instead
if(testRunner.testCase.testSteps["jdbc_datasource"].currentRow) != 0)
throw new Exceptions (Item1, Item2,...,Itemn)
how can I do this
Related Content
- 3 years agoMoUddin
- 3 years agoLucian
- 5 years agompartyka
- 6 years agoamarnath1234