capture, bitmap, screenshot, screencapture, result, report

Method CaptureBitmap

Captures Application screenshot and reports to Test Results

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function CaptureBitmap( 
	Boolean MarkObject [Optional], 
	String SavePath [Optional], 
	Boolean Report [Optional]
)

Step

CaptureBitmap

False

C:\bitmap.png

True

MarkObject [Optional]

SavePath [Optional]

Report [Optional]

Parameters

MarkObject (optional)

Type: Boolean

Default value: False

Capture application screenshot and mark object location instead of capturing object screenshot

SavePath (optional)

Type: String

Default value: Nothing (Null)

Alternatively, save bitmap data to the given path

Report (optional)

Type: Boolean

Default value: True

Add this step to the Results

Returns

No return value

Example

VBScript

Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap
' Mark object in bitmap
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap True
' Save bitmap to the file
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap True, "C:\bitmap.png"
' Do not add bitmap to result report
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap True, "C:\bitmap.png", False

JavaScript

Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap();
// Mark object in bitmap
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap(true);
// Save bitmap to the file
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap(true, "C:\bitmap.png");
// Do not add bitmap to result report
Application("Demo").View("DemoView").Object("DemoObject").CaptureBitmap(true, "C:\bitmap.png", false);

Comment

Capture and mark object

Step

CaptureBitmap

True

Comment

Save bitmap to file and remove it from result report

Step

CaptureBitmap

True

C:\bitmap.png

False

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227