Legacy | Start audio recording
-
Command: audio.recording
-
Subcommand: start
-
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
Starts recording the audio output from the device and creates a WAV file. The file is saved in the media storage server. A URL to the file location is returned in the response to the command and, if supplied, in the Result variable supplied as a parameter.
To hear the audio when using Start Audio in the Perfecto Automation IDE, you need to use the Open Device command and the parameter "Audio Recording" should be set to TRUE.
Parameters
Name | Value | Default | Description |
---|---|---|---|
deviceId* | The device for this command. | ||
variable | The variable name to recieve the url of the audio file. |
* Mandatory parameter
Request Syntax
Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-06_07_08_05_338?operation=command&securityToken=<your_token>&command=audio.recording&subcommand=start¶m.deviceId=6370E775¶m.variable=SoundLoc