How do I see items embedded/attached to my Gallio test log in CruiseControl.NET?

Posted by GraemeF on Stack Overflow See other posts from Stack Overflow or by GraemeF
Published on 2010-05-25T11:18:24Z Indexed on 2010/05/25 11:21 UTC
Read the original article Hit count: 277

Filed under:
|

I can use the following code to attach a log file to my Gallio 3.2 acceptance test report:

TestLog.AttachPlainText("Attached log file", File.ReadAllText(path));

When I run my tests locally I can see the log file contents by viewing the report in my web browser. However, if I run the tests under CCNET 1.4.4 I get the following error when I try to browse to an attached file in the report via the web dashboard:

Exception Message

The attachment was not inlined into the XML report.

Exception Full Details

System.InvalidOperationException: The attachment was not inlined into the XML report.
   at CCNet.Gallio.WebDashboard.Plugin.GallioAttachmentBuildAction.CreateResponseFromAttachment(XPathNavigator attachmentNavigator)
   at CCNet.Gallio.WebDashboard.Plugin.GallioAttachmentBuildAction.Execute(ICruiseRequest cruiseRequest)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ServerCheckingProxyAction.Execute(ICruiseRequest cruiseRequest)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.BuildCheckingProxyAction.Execute(ICruiseRequest cruiseRequest)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ProjectCheckingProxyAction.Execute(ICruiseRequest cruiseRequest)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute(IRequest request)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CachingActionProxy.Execute(IRequest request)
   at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ExceptionCatchingActionProxy.Execute(IRequest request)

I get similar results when I try to embed the file instead with:

TestLog.EmbedPlainText("Embedded log file", File.ReadAllText(path));

Is it possible to get this working?

© Stack Overflow or respective owner

Related posts about cruisecontrol.net

Related posts about gallio