Multiple async calls to complete a test

Marty Mickelson's Avatar

Marty Mickelson

07 Apr, 2011 11:55 PM

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.

  1. Support Staff 1 Posted by labriola on 08 Apr, 2011 01:51 AM

    labriola's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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