report, namespace, get, failed, error, steps, count, scriptless, script-less, scripted, step, view, stepview

Method Zap.Report.GetFailedStepsCount

Returns count of steps with Failed status

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Report.GetFailedStepsCount(
  Boolean Report [Optional]
)

ZAP Utility

ZAP Utility step

Report.GetFailed...

True

failedCount

Report

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Count of steps with Failed status

Example

VBScript

failedStepsCount = Zap.Report.GetFailedStepsCount(True)

JavaScript

var failedStepsCount = Zap.Report.GetFailedStepsCount(true);

Comment

Get failed steps count and save it to local variable

Script-Less next step

ZAP Utility

ZAP Utility step

Report.GetFailed...

True

failedCount

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552