Skip to content

Instantly share code, notes, and snippets.

@AlexanderMoskovkin
Last active February 14, 2018 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderMoskovkin/85b61899efaebe6f68b537d679beab99 to your computer and use it in GitHub Desktop.
Save AlexanderMoskovkin/85b61899efaebe6f68b537d679beab99 to your computer and use it in GitHub Desktop.

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment