Method CustomReport
Add a custom report into Test ResultsUsage
Function CustomReport(
Boolean Passed,
String ReportTitle,
Object ReportText,
Boolean CaptureBitmap [Optional]
)
Parameters
Passed
Type: Boolean
Report as failed or passed - True = Passed, False = Failed
ReportTitle
Type: String
Title for the report
ReportText
Type: Object
Additional information to add into the report
CaptureBitmap (optional)
Type: Boolean
Default value: False
Attach screenshot for the report
Returns
No return value
Example
VBScript
Application("Demo").CustomReport true, "test title", "report text"
'To attach screenshot to report set CaptureBitmap option parameter to true
Application("Demo").CustomReport true, "test title", "report text", true
JavaScript
Application("Demo").CustomReport(true, "test title", "report text");
// To attach screenshot to report set CaptureBitmap option parameter to true
Application("Demo").CustomReport(true, "test title", "report text", true);
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Create Custom report and attach screenshot to the report