Version

Hard Break On All Errors

This setting allows you to change how a Test Automation for Micro Focus Win-Forms (Unified Functional Testing) software proxy reports an exception thrown during the replay of an action in a Micro Focus UFT script against a supported Ultimate UI for Windows Forms control.

You can set this setting to either of the following:

  • Break on Proxy Errors

  • Report Proxy Errors

The default value for this setting is Break on Proxy Errors

Break on Proxy Errors

When Test Automation for Micro Focus Win-Forms (Unified Functional Testing) software throws an error, for example if you attempted to set a value to a disabled editor or you tried to access an item with an invalid key, a message box is displayed with the error message. Your script stops running until you interact with the message box.

This is the standard behaviour of Micro Focus UFT for Inbox controls. You can resolve this by enclosing it in an ON ERROR RESUME NEXT block and write code to validate and possibly report the error.

Report Proxy Errors

Report Proxy Errors does not stop your script from running and it does not display a message box to you. Instead it reports the error message directly to the results report, this is similar to the Micro Focus UFT method Reporter.ReportEvent, it then continues on to the next step in your script. You do not need to write additional code to process the error.

Note
Note

You can set this setting in three ways:

  • Settings Utility

  • SetProxySetting proxy method

  • SetHardBreakOnAllErrors proxy method

You can verify the current value of the setting by using the GetProxySetting proxy method.

Note
Note

When you change any of the settings, Micro Focus UFT must be restarted so that the new changes can be picked up.