Hi Mathi,

you can use CaptureBitmap method if you need to store the snapshots in
different location.
However, you may need to do a bit of additional coding to get the snapshot
for all errors (try using "if" condition with "exist" and in "else"
statement use captureBitmap method)

Syntax: (you can get it in qtp help file also)

*object**.CaptureBitmap* *FullFileName*, * [OverrideExisting]*
Browser(B).Page(P).WebEdit(x).*CaptureBitmap* "d:\my_folder\EditSnap.bmp", *
True
*
Regards,
Vivek*

*On Fri, Sep 19, 2008 at 1:10 PM, Mathi_QA Engineer
<[EMAIL PROTECTED]>wrote:

>
> Hi Vivek,
>           Thanks for your response.
> i tried this and it is working. i have another one doubt,
>       As of now i am reporting all of my defects in excel file. When
> using the  SnapshotReportMode method, QTP reports the images in QTP
> results. Can i get those snapshots in my own location or in the excel
> file which i am creating?
>
> Thanks in advance,
> mathi
>
> On Sep 19, 10:29 am, "Vivek Prakash" <[EMAIL PROTECTED]> wrote:
> > use statement - Setting("SnapshotReportMode") = 0 at the beginning of the
> > script.
> >
> > Codes for SnapshotReportMode are as follows:
> >
> > *0* - always captures images.
> > *1* - captures images only if an error occurs on the page.
> > *2* - captures images if an error or warning occurs on the page.
> > *3* - never captures images.
> > *Default = 1*.
> >
> > when you use snapshotReportMode property, it will capture the object on
> > which any action is performed(depending on the value you use for this
> > property, if you use 0, it will capture all screen shots, however, if you
> > use, 1, it will capture screen shots for only those objects which results
> in
> > an error).
> >
> > In Test result, just click on the object of which you want to see the
> screen
> > shot.  It will be displayed there.
> >
> > *Note:  This property will not capture objects on which you have just
> used
> > Exist method only and have not performed any action like click or set
> ...*
> >
> > Regards,
> > Vivek
> >
> > On Wed, Sep 17, 2008 at 12:50 PM, Mathi_QA Engineer
> > <[EMAIL PROTECTED]>wrote:
> >
> >
> >
> >
> >
> > > Hi,
> > > Anyone please help me how to take the screen shot of the failure test
> > > cases and add them in the test results for the Jaav application.. It
> > > would be helpful If you help with the script..
> >
> > > Thanks in Advance- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "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
-~----------~----~----~----~------~----~------~--~---

Reply via email to