Question
addAsync in setUp()
I would like to add an async function inside the setUp() of a test, but FlexUnit generates an error to the effect that the function argument is not a function. Is running async function in a setUp() supported? I would appreciate any advice on this.
Basically, what I'm trying to do is to perform some end-to-end testing of business methods inside FlexUnit, and those methods need to call methods on the server. Because the methods alter state on the server, I want to be able to clear up any changes to server-side state performed during the tests. Thus, I need to invoke remote methods inside the setUp() methods of a test suite; and I need to ensure that each test case executes only after the setUp() method receives events from the remote method indicating successful return.
Again, I'd very much appreciate any suggestions as to how this may be achieved.
Thanks,
-- Frank
Basically, what I'm trying to do is to perform some end-to-end testing of business methods inside FlexUnit, and those methods need to call methods on the server. Because the methods alter state on the server, I want to be able to clear up any changes to server-side state performed during the tests. Thus, I need to invoke remote methods inside the setUp() methods of a test suite; and I need to ensure that each test case executes only after the setUp() method receives events from the remote method indicating successful return.
Again, I'd very much appreciate any suggestions as to how this may be achieved.
Thanks,
-- Frank
