Legacy | Voice assistant inject

  • Command: handset

  • Subcommand: voiceCommand

  • Supported Platforms: Native (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:  iOS

Description

Sends a text string to the device's Voice Assistant (Siri) and allows the assistant to complete the action.

Restriction: Supported on devices running iOS 10.3 or later, configured for the XCUITest framework.

Parameters

Name Value Default Description
deviceID*     The device for this command.
text*     Text of the input to send to the voice assistant.

* Mandatory parameter

Request & Response

Copy

Request

 https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-10_12_43_16_28?operation=command&securityToken=<your_token>&command=handset&subcommand=voiceCommand&param.deviceId=HT5BAJT00574&param.text=
Copy

JSON response

 {
    "executionId":"john@perfectomobile.com_controller_16-11-10_12_43_16_28",
    "reason":"Success",
    "timer.elapsed":"5742",
    "testGridReportUrl":"https://mycloud.reporting-01.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-10_12_43_16_28",
    "timer.ux":"5733",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161110/controller_16-11-10_12_43_16_28.xml&ownerId=john@perfectomobile.com&sharingCode=4b5a4717-6e56-45e2-868e-8ee64285468b",
    "description":"Success",
    "timer.system":"9",
    "reportKey":"PRIVATE:controller/161110/controller_16-11-10_12_43_16_28.xml",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "timer.device":"5733"}