6 Answers, 1 is accepted
0
Accepted
Steven
Top achievements
Rank 1
answered on 07 Feb 2013, 08:02 PM
With the test open, choose Browser Capture (or Desktop Capture, if you'd prefer) from the More... (green circle) button in the tool ribbon's Add section. See attached screenshot.
The difficulty I had was then in actually locating the screenshot; on my system they're put into C:\WebAiiLog rather than C:\Users\[username]\Documents\Test Studio Projects\[project name]\Results as I had expected.
The difficulty I had was then in actually locating the screenshot; on my system they're put into C:\WebAiiLog rather than C:\Users\[username]\Documents\Test Studio Projects\[project name]\Results as I had expected.
0
Mercedes
Top achievements
Rank 1
answered on 08 Feb 2013, 02:19 PM
Perfect !!!
Thank you,
Nithin
Thank you,
Nithin
0
Mercedes
Top achievements
Rank 1
answered on 21 Mar 2013, 03:31 PM
I was able to modify the location to capture the screenshots to a desired location. All the screenshots are stored in the same location. I would like to create a new folder for every Iteration based on the iteration number. Can that be done?
0
Accepted
Hello Brian,
Thank you for your question.
We can certainly check for existing folders and create new ones with a line of code:
In order to apply this to create a new folder based on iteration number (eg. in a data-driven test) in a script step, we can use a while loop to check/create a unique folder (with name '1', '2', '3' ...) for each image:
Let me know whether my suggestion helps or if you have any additional questions.
Kind regards,
Mario
the Telerik team
Thank you for your question.
We can certainly check for existing folders and create new ones with a line of code:
System.IO.Directory.Exists(folderName);
System.IO.Directory.CreateDirectory(folderName);
In order to apply this to create a new folder based on iteration number (eg. in a data-driven test) in a script step, we can use a while loop to check/create a unique folder (with name '1', '2', '3' ...) for each image:
int
i = 1;
string
folderName =
"c:\\MySnapshots\\"
+ i.ToString();
while
(System.IO.Directory.Exists(folderName))
{
i++;
folderName =
"c:\\MySnapshots\\"
+ i.ToString();
}
System.IO.Directory.CreateDirectory(folderName);
Log.CaptureBrowser(ActiveBrowser, folderName +
"\\snapshot"
);
Let me know whether my suggestion helps or if you have any additional questions.
Kind regards,
Mario
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings
0
Kate
Top achievements
Rank 1
answered on 17 Sep 2014, 03:20 AM
To do that, you can press "Alt"+"PrtScn" keys to screenshot the web application window under test. Or you can make use of simple yet rich-featured screenshot tools like Free Screenshot Capture, PicPick, Jing and others.
0
Hello Kate,
Thank you for you input.
This is an approach where you use a third party software for making screen shots.
As Steven Vore wrote we have a build-in functionality for taking snapshots in Test Studio automatically during the test execution.
Thank you for helping other we really appreciate it.
Regards,
Boyan Boev
Telerik
Thank you for you input.
This is an approach where you use a third party software for making screen shots.
As Steven Vore wrote we have a build-in functionality for taking snapshots in Test Studio automatically during the test execution.
Thank you for helping other we really appreciate it.
Regards,
Boyan Boev
Telerik