This is a migrated thread and some comments may be shown as answers.

Browser snapshot(s) location

6 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kristine
Top achievements
Rank 2
Kristine asked on 23 Nov 2010, 05:02 AM
Hi,

I tried using the "Browser Capture" step. However, I am not able to locate the said snapshot(s) - both for quick execution and test list execution.

Regards,
Kristine

6 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 23 Nov 2010, 02:09 PM
Hello Kristine,
 
   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!

Greetings,
Stoich
the Telerik team
See What’s New in WebUI Test Studio’s Q3 Release 24/7 on Telerik TV
0
Kristine
Top achievements
Rank 2
answered on 24 Nov 2010, 11:49 AM
Hi Stoich,

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?).

Regards,
Kristine
0
Stoich
Telerik team
answered on 25 Nov 2010, 03:46 PM
Hello Kristine,

    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!

Best wishes,
Stoich
the Telerik team
Interested in Agile Testing?

Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
0
Pari
Top achievements
Rank 1
answered on 15 Jul 2012, 01:13 PM
Hi Guys

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.

Please help

Thank You
Pareshni
0
Pari
Top achievements
Rank 1
answered on 16 Jul 2012, 06:37 AM
can someone please respond to this post as I cannot contact anyone directly and this is urgent.
I also want to add that I'm using Telerik Test Studio.
0
Stoich
Telerik team
answered on 19 Jul 2012, 07:38 AM
Hi Kristine,
just like in Visual Studio: screenshot capture will only work in Test Studio if you make your test a part of a TestList:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/test-execution/standalone-test-lists.aspx

If you go through the TestList settings you'll see that you're allowed to tweak a setting called LogLocation:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/test-execution/test-list-settings.aspx

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.

Greetings,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Kristine
Top achievements
Rank 2
Answers by
Stoich
Telerik team
Kristine
Top achievements
Rank 2
Pari
Top achievements
Rank 1
Share this question
or