You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable easier configuration of recording file name formatting #500
When using scalatest I'd like to be able to use the test Description.getDisplayName (perhaps with a date and/or failed/passed string) to make it easier to find the relevant file for a test.
Currently, BrowserWebDriverContainer#stopAndRetainRecording is private and we can only access currentVncRecordings via reflection if we override BrowserWebDriverContainer#failed, for example.
@ldeck good idea - I'd certainly be in favour of the filenames being easier to identify (by default!)
I think your second suggested alternative looks good as an approach for customisation, but if you have time to create a PR would you mind also changing the default filename formatter? Something like this might be useful: FAILED-ClassNameOfTest-methodNameOfTest-20171126-115603.flv. WDYT?
Activity
ldeck commentedon Nov 21, 2017
Alternative refactor:
rnorth commentedon Nov 26, 2017
@ldeck good idea - I'd certainly be in favour of the filenames being easier to identify (by default!)
I think your second suggested alternative looks good as an approach for customisation, but if you have time to create a PR would you mind also changing the default filename formatter? Something like this might be useful:
FAILED-ClassNameOfTest-methodNameOfTest-20171126-115603.flv. WDYT?Add RecordingFileFactory with default implementation
ldeck commentedon Nov 27, 2017
@rnorth sounds good.
Fix Codacy failures/warnings
ldeck commentedon Dec 5, 2017
@rnorth are you happy to accept the merge or would you like anything changed?
Code review requested changes
Avoiding nano-second risk of test failures due to datetime format dif…
Add changelog for custom file name factory
Add docs for BrowserWebDriverContainer#withRecordingFileFactory
Update docs for BrowserWebDriverContainer#withRecordingFileFactory
Add RecordingFileFactory with default implementation (#507)