Hi there
I'm trying to perform UI-Tests for a Mobile Application created with Flex 
4.12.0. I'm following the tutorial under 
http://flex.apache.org/flexunit/tutorial/flexunit/Unit-14.html. However, I 
can't get this to work. When using UIImpersonator to add an UI component (even 
a Spark Button), the "creationComplete"-Event is never thrown. Hence I can't 
perform unit tests on the UI Components because the nested sub-elements are not 
present.

Here's what I did:
                    loginView = new LoginView();
                    Async.proceedOnEvent(this, loginView, 
StateChangeEvent.CURRENT_STATE_CHANGE);
                    UIImpersonator.addChild(loginView);

As said, I have tried this with a spark button, but it does not work. The 
tutorial mentioned above uses MX-Components. Can Spark components be tested at 
all?

Regards
Daniel

Reply via email to