开发者

Flash automation using Selenium RC

开发者 https://www.devze.com 2023-01-14 21:28 出处:网络
I\'m struggling a lot to automate Flash using Selenium RC. Can any one please give me a sample Flash 开发者_如何转开发application code (methods) and the Selenium RC code to automate the same.You migh

I'm struggling a lot to automate Flash using Selenium RC.

Can any one please give me a sample Flash 开发者_如何转开发application code (methods) and the Selenium RC code to automate the same.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消