Skip to main content
AndrewZellman
Adobe Employee
Adobe Employee
Jul 30, 2009 12:04 AM UTC
Answered

Async in [BeforeClass]

I need to perform a log in in my [BeforeClass] method.  Unfortunately, this log in takes place Asynchronously outside of the test.  This results in the [Test] methods being performed before the [BeforeClass] has completed.  Is there a way I can wait on an event in the [BeforeClass] method before proceeding to the [Before] and [Test] methods?  Examples would be great, thanks!

-Andrew

This topic is closed to new replies. Start a new post to keep the conversation going.
mlabriolaCorrect answer
Participating Frequently
Jul 30, 2009 1:38 AM UTC

3 replies

Participating Frequently
Jul 30, 2009 1:06 AM UTC

Yes, full async is supported in before and after, etc.

There is no documentation on this yet but if you look at the framework unit tests we run in the sample application, some of those tests do this behavior.

Mike

Translate
AndrewZellman
Adobe Employee
Adobe Employee
Jul 30, 2009 1:34 AM UTC

I was able to get something working in Before, but BeforeClass is

required to be static, is full async supported in those methods?

Sent from my iPhone

Translate
mlabriolaCorrect answer
Participating Frequently
Jul 30, 2009 1:38 AM UTC

Yes,

take a look at the test classes

Mike

Translate