Flex应用程序真的需要flexunit吗?
我对 Flex 装置有疑问。 Flex 应用程序确实需要单元测试用例来显示数据。
I have a doubt on Flex unit. Unit test cases are really required for flex application for displaying data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,您应该记住,并非 Flex 中的所有内容都是 UI 组件。
我个人发现 FlexUnit(或单元测试框架)非常适合测试服务和其他非可视化 ActionScript / Flex 类。我设置之后属性就设置了吗?在我更改此自定义类上的“orderBy”属性的值后,此 ArrayCollection 的顺序是否发生了更改?我的文件是在调用创建文件的方法后创建的吗?
这些都是单元测试可以帮助回答的问题。
对于 Flex 的大部分内容,我发现 UI 测试(例如 FlexMonkey 或 RIATest)更适用。当我更改 ViewStack 上的属性后,此效果是否运行?单击此按钮后背景颜色是否发生变化?在我在第一个 Combobo 中选择一个值后,第二个 ComboBox 是否填充了 dat?
用户界面测试可以帮助解决这些问题。
So, you should remember that not everything in Flex is a UI Component.
I, personally, find that FlexUnit (or a unit testing framework) is great for testing services and other non-visual ActionScript / Flex classes. Was the property set after I set it? Was the order this ArrayCollection changed after I changed the value of the "orderBy" property on this custom class? Was my file created after I called a method to create the file?
These are things that unit testing can help answer.
With much of Flex, I find that UI testing, such as FlexMonkey or RIATest is much more applicable. Did this effect run after I change properties on the ViewStack? Did the background color change after I clicked this button? Was the second ComboBox populated with dat after I selected a value in the first Combobo?
these are the sort of questions that User Interface testing can help with.