-
1. Re: Waiting for multiple independent asynchronous events during startup
Michael Labriola Oct 21, 2010 6:19 AM (in response to Daniel Rinehart)Hi Daniel,
You are correct that this is painful in the current infrastructure. We are working to make this easier in the next version. For now, you could either make a class that manages this as you indicated or use Sequences. The disadvantage of the latter is that it would force you to load one file, wait until it was complete and then load the next as it requires things are done in order.
Mike
-
2. Re: Waiting for multiple independent asynchronous events during startup
luciano.bustos Oct 21, 2010 6:51 AM (in response to Daniel Rinehart)Hi.
Try to implement an external dependency data loader.
External Dependency loader "preload" all information before the test start. Inside that loader you can load as many things as you want.
When you are ready call "myToken.notifyResult( event.result);" and the test will begin.
-
3. Re: Waiting for multiple independent asynchronous events during startup
Daniel Rinehart Oct 22, 2010 1:49 PM (in response to luciano.bustos)The External Dependency thought is interesting. However, I'm not
looking to parameterize the tests and for this purpose the
dataProvider syntax obscures the test's intent. For now I'm going to
stick with a helper class that just bundles the requests.
-- Daniel R. <danielr@neophi.com> http://danielr.neophi.com/


