Package com.hp.lft.sdk.mobile
Interface Application
- All Superinterfaces:
TestObject
,TestObjectDescriber
A mobile application.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application identifier string.getName()
Returns the name of the mobile application.int
Returns the application upload number.Returns the application's version.void
install()
Installs (or re-installs) the application and then launches it.boolean
Indicates whether the application is packaged (instrumented) or not.void
kill()
Stops the application.void
launch()
Launches the application if it is not started.void
restart()
Launches the application if it is closed, or restarts the application if it is already running.Returns an object used to define the result of simulating authentication for the application.void
simulateBarcodeScan
(String imageID) Simulate barcode or QR code scan using an image file.void
startCameraSimulationMode
(String mediaID) Start camera simulation mode.void
Stop camera simulation mode.void
Uninstalls the application.Methods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
-
Method Details
-
getIdentifier
Returns the application identifier string.- Returns:
- the application identifier string.
- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
getName
Returns the name of the mobile application.- Returns:
- the name of the mobile application.
- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
getVersion
Returns the application's version.- Returns:
- the application's version.
- Throws:
GeneralLeanFtException
- if an error occurs during execution.
-
isPackaged
Indicates whether the application is packaged (instrumented) or not.- Returns:
- true if this application is packaged (instrumented).
- Throws:
GeneralLeanFtException
- if an error occurs during execution.
-
getUpload
Returns the application upload number.- Returns:
- the application upload number.
- Throws:
GeneralLeanFtException
- if an error occurs during execution.
-
launch
Launches the application if it is not started.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
restart
Launches the application if it is closed, or restarts the application if it is already running.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
install
Installs (or re-installs) the application and then launches it.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
kill
Stops the application.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
uninstall
Uninstalls the application.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
startCameraSimulationMode
Start camera simulation mode. Run after Device.UploadMedia. Once simulation is completed, run StopCameraSimulationMode.- Parameters:
mediaID
- the unique ID of the uploaded media to use in the simulation, as used in Device.UploadMedia.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
stopCameraSimulationMode
Stop camera simulation mode.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
simulateBarcodeScan
Simulate barcode or QR code scan using an image file. Run after Device.UploadMedia.- Parameters:
imageID
- the unique ID of the uploaded image to use in the simulation as used in IDevice.UploadMedia.- Throws:
GeneralLeanFtException
- if an error occurs during execution
-
simulateAuthentication
SimulateAuthResult simulateAuthentication()Returns an object used to define the result of simulating authentication for the application.- Returns:
- an object used to define the result of simulating authentication for the application.
-