New UI testing helper

10 views
Skip to first unread message

kris

unread,
Aug 9, 2010, 4:35:45 PM8/9/10
to Flexunit Contributors
Hi,

I've released first early version of the u-input that is aimed at
browsing and interacting with UI components. It uses automation API
and plays really well with morefluent lib. Take a look:
http://bitbucket.org/loomis/uinput/wiki/Home.

Regards,
Kris

Brian

unread,
Aug 9, 2010, 11:27:55 PM8/9/10
to Flexunit Contributors
@kris - Great to see extensions like this coming out. Would you mind
adding it to the FlexUnit wiki on the Community Projects page (http://
docs.flexunit.org/index.php?title=Community_Projects)?

-Brian

Conrad Winchester

unread,
Aug 10, 2010, 1:34:34 AM8/10/10
to flexunit-c...@googlegroups.com
Just yesterday a coworker asked about some simple automation style tests - this looks like it fits the bill :-) I'll let you know how I get on

Conrad

Conrad Winchester

unread,
Aug 13, 2010, 2:16:34 AM8/13/10
to flexunit-c...@googlegroups.com
OK,

I downloaded the source and got the project loaded into Intellij - I had to change the following line in Robot.as to get it to compile with Flex 4.1

focusManager.moveFocus(focusTransferDirection(KeyboardEvent(event)), uiComponent);

to

focusManager.setFocus( focusManager.getNextFocusManagerComponent() );

I have no idea whether that is the correct replacement. I then instantiated a component using the UIImpersonator, but unfortunately after running

install(component)
button("myButton").click()

I get the message that it can not find the button "myButton". This button is a skin part.

Would you have expected it to work in this case or does it require quite a bit of work to get it working in flex 4?

Conrad

Kris

unread,
Aug 13, 2010, 2:34:10 AM8/13/10
to flexunit-c...@googlegroups.com
Thanks for the feedback!

I have not tried it with Flex4 and I suspect quite a bit of work to be done especially for the new components. Automation API is fairly complex unfortunately.

Also I'm not sure if the UIImpersonator will give you the right results. UInput class has a static function setPlayground() that installs the component for you on the stage.

Regards,
Kris

Costin Aldea

unread,
Aug 13, 2010, 3:24:50 AM8/13/10
to flexunit-c...@googlegroups.com
                          This is my case too. I thoght i was flex 4 too thogh i used flex sdk 3.5. Thanks for the work you're doing.

2010/8/13 Kris <kris.kar...@gmail.com>



--
P R O U D L I N U X F E D O R A U S E R
Sustain free open-source community
            Free as in free speech!

Kris

unread,
Aug 13, 2010, 4:33:10 PM8/13/10
to flexunit-c...@googlegroups.com
I'm sorry guys to confuse you. U-input is currently only coded for Flex3. I hope to get it to work at least with halo components under SDK4 within next couple of weeks.

Regards,
Kris

Reply all
Reply to author
Forward
0 new messages