Legacy | Trackball

  • Command: trackball

  • Subcommand: roll

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Performs a trackball roll.

Parameters

Name

Value

Default

Description

deviceId*

   

The device for this command.

distance*

   

The distance from the last location coordinates.

Format - x,y

Note: This command receives an x,y sequence relative to the last location coordinates that are not absolute coordinates on the screen.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-13_08_16_27_239?operation=command&securityToken=<your_token>&command=trackball&subcommand=roll&param.deviceId=04157DF47CA01828&param.distance=123,200
Copy

JSON response

{
    "executionId":"john@perfectomobile.com_controller_16-11-13_08_16_27_239",
    "reason":"Success",
    "timer.elapsed":"281",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-13_08_16_27_239",
    "timer.ux":"0",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161113/controller_16-11-13_08_16_27_239.xml&ownerId=john@perfectomobile.com&sharingCode=ace2abb5-1429-4de1-9769-67dd4c27db5a",
    "description":"Success",
    "timer.system":"281",
    "reportKey":"PRIVATE:controller/161113/controller_16-11-13_08_16_27_239.xml",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "timer.device":"0"}