Multiple async calls to complete a test
Let's say I am trying to test a call to the backend called getJobCount. I make the call to see the initial result, then make a call to addJob ten times and call getJobCount again to be sure it gives me a number that is 10 greater than the original. Is this possible with FlexUnit4? Async tests seem to finish after the initial result event.
This is more of an integration test, but I know some of the Fluint stuff was integrated into FlexUnit 4.
If there is documentation out there describing how one would go about doing this, I'd love to be pointed to it.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by labriola on 08 Apr, 2011 01:51 AM
Yes, totally possible. Tests end when there are no more pending asynchronous actions. So, if you add another async action when the first one completes, the test will not end.