Skip to main content
AndrewZellman
Adobe Employee
Adobe Employee
July 30, 2009
Answered

Async in [BeforeClass]

  • July 30, 2009
  • 1 reply
  • 2143 views

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 has been closed for replies.
Correct answer mlabriola

Yes,

take a look at the test classes

Mike

1 reply

Participating Frequently
July 30, 2009

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

AndrewZellman
Adobe Employee
Adobe Employee
July 30, 2009

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

mlabriolaCorrect answer
Participating Frequently
July 30, 2009