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 CustomReport method)

Usage

Type Zap.Report.ResultStatuses

ZAP Utility

...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 CustomReport method with Information ResultStatus
status = Zap.Report.ResultStatuses.Information
Application("Demo").CustomReport status, "Info", "This is additional information report step"
'Lets add one more step with Failed result
status = Zap.Report.ResultStatuses.Failed
Application("Demo").CustomReport status, "Error", "Unknown error occured."

JavaScript

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

Comment

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

ZAP Utility

...Statuses.Failed

Zap.Variable("status")

Application

CustomReport

Zap.Variable("status")

Error

Error occured

true

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227