2 Replies Latest reply on Jan 5, 2011 1:31 PM by mlabriola

    Async.proceedOnEvent vs. Async.handleEvent

    Rgrommel

      What I'd like to do is to handle the event generated by a process and proceed to the next test only after it has been handled.

       

      When I tried just using Async.handleEvent, the test running would allow other tests to start (this is a problem because the other tests generate their own events which then get handled by the wrong test).  If I use Async.proceedOnEvent, since there is no handler function I never have access to the event.  What I wound up doing was using two calls, one to Async.handleEvent and one to Async,proceedOnEvent for the same event.  This seems a bit clunky, am I doing this the best way?