I deploy a MbUnit based Watin broswer tests with this code in [Setup]:

Capture.SetCaptionAlignment(HorizontalAlignment.Center,
VerticalAlignment.Bottom);
Capture.SetCaptionFontSize(28);
Capture.AutoEmbedRecording(
 TriggerEvent.TestFinished,
 "Screen Recording",
 new CaptureParameters { Zoom = 1 }, 10);

on a VMWare Windows XP / IE8 virtual machine invoked via a local copy
of Gallio. The recording shows up normally in the logs for a day or
two then suddenly stops working. Embedding screenshots using this code
always works:

public void CaptureWebPageToTestLog(string caption)
{
 CaptureWebPage capture = new CaptureWebPage(_ie);
 using (Image image = capture.CaptureWebPageImage(false, false, 75))
 {
  TestLog.EmbedImage(caption, image);
 }
}

No exceptions are thrown when the video fails to embed and the Html
report is otherwise normal. It doesn't have any sort of broken links
to missing video...its as if I never included the code in [Setup].

Gallio.Common.Media has a CanCaptureScreenshot method but that appears
to be working ok since I can always capture an individual screenshot.
The videos of my tests are usually between 5 and 15 seconds long. Any
ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en.

Reply via email to