square / spoon

Distributing instrumentation tests to all your Androids.
https://square.github.io/spoon/
Apache License 2.0
2.7k stars 477 forks source link

Allow save screenshot from uiautomator #357

Open minakov opened 8 years ago

minakov commented 8 years ago
final File file = new File(context.getExternalCacheDir(), System.currentTimeMillis() + ".png");
UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()).takeScreenshot(file);
Spoon.saveScreenshot(context, file);
edenman commented 8 years ago

I'm sorry, what? There's already Spoon.save which has the exact signature you seem to be asking for.

minakov commented 8 years ago

Shure, but in result we should open screenshot in separate window.

artem-zinnatullin commented 7 years ago

@minakov what do you mean by that?

artem-zinnatullin commented 7 years ago

Ah, I got what you mean. You don't see screenshots saved through Spoon.save() as images in reports, only as links to files. This is pretty significant issue then.

dhiren-mudgil-olx commented 6 years ago

@edenman @artem-zinnatullin Any update on this issue. Please fix this.