Close application command

Closes an application on the device. The application process is killed, not minimized. If you reopen the application, the application will launch from the start page. (If you minimize the application, for example by using the Home button, the application will launch from the last page previously open.)

To use this command, the application identifier is required. For information on retrieving the application identifier, see Application identifier.

This command does not clear the cache. Service applications that live forever in the background may be auto-relaunched.

Tip: To close an iOS application, you can use assistive touch (go to Settings > Accessibility > Assistive Touch) or uninstall the application.

Parameters

Name Type Possible values Description

Device ID*

String

 

The device for this command. By default, this is the device under test (DUT).

Application name

String

 

The application name as it is displayed on the screen.

Application identifier

String

 

The identifier of the application.

Comment

String

 

Adds a comment to the script

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter