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

Last updated: Mar 31, 2021 15:08

You can upload a file to the Perfecto repository on the TestingCloud to have a central location from which your tests can retrieve, for example, the latest .apk or .ipa file. 

The following example uploads the file emptyText.txt, located in the same folder as the calling .java file, to the My Media section of the repository in the TestingCloud:

PerfectoLabUtils.uploadMediaTestingCloud("mobilecloud.perfectomobile.com", "pasteLongSecurityTokenHere!", "emptyText.txt", "PRIVATE:emptyText.txt");

You can use it as part of your testing or CI flow. If a new artifact is built, it could potentially be uploaded to the Perfecto repository, making it instantly usable by all other testers and tests.

For more information, see Legacy | Upload Item to Repository.

Step-by-step guide

  1. Create a security token.
  2. Download the UploadMedia function of PerfectoLabUtils1.java.
  3. Test it.