I am creating dbfit test cases and I encountered a scenario where I need to check that an item is not included in the results returned by the query. How can I do that?
Thanks,
I am creating dbfit test cases and I encountered a scenario where I need to check that an item is not included in the results returned by the query. How can I do that?
Thanks,
If you carry out a query to count the number of records that are matching your query then you can check that the result is zero something like
|query |select count(id) as NumberOfRecords from dbo.tablename where criteria='matched'| |NumberOfRecords | |0 |