Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DP with screenshot in test result
#1
Not Solved
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.
Reply
#2
Not Solved
Hi
You will be able to capture an Image using
Code:
Browser("Browser").CaptureBitmap path_error_file,True
Reply
#3
Not Solved
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.
Reply
#4
Not Solved
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.
Reply
#5
Not Solved
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.
Reply
#6
Not Solved
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
Reply
#7
Not Solved
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?
Reply
#8
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to capture screenshot for background application captain 0 2,188 06-29-2014, 02:36 PM
Last Post: captain
  Automation test result example QTPScript 0 1,861 09-06-2012, 09:22 PM
Last Post: QTPScript
  How to retrieve test result summary from a test result window using dp? jyotikrushna 3 5,246 09-30-2011, 09:24 AM
Last Post: rajpes
  Link to a file in the test result window tennessee 0 1,998 01-24-2011, 07:31 PM
Last Post: tennessee
  Save test result in Excel sheet janriis 1 3,476 10-11-2010, 05:39 PM
Last Post: KavitaPriyaCR

Forum Jump:


Users browsing this thread: 1 Guest(s)