Method Report.GetWarningStepsCount
Returns count of steps with Warning statusUsage
Function ZAP.Report.GetWarningStepsCount(
Boolean Report [Optional]
)
Parameters
Type: Boolean
Default Value: False
Generate report for this step
Returns
Count of steps with Warning status
Example
VBScript
warningStepsCount = Zap.Report.GetWarningStepsCount(True)
JavaScript
var warningStepsCount = Zap.Report.GetWarningStepsCount(true);
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Get warning steps count and save it to local variable