我在几个msdn论坛上看过,测试Team Foundation Server中的管理服务会引发用户对某些特定操作的通知。你可以订阅
通知这些通知以了解服务器中发生了什么。以下是测试管理服务提出的一些重要通知。
TestRunStartedNotification TestRunChangedNotification TestRunCompletedNotification TestPlanChangedNotification TestSuiteChangedNotification TestConfigurationChangedNotification
任何人都可以分享它的步骤,比如在将TestRunCompletedNotification邮件发送给用户之后如何为此设置警报。可以通过MTM完成。我知道TFS警报,但我希望它针对特定的套件或计划,应该在测试运行后发送电子邮件。
或者在特定套件的测试用例运行完成后如何设置电子邮件。
mtm或tfs中是否有内置功能用于电子邮件警报?
请帮助
答案 0 :(得分:0)
没有默认方式从MTM设置警报/通知电子邮件,如TFS警报。您需要使用TFS API创建一个侦听器来监听测试事件并实现自己发送电子邮件。
检查您可以处理的事件:
http://nkdagility.com/tfs-event-handler-for-team-foundation-server-2010/
你需要一个事件处理程序来使用它们:
http://nkdagility.com/tfs-event-handler-in-net-3-5-part-2-handling-team-foundation-server-events/
http://www.almguide.com/2011/12/tfs-server-side-event-handlers/