简体   繁体   English

使用 C# 进行自动化 Flash 测试

[英]Automated Flash Testing with C#

I am trying to write some software for automated testing of flash contained within webpages.我正在尝试编写一些软件来自动测试网页中包含的 flash。

Specifically I am looking for assistance with 'hooking' onto a webpage which is running the flash and gaining access to the controls and events it uses so that I can simulate button clicks and then listen for the responses it produces.具体来说,我正在寻找有关“挂钩”到运行 flash 并访问它使用的控件和事件的网页的帮助,以便我可以模拟按钮单击,然后监听它产生的响应。

Since it could be any flash movie running, I need to be able to gain access to the controls so I can try and make an educated guess as to which ones I need to simulate clicking.由于它可能是正在运行的任何 flash 电影,因此我需要能够访问控件,以便我可以尝试对需要模拟点击的控件做出有根据的猜测。

I need it to be free or perhaps open source hopefully with examples ideally in a .net technology.我需要它是免费的,或者希望它是开源的,最好是 .net 技术中的示例。

Can anyone offer assistance or examples, please?有人可以提供帮助或示例吗?

Many thanks非常感谢

There is Ruby library called FlashWatir .有一个名为FlashWatir的 Ruby 库。 Not exactly what you were looking for, but close.不完全是您要找的东西,但很接近。

First, Flash pages can be manipulated with JavaScript.首先,可以使用 JavaScript 操作 Flash 页面。 For a reference on this see: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_06.html有关这方面的参考,请参阅: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_06.html

You can write something in C# or use Selenium (open source) to test the whole thing with some scripting.您可以在 C# 中编写一些内容,或者使用 Selenium(开源)通过一些脚本来测试整个事情。 Selenium Remote Control has support for DotNet. Selenium Remote Control 支持 DotNet。

Selenium Remote Control http://seleniumhq.org/projects/remote-control/ Selenium 遥控器http://seleniumhq.org/projects/remote-control/

Tutorial on using Selenium to test Flash: http://wiki.openqa.org/display/SRC/Testing+Flash+with+Selenium+RC使用Selenium测试Flash教程: http://wiki.openqa.org/display/SRC/Testing+Flash+with+Selenium+RC

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM