The screenshot should appear in the test report which is accessed in
different ways depending on the test runner you are using.

With TestDriven.Net:
  Control-Click on the link at the end of the output window.

With Visual Studio Test Tools:
  Double-click on the test result in the Test Results view.

With ReSharper:
  Find the "Open Test Report" combo-button in the Unit Test Session view's
toolbar.

If that doesn't help, could you please describe the behavior you observe
instead?

Jeff. 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of tk
Sent: Wednesday, December 17, 2008 9:48 AM
To: MbUnit.User
Subject: MbUnit CaptureWebPage not working


Hi

I am new to Gallio and Mbunit. Not sure where to post this. i was going
through sample 2005 soultion which with came with Gallio. I am planning to
use it with Watin and the example provided by helped a lot.But
CaptureWebPage does to seem to be working . I am using Windows XP and IE6.
Is there any modification that needs to be done to the code?

private void Snapshot(string caption, TestLogStreamWriter
logStreamWriter)
        {
            using (logStreamWriter.BeginSection(caption))
            {
                logStreamWriter.Write("Url: ");
                using (logStreamWriter.BeginMarker(Marker.Link
(ie.Url)))
                    logStreamWriter.Write(ie.Url);
                logStreamWriter.WriteLine();

                logStreamWriter.EmbedImage(caption + ".png", new
CaptureWebPage(ie).CaptureWebPageImage(false, false, 100));
            }
        }

Thanks
TK


--~--~---------~--~----~------------~-------~--~----~
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