How to do Automated UI testing for Flash [closed]

2019-04-09 20:00发布

问题:

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