I just started testing the email notification functionality of the test server, and I am having an issue with at least one of my test lists. I know at least one of my other test lists doesn't have this issue so it isn't a general issue and may be specific to one of the tests in the list.
I don't actually have the XML file export enabled here, just HTML. So it should only be dealing with the email body and the HTML. Could there be something with text encoding where a test step description has a character that is allowed in the interface but isn't allowed in the export?
The log from the execution server is this.
[10/11 16:02:51,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Execution] PostListExecutionEmailer.OnAfterTestListCompleted() : Attempting to send email for job 38f7e14c-0301-4e1f-b974-4e10c21dcdd3
[10/11 16:02:52,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Error] XmlFileHandler`1.Export() : EXCEPTION! (see below)
Situation: Error saving file in XML format.
Outer Exception Type: System.ArgumentException
Message: '', hexadecimal value 0x1B, is an invalid character.
HRESULT: 0x80070057 (Official ID (if app.) = E_INVALIDARG, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_INVALID_PARAMETER)
Call Stack:
at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
at System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text)
at System.Xml.XmlRawWriter.WriteValue(String value)
at System.Xml.XmlWellFormedWriter.WriteValue(String value)
at ArtOfTest.Common.Design.XmlFileHandler`1.Export(String filePath, Dictionary`2 objectsWithPaths)
[10/11 16:02:52,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Error] RunResultHtmlExporter.Export() : EXCEPTION! (see below)
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: path
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path)
at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.BuildTempHtml(String filePath, String xmlFilePath)
at ArtOfTest.WebAii.Design.Execution.RunResultHtmlExporter.Export(String filePath, Dictionary`2 resultsWithPaths)
[10/11 16:02:52,Telerik.TestStudio.ExecutionManagerService.exe(12852:15),Execution] <>c__DisplayClass5_1.<JobFinished>b__3() : EXCEPTION! (see below)
Situation: Exception in jobfinished plugin executionStatus
Outer Exception Type: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: fileName
HRESULT: 0x80004003 (Official ID (if app.) = E_POINTER, Error Bit = FAILED, Facility = FACILITY_NULL, Code = 16387)
Call Stack:
at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType)
at System.Net.Mail.AttachmentBase..ctor(String fileName)
at System.Net.Mail.Attachment..ctor(String fileName)
at Telerik.TestStudio.ExecutionManager.Notifications.Emailer.Mail.ResultMailSender.AddAttachment(String fileName)
at Telerik.TestStudio.ExecutionManager.Notifications.Emailer.Mail.ResultMailSender.SetRunResultAttachment(RunResult runResult, NotificationSettings settings)
at Telerik.TestStudio.ExecutionManager.Notifications.Emailer.PostListExecutionEmailer.OnAfterTestListCompleted(TestListExecutionStatus executionStatus, RunResult result)
at Telerik.TestStudio.ExecutionManager.Notifications.ExecutionManagerNotificationService.<>c__DisplayClass5_1.<JobFinished>b__3(ITestListExecutionExtensionStatus extensionStatus)