ozzie.flutter
ozzie.flutter copied to clipboard
Screenshot error on Windows
Because windows don't alow path file contains ":" the ozzie.takeScreenshot('imageName') cause error and don't create image.
test('initial counter is 0', () async { await ozzie.profilePerformance('counter0', () async { await driver.tap(loginInputFinder); await driver.enterText('thiago'); await ozzie.takeScreenshot('EfetuarLogin001'); }); });
FileSystemException: Cannot create file, path = 'ozzie/flutter/2020-04-23T20:15:31.726207-EfetuarLogin001.png' (OS Error: A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta.
":" are not valid as part of a filename on windows. I've just come across the same issue
I am added one pull request with this fix.
https://github.com/bmw-tech/ozzie.flutter/pull/49
Is this project dead? The PR hasn't been merged in 6 months and it's a deal breaker for running tests on a Windows platform.
Whilst I could link to the PR and use it directly, it might not be worth it if this plugin is no longer supported.