-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshots custom naming #1651
Comments
So far, you can specify a custom path to save a screenshot to only when you take screenshots using the |
I wrote this helper function to manage how my screenshots are saved:
I'm also building an internal GUI for testcafe and would love to be able to apply screenshot path "filters" in the CLI. For instance, something like: I don't suppose it's something that can feasibly be done in the CLI right now? |
Hello @thireven |
closed in favor of #2152 |
* Screenshot file pattern * refactor test constrants * small refactoring * renames * don't correct file path for custom file path * try to fix tests2 * revert back correct file path for custom path * revert dedent module * fix review issues
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow. |
Are you requesting a feature or reporting a bug?
requesting a feature
What is the current behavior?
Current default settings for saving a screenshot is:
{currentDate}\test-{testIndex}{userAgent}{screenshotIndex}.png; {currentDate}\test-{testIndex}\run-{quarantineAttempt}{userAgent}{screenshotIndex}.png if quarantine mode is enabled.
What is the expected behavior?
Screenshot will be named:
'userAgent ' + 'screenshotIndex' + '.png'
V
{currentDate}\test-{testIndex}{userAgent}{userAgentscreenshotIndex}.png
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your
Windows 10 Home
10.0.15063
"testcafe": "^0.16.2",
v6.10.3
The text was updated successfully, but these errors were encountered: