Flash automation using Selenium RC

跟風遠走 提交于 2019-11-28 21:58:10

You might also want to take a look at FlashSelenium. They have a working example documented. That worked for me.

Selenium can not automate applications that work within their own blackbox in the browser. This means that Selenium can not test Silverlight and Flash.

There is Flexmonkium which is a Selenium FlexMonkey bridge that you could use. There are details about it here

Genie is also another tool you may be able to utilize to automate flash. You can import the selenium jar into Genie to attempt to take advantage of bot

http://sourceforge.net/adobe/genie/wiki/Home/

Automated UI Tester for Adobe® ActionScript® is a pure ActionScript 3.0 SWF automation testing tool with the capability of recording user actions on an SWF file and playing them back with high fidelity. The API for this tool is provided with name “Genie.”

Some major features of this tool are:

  • No instrumentation or application manipulation is required
  • Automate pure ActionScript 3.0 SWF
  • No source code access required
  • No need to run inside any wrapper
  • Works on web based apps and standalone SWF
  • Performs native automation (no image dependency) thus making scripts reliable and lowering down maintenance cost
  • Application can even be running in background

I've recently been using Sikuli Script to automate tedious Flash tasks. It would be really easy to use it to create repeatable UI tests.

Sikuli Script is built in Java with a Jython layer on top. All of the scripting is done in Python.

It works by "looking" at the screen, finding GUI elements, such as buttons, and then interacting with them.

For instance, look at the Windows 'Hello World' script.

Line 1 tells Sikuli, "find a button that looks like this, and click it."

Line 2 instructs it to type "hello world."

Because the scripting language used is Python, your logic can be as simple or complex as you'd like.

What really appeals to me is that the logic of my code can follow almost the exact pattern I would if I were actually using the UI manually. For instance, my logic might say "find the 'First Name' field, click it, and type my name into it."

The MIT license is also nice. You don't have to worry about how you're using it or if you're using it in a commercial context.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!