Pergunta de entrevista da empresa Infosys

how do you generate a report for failed test cases and send it to client automatically ?