我试图在 Teamcity 中的每个开发构建结束时调用测试自动化脚本(ranorex),这工作正常。
我在测试自动化结束时发送电子邮件通知,但我不知道如何将日志文件附加到代理方的电子邮件通知,因为我无权访问 teamcity 服务器文件系统。
我试图在 Teamcity 中的每个开发构建结束时调用测试自动化脚本(ranorex),这工作正常。
我在测试自动化结束时发送电子邮件通知,但我不知道如何将日志文件附加到代理方的电子邮件通知,因为我无权访问 teamcity 服务器文件系统。
实际上可以指定要与电子邮件一起发送的附件。
Ranorex 用户代码:
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