Check this one
Sub CaptureBitmap_Example2()
'The following example uses the CaptureBitmap method to capture a
'screen shot of the Internet Options dialog box. The image is saved to an
'absolute path. Each time the CaptureBitmap statement runs,
'QuickTest overwrites the previous image with the new one.
Browser("Mercury Tours").Dialog("Internet Options").CaptureBitmap
"C:\ScreenCaps\internet_options.bmp", True
'In the statement below, the image is saved to the absolute path,
'but if the statement runs more than once, then the existing file is
'saved, and later captures are not.
Browser("Mercury Tours").Dialog("Internet Options").CaptureBitmap
"C:\ScreenCaps\internet_options.bmp", False
End Sub
On Wed, Jul 27, 2011 at 5:00 PM, Nidhi Sharma <[email protected]>wrote:
> Hi,
>
> I am facing a problem of unable to take up the sceenshots for the
> scheduled qtp scripts using windows schedular.
>
> I am using CaptureBitmap() method defined by qtp for taking up the
> screenshots but when i schedule the nightly scripts and any of the scripts
> fails,the screenshot is taken but they are *blank* as if they are of the
> desktop.
>
> I feel that the above described method is working to take up the sceenshot
> but due to the fact that there is no mouse and keyboard movement for the
> scheduled scripts,the screen gets blank and screenshot is taken up for that.
>
> Please let me know if anyone has any solution for that.
>
> Thanks,
> Nidhi
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
--
Azhar Mehmood
03215056676
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en