测试 Silverlight UI 的最佳方法是什么
我想要反馈如何编写和维护 UI 测试,
我对 ViewModel 逻辑使用单元测试,有时还使用功能测试(使用 Specflow 或类似的东西)。但是什么是最好的 UI 测试呢?
Visual Studio 2010 测试(编码 Ui 测试)?瓦丁、白、硒?或者其他方式?
欢迎任何反馈和建议
I wanna a feedback how to write and maintain UI Test
I use unit test for ViewModel logic, and sometime functionnal test (with Specflow or something like that). But what is the best for UI testing ?
Visual studio 2010 test (Coded Ui Tests) ? Watin, white, selenium ? or other ways ?
Any feedback and advice are welcome
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们在当前项目中遇到了这个问题:SL UI 将在下一个版本中引入。
经过研究(不幸的是,不是我做的),结果发现现在没有工具可以使用。
候选者包括:CodedUI 测试、TestComplete 和 Telerik UI 测试工作室。
但是,随着 SL5 的发布,Microsoft 和 Telerik 承诺将为 SL UI 测试提供更好的支持,因此我们决定等待。
注意:由于我们使用的是Telerik控件,并且我们的布局极其复杂,这可能是测试工具性能不佳的原因,因此您需要自行检查。
不过我还是建议等到 SL5 发布后再购买。
We faced this issue in our current project: SL UI will be introduced in the next release.
After research made (not by me, unfortunately) it came out that no tool now is OK to work with.
Candidates were: CodedUI tests, TestComplete and Telerik UI testing studio.
However, by release of SL5 Microsoft and Telerik promise to provide much better support for SL UI testing, so we decided to wait for this.
NOTE: as we use Telerik controls and our layout is extremely complicated, this could be the cause of poor performance of testing tools, so you'd check it on your own.
Still I'd recommend to wait till SL5 is released.
从我的角度来看,我会推荐 Visual Studio 2010 CodedUI Tests。我不喜欢必须包含特定于测试的 dll,并且必须为测试命名每个控件;但似乎额外的工作是值得的。
Selenium 只能使用插件来测试 Silverlight。这个插件需要 Selenium RC - 所以,对我来说它似乎已经过时了。
您还可以将Ranorex 测试自动化框架添加到候选列表中。
From my point of view, I would recommend Visual Studio 2010 CodedUI Tests. I do not like that I have to include a test-specific dll, and that i have to name every control just for the test; but it seems that it is worth the additional work.
Selenium can only test Silverlight with a plugin. This plugin needs Selenium RC - so, for me it seems outdated.
You can also add the Ranorex Test Automation Framework to the list of candidates.