FunctionTraceEnabled Property

Applies to TestComplete 15.47, last modified on January 20, 2023
Flash Player has reached end of life on December 31, 2020. Support for Flash and Flex applications is now deprecated in TestComplete and will be removed in a future release.

Description

Use this property to enable or disable tracing in Flash player.

Declaration

FlashSettingsObj.FunctionTraceEnabled

Read-Write Property Boolean
FlashSettingsObj An expression, variable or parameter that specifies a reference to a FlashSettings object

Applies To

The property is applied to the following object:

Property Value

True if tracing is enabled; False otherwise.

Remarks

The property affects the AS3Trace option of Flash Player for Internet Explorer and Firefox.

For Flash Player for Google Chrome, modify the options manually by editing the mm.cfg file that is located at –

<System_Drive>\<Users>\<User_name>\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\System\mm.cfg

Example

The code below checks whether tracing is enabled for the Flash player:

JavaScript, JScript

function FlashLogEnabled()
{
  if ( Options.FlashSettings.FunctionTraceEnabled )
    Log.Message("Tracing is enabled for the Flash player.")
  else
    Log.Message("Tracing is disabled for the Flash player.");
}

Python

def FlashLogEnabled():
  if Options.FlashSettings.FunctionTraceEnabled:
    Log.Message("Tracing is enabled for the Flash player.")
  else:
    Log.Message("Tracing is disabled for the Flash player.")

VBScript

Sub FlashLogEnabled()
  If Options.FlashSettings.FunctionTraceEnabled Then
    Log.Message "Tracing is enabled for the Flash player."
  Else
    Log.Message "Tracing is disabled for the Flash player."
  End If
End Sub

DelphiScript

function FlashLogEnabled;
begin
  if Options.FlashSettings.FunctionTraceEnabled then
    Log.Message('Tracing is enabled for the Flash player.')
  else
    Log.Message('Tracing is disabled for the Flash player.');
end;

C++Script, C#Script

function FlashLogEnabled()
{
  if ( Options["FlashSettings"]["FunctionTraceEnabled"] )
    Log["Message"]("Tracing is enabled for the Flash player.")
  else
    Log["Message"]("Tracing is disabled for the Flash player.");
}

See Also

FlashSettings Object Properties
FlashSettings Object
Testing Flash and Flex Applications with the Debug Version of Flash Player - Overview

Highlight search results