Mask for folder name of results screenshot
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 621
- PR merge metrics
- No merged PRs in 30d
Description
Good day , @garris .I have an idea and ready to create logic for it, if you will approve it. My idea is to provide possibility to setup name of folder where will saved screenshots after test.
Now it just get time-stamp as name of folder
```var screenshotDateTime = screenshotNow.getFullYear() + pad(screenshotNow.getMonth() + 1) + pad(screenshotNow.getDate()) + '-' + pad(screenshotNow.getHours()) + pad(screenshotNow.getMinutes()) + pad(screenshotNow.getSeconds());```
So my idea just add new option to backstop.json file. For example 'bitmaps_test_folder_type' and provide several predefined types (as example: timestamp, currDay,currHours,currMonth) and due to this parameter redefined screenshotDateTime variable.
As an example when it can help: I want to store all screenshots that i do during one day in one folder and removed them with server script when new day start.
Or Other variant: I have 10 test. Approved one by filter. Retest this one by filter. Want to approve all other(9) tests reference images and run Approve without filter. But other 9 scenarious will not be approved because the last test create new folder and put there just screenshots for filtered test. And to approve all other i need rerun all test. But if i will have 1 folder per day, all screenshots will be there and if i run approve all, all reference images will be approved.
Contributor guide
Assessment
This issue has not been assessed yet.