I have an actionscript 2 application that I'd like to write automated UI testing for. For example I'd like to simulate a mouse click on a button and validate that a movie-clip is displayed at the right position and in the right color... Basically, UI testing. What are the best tools available or what is the desired approach? In JavaScript there is the selenium framework which does a nice job. Any similar tool for flash?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I know this is an old question, but this could be useful for future reference. There is a relatively new project
Automated UI tester for ActionScript
Its installation is pretty simple, and is described in the user guide step by step.
回答2:
Use Adobe genie (UI Tester for ActionScript) http://sourceforge.net/adobe/genie/discussion/general/
But I don't think AS1 or AS2 will work. It works only with AS3.
回答3:
Another way is to use any HTML/JS autotesting tool and provide a JS api to your Flash app - at least, you can always expose functions like 'locate smth by id', 'click smth by id', 'enter some text into smth by id' or whatever.
回答4:
Try http://SauceLabs.com - they've got a Flash and Flex testing tool
回答5:
This may be of use
Flash UI testing