Method Report.GetFailedStepsCount
Returns count of steps with Failed statusUsage
Function ZAP.Report.GetFailedStepsCount(
Boolean Report [Optional]
)
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