Table of Contents

Interface IApplication

Namespace
HP.LFT.SDK.Mobile
Assembly
HP.LFT.SDK.dll

A mobile application.

public interface IApplication : ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

Identifier

The application identifier string.

string Identifier { get; }

Property Value

string

IsPackaged

Indicates whether the application is packaged (instrumented) or not.

bool IsPackaged { get; }

Property Value

bool

Name

The name of the mobile application.

string Name { get; }

Property Value

string

SimulateAuthentication

Returns an object used to define the result of simulating authentication for the application.

ISimulateAuthResult SimulateAuthentication { get; }

Property Value

ISimulateAuthResult

Upload

The application upload number. The upload number can be used to identify the application uniquely when the application is uploaded more than once.

int Upload { get; }

Property Value

int

Version

The application's version.

string Version { get; }

Property Value

string

Methods

Install()

Installs (or re-installs) the application and then launches it.

void Install()

Kill()

Stops the application.

void Kill()

Launch()

Launches the application if it is not already running.

void Launch()

Restart()

Launches the application if it is closed, or restarts the application if it is already running.

void Restart()

SimulateBarcodeScan(string)

Simulate barcode or QR code scan using an image file. Run after Device.UploadMedia.

The unique ID of the uploaded image to use in the simulation as used in IDevice.UploadMedia.
void SimulateBarcodeScan(string imageID)

Parameters

imageID string

StartCameraSimulationMode(string)

Start camera simulation mode. Run after Device.UploadMedia. Once simulation is completed, run StopCameraSimulationMode.

The unique ID of the uploaded media to use in the simulation as used in IDevice.UploadMedia.
void StartCameraSimulationMode(string mediaID)

Parameters

mediaID string

StopCameraSimulationMode()

Stop camera simulation mode. Use after StartCameraSimulationMode.

void StopCameraSimulationMode()

Uninstall()

Uninstalls the application.

void Uninstall()