如何自动化测试 Outlook Add-In?
我有一个用 C#、VSTO 开发的 Outlook 插件,有很多非结构化代码,而且大小非常大。每次有修改/更新时,我都必须手动从头到尾地测试它,这是非常痛苦和耗时的。该插件有很多规则,会弹出警报/对话框,用户必须对此采取一些操作。 有什么方法/工具可以用来自动执行此任务吗?
I have an Outlook Addin developed in C#,VSTO and has a lot of unstructured code and very huge in size. every time there is a modification / Update ,I have to Manually test it from end to end which is very painful and time consuming. This add in has a lot of rules whch pops up alert / dialog box and user has to take some actions on that.
Is there any way/tool which can be used to automate this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将致力于向现有代码添加单元测试;通过单元测试来检查更改后一切是否仍然有效,您无需如此频繁地运行端到端测试。
您还可以使用 UI 自动化< /a> 驱动 Outlook 的框架。
I would work on adding unit tests to the existing code; with unit tests to check that everything still works after your changes you won't need to run your end-to-end tests so frequently.
You can also automate your end-to-end acceptance tests by using the UI Automation framework to drive Outlook.
您还可以尝试 AutoIT
You can also experiment with AutoIT