Put file (FR)

Perfecto Command

mobile:media:put

Purpose

Copies a file from the repository to the device's file system. Within iOS applications, you can use this command to place a file in any of the following folders as well: Documents, Library, tmp. If the specified folder does not exist, the command will create the folder before copying the file. This command is supported for automation testing. For interactive testing, you can use the Transfer a file option.

Parameters

Name

Type

Possible Values

Description

repositoryFile

Multimedia


The full repository path, including directory and file name, where the file is located.

Example: PRIVATE:image.png

Click browse and navigate to the file.

The file must first be uploaded to the Perfecto Lab Repository, by logging into the Perfecto Lab interface. To view/modify your private repository, use the repository manager.

handsetFile

String


The device file path, including root and file name, where to upload the file. The root can be phone or card.

Examples:

Copy

iOS

phone:/Media/image.png
Copy

Android

phone:/sdcard/DCIM/Camera/image.png

To view the device file system, log in to the Perfecto Lab  interface and use the file transfer widget.

Return Value

None

Exceptions

None

Examples