type, report, namespace, result, status, passed, information, failed, warning, custom, step, scriptless, script-less, scripted, step, view, stepview

Type Zap.Report.ResultStatuses

Watch this video to learn how to use this method

Have a problem with playback?

ResultStatuses enumeration type is used to set custom result step status on report (i.e. in CustomReportEx method)

Usage

Type Zap.Report.ResultStatuses

ZAP Utility

ZAP Utility step

...Statuses.Passed

status

Output Parameter

Values

Failed

Failed result status

Information

Information result status

Passed

Passed result status

Warning

Warning result status

Example

VBScript

'Call CustomReportEx method with Information ResultStatus
status = Zap.Report.ResultStatuses.Information
Application("Demo").CustomReportEx status, "Info", "This is additional information report step"
'Lets add one more step with Failed result
status = Zap.Report.ResultStatuses.Failed
Application("Demo").CustomReportEx status, "Error", "Unknown error occured."

JavaScript

// Call CustomReportEx method with Information ResultStatus
var status = Zap.Report.ResultStatuses.Information;
Application("Demo").CustomReportEx(status, "Info", "This is additional information report step");
// Lets add one more step with Failed result
status = Zap.Report.ResultStatuses.Failed;
Application("Demo").CustomReportEx(status, "Error", "Unknown error occured.");

Comment

Save report status to variable using ZAP Utility step and set it as parameter to CustomReportEx method

Script-Less next step

ZAP Utility

ZAP Utility step

...Statuses.Failed

Zap.Variable("status")

Script-Less next step

Application

ZAP Object step

CustomReportEx

Zap.Variable("status")

Error

Error occured

true

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552