Alex
Alex

Reputation: 41

Allure report: attach log file if test has been failed(Java + TestNG)

I need to attach log-file to Allure-report if test was failed. I made some setting and now every log-file has the same name as test uuid. But first of all I can't attach it to Allure, because log-file is not exist before the run will be finished and the second problem - I don't know how to add this log exactly in fails case. Do I need to create custom listener or what? Where should I specify the conditions for attaching the log to the Allure report?

Will be appreciate for your help.

Upvotes: 0

Views: 17

Answers (0)

Related Questions