davidcole
12 years agoOccasional Contributor
Datasource based tests - only perform query first time
Is there a way of performing a query and then sequentially going through those results rather than requerying each time?
I have a profiler step which calls one of 5 test cases depending on a random number.
But each test step includes a SQL query for data to use in the test. I suspect that each time the test case is being called that the query is being run.
Is there a way of getting the query to be run only once and then using all the results for each successive run of the test case?
I have a profiler step which calls one of 5 test cases depending on a random number.
But each test step includes a SQL query for data to use in the test. I suspect that each time the test case is being called that the query is being run.
Is there a way of getting the query to be run only once and then using all the results for each successive run of the test case?