DebugAgent.AdvancedExceptionHandling Property

Applies to TestComplete 14.60, last modified on April 22, 2021

Description

Use the DebugAgent.AdvancedExceptionHandling property to specify the value of the project’s Advanced exception handling property from scripts. This property specifies how TestComplete handles exceptions that occur during calls to methods of Open Applications’ objects.

Declaration

DebugAgent.AdvancedExceptionHandling

Read-Only Property Boolean

Applies To

The property is applied to the following object:

Property Value

True, if the project’s property is enabled and False otherwise.

Example

The code below checks whether a project property is enabled.

JavaScript, JScript

function AdvancedExceptionHand()
{
  var ExepHand = DebugAgent.AdvancedExceptionHandling;
  
  if (ExepHand)
    Log.Message("The exceptions are handled.")
  else
    Log.Message("The exceptions are not handled.");
}

Python

def AdvancedExceptionHand():
  ExepHand = DebugAgent.AdvancedExceptionHandling
  if ExepHand:
    Log.Message("The exceptions are handled.")
  else:
    Log.Message("The exceptions are not handled.")

VBScript

Sub AdvancedExceptionHand

  ExepHand = DebugAgent.AdvancedExceptionHandling
  
  If ExepHand Then 
    Log.Message("The exceptions are handled.")
  Else
    Log.Message("The exceptions are not handled.")
  End If
  
End Sub

DelphiScript

function AdvancedExceptionHand;
var ExepHand;
begin

  ExepHand := DebugAgent.AdvancedExceptionHandling;
  
  if ExepHand then
    Log.Message('The exceptions are handled.')
  else
    Log.Message('The exceptions are not handled.');

end;

C++Script, C#Script

function AdvancedExceptionHand()
{
  var ExepHand = DebugAgent["AdvancedExceptionHandling"];
  
  if (ExepHand)
    Log["Message"]( "The exceptions are handled." )
  else
    Log["Message"]( "The exceptions are not handled." );
}

See Also

Project Properties - Debug Agent Options
Handling Exceptions in Scripts
About Open Applications
Debug Info Agent

Highlight search results