我试图在Teamcity的每个开发构建结束时调用测试自动化脚本(ranorex),该脚本工作正常。
我在测试自动化结束时发送电子邮件通知,但我不知道如何将日志文件附加到代理方的电子邮件通知,因为我无法访问teamcity服务器文件系统。
实际上可以指定与电子邮件一起发送的附件。
Ranorex userCode:
using Ranorex.Core.Reporting;
string RepName = TestReport.ReportEnvironment.ReportName;
System.Net.Mail.Attachment attachment;
attachment = new System.Net.Mail.Attachment(RepName + ".html");
mail.Attachments.Add(attachment);
可能您的实现有些不同,为了使其工作,您将从这里找到所有所需的信息:http://www.ranorex.com/forum/send-mail-module-t2356.html