GeekInterview.com
Series: Subject: Topic:
Question: 359 of 779

Dear Friends,,,

Kindly clarify my doubts...

1) How can i Save the snapshots in a specified folders using Scripting in QTP?

Kindly help me out...

Regards

Indu

Asked by: Interview Candidate | Asked on: Oct 25th, 2006
Showing Answers 1 - 2 of 2 Answers
KodumuruRamesh

Answered On : Oct 26th, 2006

Hi

   We can save the Snapshot in particular folder or location by using CaputureBitmap.

Syntax:

            Object.CaptureBitmap "C:desktopramesh.bmp",true

 we can use 2 format (1) .BMP format   (2) .png format

 & True or False is optional 

For more information contact:

kodumururamesh@yahoo.co.in

                

  
Login to rate this answer.
raghu

Answered On : Jan 3rd, 2007

You can create a folder in runtime using VBScript and save active screens in that folder

Set fol=createobject("scripting.filesystemobject")

Set myfol=fol.createfolder("c:raghu")

 

.capturebitmap("c:raghupic.bmp") 

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.