使用 C# 自动化 GUI 测试
我正在做一个项目,为 .NET 中的图形应用程序构建自动 GUI 测试。我将使用 C#,但我正在尝试阅读以获得一些想法。但我不知道如何录制和回放。那么你能给我你的想法吗?
I am doing on a project to built automatic GUI testing for graphical application in .NET. I will use C# but i am trying to reading to get some ideas. But I don't have any idea on how to record and replay back. So can you give me your ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
这是视觉工作室团队的博客,讨论了这个确切的主题。这是关于他们如何测试 pre-wpf 和 post-wpf 的。
Visual Studio 博客
Here's a blog from the visual studio team that goes over this exact topic. It's about how they tested pre-wpf and post-wpf.
Visual Studio Blog
Selenium RC!
还有具有 Web 测试的 TFS 测试,它与负载测试相关。不错的平台,但如果您还没有使用 TFS 那么它不值得。
Selenium RC!
There is also the TFS Test that has web tests, which tie into load test. Nice platform, but if you are not already using TFS then it is not worth it.
坦率地说,我认为对此没有一个好的答案。不过,有两个选项可以正常工作:
Frankly, I don't think there is a good answer out there for this. There are two options, however, that work okay:
一个好的(商业)基于 C# 的产品是 Ranorex,它可以满足您的需要。
A good (commercial) C#-based product is Ranorex, it may do what you need.
您是否已将 Visual Studio 更新到 2010 版本?它具有内置的 coded-ui 自动化测试功能,可用于记录和回放 win 表单的测试。
Have you updated your Visual Studio to 2010 version? It has a build-in coded-ui automated testing feature, which could be used to record and replay back the test for win form.
硒
Watin
我想到了一些选项
Selenium
Watin
are some options that come to mind
为了测试 C# 应用程序,我们在以下方面取得了成功:
可能是新的 VSTS 2010 功能,尽管我们还没有尝试过
To test C# apps there are a few things we have had success with:
and possibly would be the new VSTS 2010 features, though we haven't tried them