Upload the file to the Perfecto repository media folder

To upload the application as part of your automation script, include the uploadMedia() method prior to creating the AppiumDriver instance.

Copy
Upload media to repository
// Uploads local apk file to Media repository
PerfectoLabUtils.uploadMedia(cloudName, securityToken, localFilePath, repositoryKey);

For this example in context, see PerfectoAppium.java.

For an example of PerfectoLabUtils.java, see PerfectoLabUtils.java.

What's next

Install the file and start the app on the device