"The actual goal of the test is to check that files are processed correctly;
I still do not see any reason for asynchronous folder monitoring."
Neither do I. I'm not monitoring the folder asynchronously, the application processes them asynchronously. So looking for an individual file name doesn't help me becuase it could be processed at any time.
"Do you *really* need to do a verification for 1000 files? Do you *really* need even 50 of them for regression?"
Yes I *really" do. We have situations where we regressions test a customer system before we update them to make sure the update will not cause issues. They may run anywhere from 20 to 3,000 jobs a day. The jobs themselves are prescription eyeglasses with all the calculations that go with it and there are a lot of possible combinations of multifocal, materials, frametypes, lens selection.
Do we need to run that many? If you we grab 50 to 75% of labs jobs for a day (depending on how many they run) we can be pretty sure we're getting a good mix.
"
-- Check the contents of the target folder until some processed source file appears there; Won't work due to the app processing async
-- Verify that the file was processed correctly; Same as above
-- As you know the number of source files and their names, repeat the above two steps until all source files are processed and verified. I'd have to go through all the files in the source folder, read their names into a list, then compare them to the target folder. at some time interval. That's looping through all files in a folder continuously checking each one.
"
The question I posed wasn't for a particular test, but a part of a test. The part where I need to make sure all the files are done processing. If they're not, and I try to run a comparison , there will be orphaned files and the comparison will fail.
I'm just going to move any files of that type to a folder and slap a date time on it and begin processing. Done. If I run the test again, and there are residual files, the files will be moved into a new folder and it'll start again.
Thanks for the time you took for the reply. Much appreciated!