在Flex中自动测试 [英] automate testing in Flex

查看:113
本文介绍了在Flex中自动测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自动测试flex应用程序。我听说Flex提供的类可以帮助您自动化测试。但我不知道在哪里找到它们以及如何使用它们。有谁能帮我解决这个问题吗?任何暗示或建议,将不胜感激... $ / b>

解决方案

添加到弗洛里安刚才说的,这是一种测试与自动化库一起工作。就个人而言,这不是一种我通常做的测试,除非你创建了很多自定义组件,并且你需要测试它们的行为。



到单元测试。在这种情况下,有几个库可用,但Flash Builder支持的库称为Flex Unit 4.在这种测试中,我们正在测试函数以确保输出的正确性取决于输入。

您可以找到更多有关的信息它在他们的网站上。如果你想自动化,你将需要像TeamCity或Hudson这样的自动化引擎来运行Ant或者Maven构建。如果您使用的是Maven,我建议您查看 FlexMojos 以进行自动构建,测试。

I want to automate testing of flex application. I have heard that Flex provides with classes that help you automate the testing. But I don't know where to find them and how to use them. Can anyone help me regarding this issue? Any hint or suggestion will be appreciated...

解决方案

To add to what Florian just said, that is one kind of testing which works with the Automation library. Personally, that is not a kind of testing I normally do unless you create a lot of custom components and you need to test their behavior.

The testing you're probably referring to is Unit Testing. In this case, there are several libraries available, but the one supported by Flash Builder is called Flex Unit 4. In this kind of testing, we're testing functions to make sure the output is correct depending on the input.

You can find more information about it on their website. If you want automation, you're going to need an automation engine like TeamCity, or Hudson to run an Ant or Maven build. If you're using Maven, I would recommend you look at FlexMojos for automated build and testing.

这篇关于在Flex中自动测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆