UI 测试自动化模式
我目前正在自动化 MS Office 的插件。我们正在 VS 2010 中创建编码 UI 测试。作为一个选项,我可以使用“编码 UI 测试生成器”工具,但它不适合我的情况。因此,我为每个 UI 控件/映射创建了自己的 UI Map 类和扩展方法,其中添加了不同的操作功能,例如按下按钮或断言某些 UI 值。测试用例的场景在测试类中。
我是这个领域的新手,也是自动化测试员的新手。 也许您可以分享您的经验或建议一些测试自动化的良好实践和实践(从编程/设计的角度)
I'm currently automation a plugging for MS Office. We are creating Coded UI tests in VS 2010. As an option I could use the "Coded UI test builder" tool, but it does not suite in my case. So I created my own UI Map class and extension methods for each UI Control/Map where i add different action functionality, for example press buttons or asserting some UI values. The scenarios of the test cases are in the test classes.
I am new in this area and also I'm new in working as a automation tester.
May be you could share your experience or advice some good practices and practice for test automation (from a programming/design point of view)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
适用于测试自动化和设计的良好实践与一般的良好编程相同。
当您为测试自动化编码时,对于是否应用设计模式,您应该应用与在任何其他情况下编码时相同的标准。没有什么区别。
The good practices that apply to test automation and design are the same as for good programming in general.
When you're coding for test automation, you should apply the same criteria for whether or not you apply a design pattern as for when you are coding in any other situation. There is no difference.
以下是 UI 测试自动化的 10 个最佳实践列表:
http ://fczaja.blogspot.com/2011/01/ui-test-automation-best-practices.html
Here is List of 10 best practices for UI Test Automation:
http://fczaja.blogspot.com/2011/01/ui-test-automation-best-practices.html