sylph icon indicating copy to clipboard operation
sylph copied to clipboard

[Question] Snaphots not visible in AWS console

Open fvisticot opened this issue 5 years ago • 2 comments

I would like to see the snaphot files I'm taking from the test using the method: where path is the filename without any directory before.

Is there a specific path to specify to see the snapthot files in the AWS console ?

Future<void> _takeScreenshot(FlutterDriver driver, String path) async { final List<int> pixels = await driver.screenshot(); final File file = new File(path); await file.writeAsBytes(pixels); print(path); }

fvisticot avatar Dec 11 '19 14:12 fvisticot

That's listed as an enhancement in #22. Also checkout https://github.com/mmcc007/screenshots which should run faster.

mmcc007 avatar Dec 11 '19 22:12 mmcc007

When #22 is implemented, you would have to deposit your artifacts in a known directory. Will probably add a config for this. May provide a helper function for writing to the artifacts dir from tests. Not clear at this point. Otherwise would have to handle in your tests.

In the meantime, Device Farm has a 'default' artifacts directory that you can write to, that might work. Try writing your artifacts to $DEVICEFARM_LOG_DIR.

Let me know how it goes.

mmcc007 avatar Jan 16 '20 09:01 mmcc007