summary.json:
{"reportName":"Allure Report","testRuns":[],"statistic":{"failed":3,"broken":0,"skipped":0,"passed":10,"unknown":0,"total":13},"time":{"minDuration":9533,"maxDuration":55521,"sumDuration":443172}}
Output:
2023-06-05 12:25:50 ERROR Application:32 - Duration can't be null!
guru.qa.allure.notifications.exceptions.InvalidArgumentException: Duration can't be null!
at guru.qa.allure.notifications.formatters.Formatters.formatTime(Formatters.java:20)
at guru.qa.allure.notifications.template.data.SummaryData.map(SummaryData.java:32)
at guru.qa.allure.notifications.template.data.MessageData.getValues(MessageData.java:36)
at guru.qa.allure.notifications.template.MessageTemplate.of(MessageTemplate.java:42)
at guru.qa.allure.notifications.template.TelegramTemplate.create(TelegramTemplate.java:17)
at guru.qa.allure.notifications.clients.telegram.TelegramClient.sendPhoto(TelegramClient.java:42)
at guru.qa.allure.notifications.clients.Notification.send(Notification.java:23)
at guru.qa.allure.notifications.Application.startApplication(Application.java:30)
at guru.qa.allure.notifications.Application.main(Application.java:16)
Workaround:
summary.json: {"reportName":"Allure Report","testRuns":[],"statistic":{"failed":3,"broken":0,"skipped":0,"passed":10,"unknown":0,"total":13},"time":{"minDuration":9533,"maxDuration":55521,"sumDuration":443172}} Output: 2023-06-05 12:25:50 ERROR Application:32 - Duration can't be null! guru.qa.allure.notifications.exceptions.InvalidArgumentException: Duration can't be null! at guru.qa.allure.notifications.formatters.Formatters.formatTime(Formatters.java:20) at guru.qa.allure.notifications.template.data.SummaryData.map(SummaryData.java:32) at guru.qa.allure.notifications.template.data.MessageData.getValues(MessageData.java:36) at guru.qa.allure.notifications.template.MessageTemplate.of(MessageTemplate.java:42) at guru.qa.allure.notifications.template.TelegramTemplate.create(TelegramTemplate.java:17) at guru.qa.allure.notifications.clients.telegram.TelegramClient.sendPhoto(TelegramClient.java:42) at guru.qa.allure.notifications.clients.Notification.send(Notification.java:23) at guru.qa.allure.notifications.Application.startApplication(Application.java:30) at guru.qa.allure.notifications.Application.main(Application.java:16) Workaround: