Oyebisi
Oyebisi

Reputation: 724

Is it possible to upload test data to devices in the Firebase test lab?

I am testing an image processing app and as such proper testing requires seletion of various images at runtime. Testing on a local device involves moving images on the local device and testing with an automated espresso UI test. How can I replicate this on the Firebase test lab devices? Is it possible?

Upvotes: 0

Views: 492

Answers (2)

Ehsan Khaveh
Ehsan Khaveh

Reputation: 1454

This is now possible with the --other-files flag (documentation here)

Upvotes: 1

Doug Stevenson
Doug Stevenson

Reputation: 317487

Having a selection of files appear on the device prior to running tests is currently not possible with the tooling you're given, though I have recently discussed this with the team. I would encourage you to file a feature request describing your use case in order to add weight to the argument.

In the meantime, consider placing your images in the APK as some sort of resource, and write code to copy those into place during your test.

Upvotes: 1

Related Questions