lundi 7 octobre 2019

Is there a way to specify a dynamic report filename in TestCafe

I am writing the output of my TestCafe to file. I was wondering if it can be a dynamic path like screenshot path.

I tried using something like the values listed here, but I think this is only for screenshots and videos.

https://devexpress.github.io/testcafe/documentation/using-testcafe/common-concepts/screenshots-and-videos.html#path-pattern-placeholders

Here is what works, but is just not dynamic:

testcafe chrome test.testcafe -r json:report.json

Here is what I would like to do:

testcafe chrome test.testcafe -r json:T:\Logs\ -p ${DATE}/${TIME}/${FIXTURE}/${TEST}/${FILE_INDEX}.json

Aucun commentaire:

Enregistrer un commentaire