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

Last updated: Apr 02, 2020 17:49

On an open device, 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 in .mp3 or .wav format and presenting it to the application as if it was read by the device microphone. The file cannot exceed 150 MB.

The device you use for testing must have a separate audio jack and be connected to audio. If you need a specific device connected, contact Perfecto Support.

Watch this short video to see how you can inject an audio file. For automated testing, you can use the existing Inject audio command.

To inject an audio file:

  1. On the device toolbar, click the audio icon .
  2. In the Inject audio file form, click ADD AUDIO and browse to the audio file you want to use for testing.
  3. When the file has loaded, open your app and activate the microphone option.
  4. Go back to the Inject audio file form and click INJECT AUDIO FILE
    Perfecto injects the file and your app should reflect the result shortly.