DebuggerExecutable Property

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

If you are testing an unpackaged AIR application, use the DebuggerExecutable property to specify the path to the AIR Debug Launcher (adl.exe) that will be used to run the tested AIR application. This is the same value you specify as the AIR Debug Launcher parameter in the TestedApps editor.

To specify the AIR application’s descriptor file, use the AIRTestedApp.DescriptorFileName property.

Note: The TestedAIRApp.IsExecutable property specifies whether the tested AIR application is an executable or an unpacked application.

Declaration

AIRTestedAppObj.DebuggerExecutable

Read-Write Property String
AIRTestedAppObj An expression, variable or parameter that specifies a reference to an AIRTestedApp object

Applies To

The property is applied to the following object:

Property Value

A string value containing the path to the AIR Debug Launcher (adl.exe).

Remarks

If you assign a value to this property, TestComplete will treat your project as modified. So, you will need to save or cancel changes when closing the project. The specified value will be displayed in the TestedApps editor.

To specify the property value, you can use project and project suite variables as well as the operating system’s environment variables.

The project or project suite variables must be of the string type. To refer to them, use the following syntax --

$(var_name)

--for example, “$(MyVar1)”.

Note: When evaluating the value of the property, TestComplete first searches for the specified variable in the project variables, then in the project suite variables. Please keep this in mind if you have project and project suite variables with the same names.

To refer to environment variables, use the following syntax --

%var_name%

-- for example, %Path%.

Note that variables can refer to each other, for instance, a project variable may include a reference to an environment variable. TestComplete will recursively analyze the variables and form the resulting value that does not contain variable names.

Example

The following example adds a new AIR application to a project, specifies its launch parameters and then launches the application:

JavaScript, JScript

function Test()
{
  // Add an AIR application to the project
  var ind = TestedApps.AddAIRApp();
  var app = TestedApps.Items(ind);

  // Specify AIR application's launch parameters
  app.IsExecutable = false;
  app.DebuggerExecutable = "C:\\AIR\\bin\\adl.exe";
  app.DescriptorFileName = "C:\\AIRTestedApp\\Main.xml";

  // Launches the AIR application
  app.Run();
  // Test the application
  // ...

  app.Close();
}

Python

def Test():
  # Add an AIR application to the project
  ind = TestedApps.AddAIRApp;
  app = TestedApps.Items[ind];

  # Specify AIR application's launch parameters
  app.IsExecutable = False;
  app.DebuggerExecutable = "C:\\AIR\\bin\\adl.exe"
  app.DescriptorFileName = "C:\\AIRTestedApp\\Main.xml"

  # Launches the AIR application
  app.Run()
  # Test the application
  # ...

  app.Close()

VBScript

Sub Test
  ' Add an AIR application to the project
  ind = TestedApps.AddAIRApp
  Set app = TestedApps.Items(ind)

  ' Specify AIR application's launch parameters
  app.IsExecutable = False
  app.DebuggerExecutable = "C:\AIR\bin\adl.exe"
  app.DescriptorFileName = "C:\AIRTestedApp\Main.xml"

  ' Launches the AIR application
  app.Run
  ' Test the application
  ' ...

  app.Close
End Sub

DelphiScript

procedure Test();
var ind, app;
begin
  // Add an AIR application to the project
  ind := TestedApps.AddAIRApp;
  app := TestedApps.Items(ind);

  // Specify AIR application's launch parameters
  app.IsExecutable := false;
  app.DebuggerExecutable := 'C:\AIR\bin\adl.exe';
  app.DescriptorFileName := 'C:\AIRTestedApp\Main.xml';

  // Launches the AIR application
  app.Run;
  // Test the application
  // ...

  app.Close;
end;

C++Script, C#Script

function Test()
{
  // Add an AIR application to the project
  var ind = TestedApps["AddAIRApp"]();
  var app = TestedApps["Items"](ind);

  // Specify AIR application's launch parameters
  app["IsExecutable"] = false;
  app["DebuggerExecutable"] = "C:\\AIR\\bin\\adl.exe";
  app["DescriptorFileName"] = "C:\\AIRTestedApp\\Main.xml";

  // Launches the AIR application
  app["Run"]();
  // Test the application
  // ...

  app["Close"]();
}

See Also

AIRTestedApp Object
Testing AIR Applications
AIR Application Parameters
DescriptorFileName Property
IsExecutable Property

Highlight search results