sylph
sylph copied to clipboard
[Question] Snaphots not visible in AWS console
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); }
That's listed as an enhancement in #22. Also checkout https://github.com/mmcc007/screenshots which should run faster.
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.