Posts: 4
Threads: 1
Joined: Jan 2009
Reputation:
0
01-19-2009, 09:52 PM
(This post was last modified: 01-19-2009, 10:06 PM by levohoangha.)
Hi
I'm new to QTP and I'm writing a QTP script using DP from scratch.
However, when I run the test, it wont take screenshots in the result like the test created with recording.
I already set Run option to Always take screenshots.
Does anyone know how to make QTP take these screenshots?
Thank you.
Posts: 4
Threads: 1
Joined: Jan 2009
Reputation:
0
01-20-2009, 10:57 AM
That would works, but I'll have to do that for almost ALL steps of the test.
And they CaptureBitmap path_error_file won't show up in Test Result Viewer.
Any other way?
Thanks.
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
01-20-2009, 01:38 PM
Hi,
Navigate to Tools --> Options --> "Run" tab --> Select "Save still image captures to Results" checkbox & select "Always" from dropdownlist --> click "Apply" --> ok.
Save the test & now execute your code & check in the test results.
Now you can see the screenshots for all the steps.
Posts: 4
Threads: 1
Joined: Jan 2009
Reputation:
0
01-21-2009, 04:08 AM
I did changed "Save still image captures to Results" to "Always"
However, no screenshot taken.
The whole script is DP written for SAP Web Portal.
Posts: 31
Threads: 0
Joined: Sep 2008
Reputation:
0
01-21-2009, 12:12 PM
HI,
Pls Include this line of code at the start of your script. This should capture snap for each action.
Setting("SnapShotReportMode")=0
Thanks
VENKATA REDDY
Posts: 4
Threads: 1
Joined: Jan 2009
Reputation:
0
01-22-2009, 04:31 AM
Thank you all for your help.
I tried Setting("SnapShotReportMode")=0
Also didn't work.
I'm guessing because I wrote the script from scratch (no recording)
so there is nothing in the Active Screen window.
Is that correct?
Posts: 31
Threads: 0
Joined: Sep 2008
Reputation:
0
01-22-2009, 12:36 PM
No.That not correct.QTP will capture snaps during Run even if you didn't record.
Seems some problem with your QTP Settings.
Thanks
VENKATA