Inject an audio file
On an open device that has audio injection enabled, you can inject an audio file to mimic microphone reception. This is helpful when testing actions in apps that rely on audio input. Audio injection mocks the use of the microphone by using an uploaded audio file format and presenting it to the application as if it was read by the device microphone.
To learn more about audio injection, including requirements and limitations, see Audio injection overview.
To inject an audio file, perform the following steps.
To inject an audio file:
- In the widgets pane, click the Environment button
.
- On the Environment tab, click Inject Audio.
-
In the Inject Audio widget, do the following:
-
Select the location of your audio file: Repository (default) or Computer.
-
Depending on your selection in step a, do the following:
-
Repository: Search for and select the repository file you want to use.
-
Computer:
-
Click ADD AUDIO.
-
Browse to the file you want to use.
-
-
-
To specify the testing method, select the required checkbox next to these options:
-
Execute the selected action on the device.
-
Add the selected action to the test.
-
-
Click APPLY.
Perfecto injects the file and your app should reflect the result shortly.
-
(Optional) To return to the Environment tab, at the top, click Back.
-