Micro Focus QTP (UFT) Forums
Capturing movie in qtp - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Capturing movie in qtp (/Thread-Capturing-movie-in-qtp)



Capturing movie in qtp - sowmya - 01-24-2012

Hi,
I need to capture movie in qtp, i know how to capture by setting in the tools option but i need to write the script to capture movie. using capturebitmap can capture still images , but i don know which statement i should use capture movie.

Please give me the solution

Thank u in advance........


RE: Capturing movie in qtp - ravi.gajul - 01-24-2012

object.captureBitmap <file name to be saved with path"
Object is the object that you want to capture.
The below example captures browser with google page open
Example1: captures google page
Code:
Browser("name:=google").CaptureBitmap "c:\Google.bmp"

Example 2 : Captures Internet options dialog box

Code:
Browser("Google").Dialog("Internet Options").CaptureBitmap "c:\InternetOptions.bmp"



RE: Capturing movie in qtp - basanth27 - 01-29-2012

It is very important to first find the reason why we may need to automate. Even if you are successful to automate an movie, how are you going to validate it?

A capturebitmap only captures the required image during runtime and stores it at the location you intend. This is largely used for error capture and for screenshots.

In my opinion it is not possible to automate a movie recording.