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 in
.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. On devices that do not meet these requirements, audio injection is disabled. 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:
- Open your app and activate the microphone option.
- On the device toolbar, click the audio icon .
- In the Inject audio file form, select the location of your audio file: Repository (default) or Computer.
- Depending on your selection in step 2, do the following:
Repository: Search for and select the repository file you want to use.Tip
You can search by tag name, if applicable. If a file is associated with tags, a tag symbol appears below the file name, along with the number of tags associated with the file. To view the tag names, move the pointer over the tag icon .
- Click ADD AUDIO.
- Browse to the file you want to use.
- Select the file and click Open.
The file loads.
- Click INJECT AUDIO FILE.
Perfecto injects the file and your app should reflect the result shortly.