Purpose:
Sometimes a user will need to turn of an error message that is expected to appear, in which the command will fail and create an error on the report.
How we turn off the error reporting for this command-
Right click on the command and selected Add Additional User Code
Click on Script Code
Click on Objects User Code (before) ReportEchoStatus=FALSE; (to turn it off)
Click on Objects User Code (after) ReportEchoStatus=TRUE; (to turn it back on after)
First Scenario the window/dialog is expected to appear so this will pass.
The Second Scnario we expect the window to not appear, however we want a passing result in the reports that is generated.