使用 Selenium RC 进行闪存自动化

发布于 2024-09-17 22:54:31 字数 100 浏览 5 评论 0原文

我正在努力使用 Selenium RC 实现 Flash 自动化。

任何人都可以给我一个示例 Flash 应用程序代码(方法)和 Selenium RC 代码来自动化它。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

世态炎凉 2024-09-24 22:54:31

您可能还想查看 FlashSelenium。他们有一个工作示例记录。这对我有用。

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

浮世清欢 2024-09-24 22:54:31

Selenium 无法自动化在浏览器中自己的黑匣子内工作的应用程序。这意味着Selenium无法测试Silverlight和Flash。

Flexmonkium 是您可以使用的 Selenium FlexMonkey 桥接器。有关于它的详细信息此处

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

尘世孤行 2024-09-24 22:54:31

Genie 也是您可以用来自动化 Flash 的另一种工具。
您可以将 selenium jar 导入 Genie 来尝试利用机器人

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

Adob​​e® ActionScript® 的自动化 UI 测试器是一个纯 ActionScript 3.0 SWF 自动化测试工具,能够记录用户对 SWF 文件的操作并播放他们以高保真度返回。该工具的 API 名称为“Genie”。

该工具的一些主要功能包括:

  • 无需检测或应用程序操作
  • 自动化纯 ActionScript 3.0 SWF
  • 无需访问源代码 无需
  • 在任何包装器内运行
  • 适用于基于 Web 的应用程序和独立 SWF
  • 执行本机自动化(无图像依赖性),从而使脚本
    可靠并降低维护成本
  • 应用程序甚至可以在后台运行

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
清醇 2024-09-24 22:54:31

我最近一直在使用 Sikuli 脚本 来自动执行繁琐的 Flash 任务。使用它来创建可重复的 UI 测试真的很容易。

Sikuli 脚本是用 Java 构建的,顶部有 Jython 层。所有脚本都是用 Python 完成的。

它的工作原理是“查看”屏幕,查找 GUI 元素(例如按钮),然后与它们交互。

例如,查看 Windows 'Hello World' 脚本。

第 1 行告诉 Sikuli,“找到一个看起来像这样的按钮,然后单击它。”

第 2 行指示它输入“hello world”。

由于使用的脚本语言是 Python,因此您的逻辑可以按照您的意愿简单或复杂。

真正吸引我的是,我的代码逻辑几乎可以遵循我实际手动使用 UI 时所遵循的模式。例如,我的逻辑可能会说“找到‘名字’字段,单击它,然后在其中输入我的名字。”

麻省理工学院的许可证也不错。您不必担心如何使用它或者是否在商业环境中使用它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文