i am automation engineer and i want to send testng report in the attachment , For this i am using Maven project , selenium , testng , and Jenkins , in jenkins email i am using the plugin editable email notification , in pre send script of that i am using the pre send script format like that
def reportPath = build.getWorkspace().child("target/surefire-reports/emailable-report.html") msg.setContent(reportPath.readToString(), "text/html");
in jenkin attachments email TestNG report is sending successfully but i want to send screenshots of failed test cases in that email for this i am using the ArtifactDeployer plugin in the jenkins , screen shots are capturing successfully but in jenkins attachment i am unable to send the screen shots , when i tries to send attachment without presend scripts then screen shots are sending successfully but with presend script attachment is not working , can any guide me how i can send the screen shots of failed test cases in the attachment with pre send script option 
Aucun commentaire:
Enregistrer un commentaire