Skip to main content

SeeTestAutomation- ApplicationClose

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

boolean ApplicationClose (package name)

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 Expand source

client.ApplicationClose("com.experitest.ExperiBank/.LoginActivity");

VBScript Example Expand source

client.ApplicationClose "com.experitest.ExperiBank/.LoginActivity"

Python Example Expand source

self.client.applicationClose("com.experitest.ExperiBank")

Perl Example Expand source

$client->applicationClose("com.experitest.ExperiBank")