Page tree
Skip to end of metadata
Go to start of metadata

boolean ApplicationClose (package name)

Supported in iOS Supported in Android

Description

This command will close and kill the application on the foreground of the device during runtime.

Parameters

  • Package Name: The application package name

Usage

Scenario: On the following example we will use the EriBank Application to demonstrate the use of this command.

Parameter Can be set to application package name or as an empty string. SeeTestAutomation will identify the application on the foreground and will close it.

  1. Launch the application and enter Username and Password.
  2. Execute the ApplicationClose command. Once command is completed we will get the HomeScreen of the device.

Code Examples

Java Example
client.applicationClose("com.experitest.ExperiBank/.LoginActivity");
C# Example
client.ApplicationClose("com.experitest.ExperiBank/.LoginActivity");
VBScript Example
client.ApplicationClose "com.experitest.ExperiBank/.LoginActivity"
Python Example
self.client.applicationClose("com.experitest.ExperiBank")
Perl Example
$client->applicationClose("com.experitest.ExperiBank")
  • No labels