Hi @thireven,
After some considetaion let's stay with the following API:
-p or --screenshot-path-pattern
testcafe chrome test.js -s <path> -p "${DATE}_${TIME}/test-${TEST_INDEX}/${USERAGENT}/${FILE_INDEX}.png"
Available options:
- ${DATE}
- ${TIME}
- ${TEST_INDEX}
- ${FILE_INDEX}
- ${QUARANTINE_ATTEMPT} --by default "1" (if you add it to the template but run tests without the `-q` option).
- ${FIXTURE}
- ${TEST}
- ${USERAGENT}
- ${BROWSER}
- ${BROWSER_VERSION}
- ${OS}
- ${OS_VERSION}
If TestCafe creates a screenshot when a test fails (--screenshots-on-fails option enabled) we just add the -error
postfix to the filename.
- ${QUARANTINE_ATTEMPT}