Mobile App Management

Go back to tutorial

Mobile App Management

We will be discussing in this about the Mobile App Management including installing of App, removing the app, etc. Also we will be elaborating more about the various functionalities involved in the process of App Management.

Mobile App Management

Mobile App Management

Mobile App Management for mobile: installApp

The mobile: installapp is used to install given application to the device under test. But, if the same application is already installed, then it will re-install over the existing one. Therefore, it allows you to test upgrades. Also, be careful while re-installing the main application under test. Also make sure that terminateApp has been called first, otherwise WebDriverAgent will detect the state as a potential crash of the application.

mobile: removeApp

This command is used to uninstall an existing application from the device under test. This endpoint does not verify whether the application is already installed or not before uninstalling it.

mobile: isAppInstalled

This command is used to verify whether the application with given bundle identifier is installed on the device. Returns true or false.

mobile: launchApp

This command is used to execute an existing application on the device. If the application is already running then it will be brought to the foreground.

mobile: terminateApp

This command helps to terminate an existing application on the device. Such that if the application is not running then the returned result will be false, otherwise true.

mobile: activateApp

The command is used to activate an existing application on the device under test and moves it to the foreground. Also, the application should be already running in order to activate it. Such that, the call is ignored if the application is already in foreground.

mobile: queryAppState

This command is used for queries the state of an existing application on the device. There are five possible application states –

  • 0: The current application state cannot be determined/is unknown
  • 1: The application is not running
  • 2: The application is running in the background and is suspended
  • 3: The application is running in the background and is not suspended
  •  4: The application is running in the foreground

 

Enrich your profile and become Job Ready. Practice and Prepare for Mobile Testing (Appium) Exam Now!

Get expert advice and hundreds of Free Test – Try Mobile Testing (Appium) Practice Questions Now!

Go back to tutorial

Get industry recognized certification – Contact us

Menu