Skip to main content

SeeTestAutomation- ApplicationClearData

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 .

ApplicationClearData(app)

Description

Android - This command will clear the entire application data and cache from the device it is installed on during runtime.

iOS (supported since 12.2) - This command will clear application's data, for more infornmation see Clearing iOS Application Data

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.

Step 1: Go to Settings Tab (Settings->App->All->EriBank).

See the app info. In this example

Step 2: Execute the applicationClearData command.

Step 3: Check the result.

Code Examples

Java Example

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

C# Example Expand source

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

VBScript Example Expand source

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

Python Example Expand source

self.client.applicationClearData("com.experitest.ExperiBank/.LoginActivity")

Perl Example Expand source

$client->applicationClearData("com.experitest.ExperiBank/.LoginActivity");