IPAFileName Property

Applies to TestComplete 14.0, last modified on January 23, 2019

Description

Use the IPAFileName property to get or set the path to the iOS application archive file (IPA).

Declaration

iOSTestedAppObj.IPAFileName

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

Applies To

The property is applied to the following object:

Property Value

A string containing the fully-qualified path to the iOS application archive file.

Example

The following sample script demonstrates how to add an iOS application to the list of tested applications, modify the path to its package file and launch the application.

JavaScript, JScript

function AddiOSApplication()
{

  // Sets the current device
  Mobile.SetCurrent("iPhone");

  // Adds an iOS application to the list of tested applications
  var ind = TestedApps.AddiOSApp("C:\\Apps\\DemoApp.ipa");

  // Obtains the tested application and modifies the path to its package file
  var iOSTestedApp = TestedApps.Items(ind);
  iOSTestedApp.IPAFileName = "C:\\Apps\\iOSApp.ipa";
  …

  // Launches the application
  iOSTestedApp.DeployOnStart = true;
  iOSTestedApp.Run();

}

Python

def AddiOSApplication():
  # Sets the current device 
  Mobile.SetCurrent("iPhone")
  # Adds an iOS application to the list of tested applications 
  ind = TestedApps.AddiOSApp("C:\\Apps\\DemoApp.ipa")
  # Obtains the tested application and modifies the path to its package file 
  iOSTestedApp = TestedApps.Items[ind]
  iOSTestedApp.IPAFileName = "C:\\Apps\\iOSApp.ipa"
  # Launches the application 
  iOSTestedApp.DeployOnStart = True
  iOSTestedApp.Run()

VBScript

Sub AddiOSApplication

  ' Sets the current device
  Mobile.SetCurrent("iPhone")

  ' Adds the iOS application to the list of tested applications
  ind = TestedApps.AddiOSApp("C:\Apps\DemoApp.ipa")

  ' Obtains the tested application and modifies the path to its package file
  Set iOSTestedApp = TestedApps.Items(ind)
  iOSTestedApp.IPAFileName = "C:\Apps\iOSApp.ipa"
  …

  ' Launches the application
  iOSTestedApp.DeployOnStart = True
  iOSTestedApp.Run

End Sub

DelphiScript

procedure AddiOSApplication();
var ind, iOSTestedApp;
begin

  // Sets the current device
  Mobile.SetCurrent('iPhone');

  // Adds the iOS application to the list of tested applications
  ind := TestedApps.AddiOSApp('C:\Apps\DemoApp.ipa');

  // Obtains the tested application and modifies the path to its package file
  iOSTestedApp := TestedApps.Items[ind];
  iOSTestedApp.IPAFileName := 'C:\Apps\iOSApp.ipa';
  …

  // Launches the application
  iOSTestedApp.DeployOnStart := true;
  iOSTestedApp.Run();

end;

C++Script, C#Script

function AddiOSApplication()
{

  // Sets the current device
  Mobile["SetCurrent"]("iPhone");

  // Adds an iOS application to the list of tested applications
  var ind = TestedApps["AddiOSApp"]("C:\\Apps\\DemoApp.ipa");

  // Obtains the tested application and modifies the path to its package file
  var iOSTestedApp = TestedApps["Items"](ind);
  iOSTestedApp["IPAFileName"] = "C:\\Apps\\iOSApp.ipa";
  …

  // Launches the application
  iOSTestedApp["DeployOnStart"] = true;
  iOSTestedApp["Run"]();

}

See Also

iOSTestedApp Object
About Tested iOS Applications
About Tested Applications
Run Modes and Parameters
Editing Mobile Application Parameters

Highlight search results