Interface Application

All Superinterfaces:
TestObject, TestObjectDescriber

public interface Application extends TestObject
A mobile application.
  • Method Details

    • getIdentifier

      String getIdentifier() throws GeneralLeanFtException
      Returns the application identifier string.
      Returns:
      the application identifier string.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • getName

      String getName() throws GeneralLeanFtException
      Returns the name of the mobile application.
      Returns:
      the name of the mobile application.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • getVersion

      String getVersion() throws GeneralLeanFtException
      Returns the application's version.
      Returns:
      the application's version.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • isPackaged

      boolean isPackaged() throws GeneralLeanFtException
      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

      int getUpload() throws GeneralLeanFtException
      Returns the application upload number.
      Returns:
      the application upload number.
      Throws:
      GeneralLeanFtException - if an error occurs during execution.
    • launch

      void launch() throws GeneralLeanFtException
      Launches the application if it is not started.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • restart

      void restart() throws GeneralLeanFtException
      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

      void install() throws GeneralLeanFtException
      Installs (or re-installs) the application and then launches it.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • kill

      void kill() throws GeneralLeanFtException
      Stops the application.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • uninstall

      void uninstall() throws GeneralLeanFtException
      Uninstalls the application.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • startCameraSimulationMode

      void startCameraSimulationMode(String mediaID) throws GeneralLeanFtException
      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

      void stopCameraSimulationMode() throws GeneralLeanFtException
      Stop camera simulation mode.
      Throws:
      GeneralLeanFtException - if an error occurs during execution
    • simulateBarcodeScan

      void simulateBarcodeScan(String imageID) throws GeneralLeanFtException
      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.