Method Report.GetFailedStepsCount

Returns count of steps with Failed status

Usage

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

ZAP Utility

ZAP Utility step

Report.GetFailed...

True

failedCount

Boolean Report [Optional]

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