report, result, testresult, scriptless, script-less, scripted, step, view, stepview

Method Report

Adds a report into Test Results

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Report( 
        Boolean Passed,
        String ReportTitle,
        Object ReportText, 
        Boolean CaptureBitmap [Optional]
)

Step

Report

true

Report title

Report text

true

Passed

ReportTitle

ReportText

CaptureBitmap

Parameters

Passed

Type: Boolean

Set true if you want to mark report passed, or false - if failed

ReportTitle

Type: String

Title for the report

ReportText

Type: Object

Additional report information. In most cases this parameter is String, but for non-String objects ToString() method will be applied

CaptureBitmap (optional)

Type: Boolean

Default value: false

Attach screenshot to the report

Returns

No return value

Example

VBScript

If Application("Demo").View("DemoView").Object("DemoObject").Exist Then
    Application("Demo").View("DemoView").Object("DemoObject").Report true, "DemoObject exists", "Success", true
End If

JavaScript

if (Application("Demo").View("DemoView").Object("DemoObject").Exist()) {
    Application("Demo").View("DemoView").Object("DemoObject").Report(true, "DemoObject exists", "Success", true);
}

Comment

Create report and attach screenshot to the report

Step

Report

true

Report title

Report text

true

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227