Interface IApplication
A mobile application.
Inherited Members
Namespace: HP.LFT.SDK.Mobile
Assembly: HP.LFT.SDK.dll
Syntax
public interface IApplication : ITestObject, ITestObjectDescriber
Properties
Identifier
The application identifier string.
Declaration
string Identifier { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsPackaged
Indicates whether the application is packaged (instrumented) or not.
Declaration
bool IsPackaged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
The name of the mobile application.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
SimulateAuthentication
Returns an object used to define the result of simulating authentication for the application.
Declaration
ISimulateAuthResult SimulateAuthentication { get; }
Property Value
| Type | Description |
|---|---|
| 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.
Declaration
int Upload { get; }
Property Value
| Type | Description |
|---|---|
| int |
Version
The application's version.
Declaration
string Version { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Install()
Installs (or re-installs) the application and then launches it.
Declaration
void Install()
Kill()
Stops the application.
Declaration
void Kill()
Launch()
Launches the application if it is not already running.
Declaration
void Launch()
Restart()
Launches the application if it is closed, or restarts the application if it is already running.
Declaration
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.Declaration
void SimulateBarcodeScan(string imageID)
Parameters
| Type | Name | Description |
|---|---|---|
| string | imageID |
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.Declaration
void StartCameraSimulationMode(string mediaID)
Parameters
| Type | Name | Description |
|---|---|---|
| string | mediaID |
StopCameraSimulationMode()
Stop camera simulation mode. Use after StartCameraSimulationMode.
Declaration
void StopCameraSimulationMode()
Uninstall()
Uninstalls the application.
Declaration
void Uninstall()