6 Answers, 1 is accepted
as taken from our step-by-step guide (http://www.telerik.com/documents/automated-testing-tools/WebUITestStudioDeveloperEditionQuickStartGuide.pdf):
Screen capture: CaptureType can be Desktop or Browser. FileNamePrefix is "Snapshot" bydefault. Important note!: To make screen capture work you cannot run the test using the "QuickExecute button". Instead, run the test from the Visual Studio Test menu. You can use the Visual Studiomenu Test > Windows > Test View, right-click your WebAii Test and select Run Selection from thecontext menu.You've probably seen this already and I admit that it's very counter-intuitive that this feature doesn't work with Quick Execution but it just doesn't. If you try to use it with Quick Execution it won't fail but you'll notice that your Log says:
'11/23/2010 2:22:24 PM' - LOG: Image not captured to disk. CreateLogFile is set to 'false'.
...And of course no image.
So you can only use the screencapture when executing test from the Test View. The location of the snapshot is stored in the Log - check out screenshots 1 and 2.
We just had a discussion on this and concluded that the location for the captured snapshots should be configurable. The following feature request was created:
Bug 99879: FR> Make location of captured snapshots configurable
I hope this helps - please let us know if you have more questions!
the Telerik team
Thanks so much for the detailed explanation. I've seen the line you were referring in the logfile:
'24/11/2010 6:34:54.457 PM' - Captured bitmap for Browser 'InternetExplorer' - ClientId: 'Client_64cd4dc5-a025-40ef-b4ad-68451757f425' - file:'C:\WebAiiLog\Snapshot0.png'
However, I also saw the same line - except for the ClientId - in the logfiles of the other tests in the same test list (test list does not recycle browser so each test has a separate logfile). Which means the succeeding tests are overwriting the existing Snapshot0.png, that's why only the last test has a snapshot. I think this is a bug (or feature request?).
you're absolutely right on this. Bug 100101: All screenshots from a Testlist are saved under the same path/name causing them to overwrite each other was created to address the issue.
We will provide you with a build addressing the issue as soon as one becomes available.
We apologize for any inconveniece this issue might have caused!
Thank you for your feedback on this - please don't hesitate to contact us if you have any more questions!
the Telerik team
Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
I have updated to the 2012 version. however, I cannot find where the snapshots taken are located? I would like to take a snapshot of our dashboard everydayand have that emailed to an email address.
I also want to add that I'm using Telerik Test Studio.
just like in Visual Studio: screenshot capture will only work in Test Studio if you make your test a part of a TestList:
If you go through the TestList settings you'll see that you're allowed to tweak a setting called LogLocation:
The LogLocation for your TestList is where the screenshots will be stored. It's C:\WebAiiLog by default but you can customize it. You should have absolutely no problem accessing the screenshots. Additionally the issue where the screenshots get overwritten has been resolved.
the Telerik team
Test Studio Trainings