Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
function setUp() {
  //Code here to setup the environment for the testcases in this scope
function tearDown() {
  //Code here to cleanup the environment after running the testcases in this scope




Asynchronous Code

When testing asynchronous code, for example a queued method using the queueMethod method of the Headless Client plugin with a notifyCallback method or a executeAsyncRequest on the HTTP plugin with a success/errorCallback and the UnitTest needs to test the result of the callback method, application.updateUI(Number:milliseconds) can be used inside a loop to wait for the callback to be invoked and test it's result.