IsExecutable Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The IsExecutable property specifies whether the AIR application under test is an executable installed from an .air installation package or an unpacked application specified by its descriptor file.

Declaration

AIRTestedAppObj.IsExecutable

Read-Write Property Boolean
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

True if the tested application is an executable, and False otherwise.

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.

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 = true;
  app.Executable = "C:\\AIRTestedApps\\SampleApp.exe";

  // 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 = True
  app.Executable = "C:\\AIRTestedApps\\SampleApp.exe"
  # 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 = True
  app.Executable = "C:\AIRTestedApps\SampleApp.exe"

  ' 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 := true;
  app.Executable := 'C:\AIRTestedApps\SampleApp.exe';

  // 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"] = true;
  app["Executable"] = "C:\\AIRTestedApps\\SampleApp.exe";

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

  app["Close"]();
}

See Also

AIRTestedApp Object
Testing AIR Applications
AIR Application Parameters
Executable Property

Highlight search results