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

Last updated: Mar 19, 2020 14:55

Note: In preparation for the Flash end-of-life (EOL) at the end of 2020, we have made a new solution available that replaces the Perfecto native automation commands clean device, reboot device, and get network settings. For details, see Create, execute, and schedule maintenance scripts (Perfecto IDE alternative).

Command: device

Subcommand: clean

Supported Platforms: Native, Selenium

Supported OS: Android

Cleans the device - possibly removing any installed applications, user data, etc.

Description

When a "deep clean" is selected it removes all installed applications, all user data, installed files from the device.

If the Clean Chrome parameter is selected - resets the Chrome history on the device.

Parameters

 * Mandatory parameter

Request & Response

Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-02_12_21_16_829?operation=command&securityToken=<your_token>&command=device&subcommand=clean&param.deviceId=6370E775


JSON Response
{
	"executionId":"john@perfectomobile.com_controller_16-11-02_12_21_16_829",
	"reason":"Success",
	"timer.elapsed":"20844",
	"testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-02_12_21_16_829",
	"timer.ux":"0",
	"singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161102/controller_16-11-02_12_21_16_829.xml&ownerId=john@perfectomobile.com&sharingCode=e967892e-5541-4b12-aa04-dc039ed8908f",
	"description":"Success",
	"timer.system":"20844",
	"reportKey":"PRIVATE:controller/161102/controller_16-11-02_12_21_16_829.xml",
	"completed":"true",
	"flowEndCode":"SUCCEEDED",
	"timer.device":"0"
}