Say I have the following scenario (and obviously I oversimplify it): A 'Manager' in a 'Department' 'Approves' 'Expenses' of 'Employees'.
My test here is to test a Query that returns the followings: All expenses above $X for all managers from department 'HR' between D1 and D2 etc...
I realized there are 2 approches to do this:
Start from scratch - create a User/Group User, add permissions, create level of security, add expenses and test your query.
Import a database that already has some data and test that the return result is just like what you expect to get?
Problem with option 1 is that it takes so long to 'create the environment' in order to test it.
problem with option 2 is that it takes so long to 'import' a 1GB (or more) database and then simply run your query and see if the expected result are correct.
I was wondering if there's a 3rd approach? or any improvement to the existing alternative above.
Thanks!!!